cleanse_contact_batch — Cleanse & Deduplicate Contact Batch

Normalizes emails, international E.164 phones, person names/honorifics, and company legal suffixes across 1-500 CRM records, returning merged canonical uniqueRecords and duplicateClusters.

Why buy vs. DIY: Replaces 300+ lines of fragile phone/name/Jaro-Winkler code and saves thousands of LLM tokens on 500-row CSV imports; executes deterministically in <15ms.

Pricing: $0.001 base (up to $0.01 max ($0.001 minimum + $0.002 per 100 records, capped at $0.01 for up to 500 records), x402 variable settlement) · REST: POST https://crm-cleanse.apikeg.com/v1/cleanse-contact-batch · MCP: https://crm-cleanse.apikeg.com/mcp

Input Parameters

FieldTypeRequired / DefaultDescription & Constraints
records array Required Batch of 1 to 500 CRM contact records to normalize and deduplicate. (minItems: 1, maxItems: 500)
defaultCountry string Default: "US" Default ISO 3166-1 alpha-2 country code for domestic phone numbers. (minLength: 2, maxLength: 2)
dedupe boolean Default: true Cluster duplicate records and merge non-null fields into uniqueRecords.
matchThreshold number Default: 0.82 Minimum confidence threshold [0.5-1.0] required to merge duplicate records. (min: 0.5, max: 1)

REST Example (curl)

curl -X POST "https://crm-cleanse.apikeg.com/v1/cleanse-contact-batch" \
  -H "Content-Type: application/json" \
  -d '{
  "defaultCountry": "US",
  "dedupe": true,
  "matchThreshold": 0.82,
  "records": [
    {
      "fullName": "Dr. Ronald MCDONALD, MBA",
      "email": "ronald+webinar@ApexCloud.io",
      "phone": "(415) 555-2671 ext. 402",
      "company": "Apex Cloud, Inc."
    },
    {
      "firstName": "Ronald",
      "lastName": "McDonald",
      "email": "ronald@apexcloud.io",
      "company": "Apex Cloud LLC"
    }
  ]
}'

MCP tools/call Payload

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "cleanse_contact_batch",
    "arguments": {
      "defaultCountry": "US",
      "dedupe": true,
      "matchThreshold": 0.82,
      "records": [
        {
          "fullName": "Dr. Ronald MCDONALD, MBA",
          "email": "ronald+webinar@ApexCloud.io",
          "phone": "(415) 555-2671 ext. 402",
          "company": "Apex Cloud, Inc."
        },
        {
          "firstName": "Ronald",
          "lastName": "McDonald",
          "email": "ronald@apexcloud.io",
          "company": "Apex Cloud LLC"
        }
      ]
    }
  }
}