compare_contact_pair — Compare Two Contacts for Duplicate Match

Computes field-by-field normalized similarity (email fingerprint, E.164 phone, Jaro-Winkler + Soundex name, company key, corporate domain) and returns an isMatch merge recommendation.

Why buy vs. DIY: Instant deterministic entity-resolution check for webhook/CRM pre-insert hooks at $0.0005 per pair.

Pricing: $0.0005 USD per contact pair comparison (x402 instant micropayment) · REST: POST https://crm-cleanse.apikeg.com/v1/compare-contact-pair · MCP: https://crm-cleanse.apikeg.com/mcp

Input Parameters

FieldTypeRequired / DefaultDescription & Constraints
recordA object Required CRM contact or lead record.
recordB object Required CRM contact or lead record.
defaultCountry string Default: "US" Default ISO 3166-1 alpha-2 country code for domestic phone numbers. (minLength: 2, maxLength: 2)
matchThreshold number Default: 0.82 Minimum confidence threshold [0.5-1.0] required to recommend merging. (min: 0.5, max: 1)

REST Example (curl)

curl -X POST "https://crm-cleanse.apikeg.com/v1/compare-contact-pair" \
  -H "Content-Type: application/json" \
  -d '{
  "defaultCountry": "GB",
  "matchThreshold": 0.82,
  "recordA": {
    "fullName": "Jon Smyth",
    "phone": "07911 123456",
    "company": "Albion Analytics Ltd"
  },
  "recordB": {
    "fullName": "John Smith",
    "phone": "+44 7911 123456",
    "company": "Albion Analytics Limited"
  }
}'

MCP tools/call Payload

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "compare_contact_pair",
    "arguments": {
      "defaultCountry": "GB",
      "matchThreshold": 0.82,
      "recordA": {
        "fullName": "Jon Smyth",
        "phone": "07911 123456",
        "company": "Albion Analytics Ltd"
      },
      "recordB": {
        "fullName": "John Smith",
        "phone": "+44 7911 123456",
        "company": "Albion Analytics Limited"
      }
    }
  }
}