Skip to main content
Glama

API Keg — CRM Cleanse & Fuzzy Dedupe

Compare Two Contacts for Duplicate Match

compare_contact_pair
Read-onlyIdempotent

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. Pricing: $0.0005 USD per contact pair comparison (x402 instant micropayment). Pass ?dry_run=true on REST to validate schema free.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "recordA": "<recordA>",
      "recordB": "<recordB>"
    },
    "name": "compare_contact_pair"
  }
}

Input Schema

NameRequiredDescriptionDefault
recordAYesCRM contact or lead record.
recordBYesCRM contact or lead record.
defaultCountryNoDefault ISO 3166-1 alpha-2 country code for domestic phone numbers.US
matchThresholdNoMinimum confidence threshold [0.5-1.0] required to recommend merging.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover readOnly, idempotent, non-destructive and closed-world behavior, so the bar is lower. The description adds genuinely non-structured context: the cost model ($0.0005 USD per pair via x402 micropayment) and a free dry_run schema-validation path on REST, both of which materially affect how an agent should call it. It stops short of describing what the response body contains beyond isMatch, such as the per-field similarity scores or confidence value.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with the algorithm and return value, with cost and dry_run trailing as secondary logistics. It is dense but every sentence carries distinct information; the only slight noise is the REST-specific dry_run note in an MCP tool description.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With full schema coverage and annotations declaring a safe read, the description supplies the remaining essentials: what is computed, what is returned (isMatch), and what it costs. A brief note on threshold-driven decisions or partial-record behavior would close the last gap, but nothing critical to correct invocation is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description earns a bump by explaining which record fields feed which matching algorithm (email → fingerprint, phone → E.164, names → Jaro-Winkler + Soundex, company/website → company key and corporate domain), telling the agent which fields are worth populating. It does not discuss how matchThreshold interacts with isMatch or what happens when fields are absent on one side.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific operation (computes field-by-field normalized similarity between two contact records) and its output (an isMatch merge recommendation), and it enumerates the exact signals used: email fingerprint, E.164 phone, Jaro-Winkler + Soundex name, company key, corporate domain. The pairwise scope is stated explicitly, which implicitly separates it from the batch sibling cleanse_contact_batch.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the output ('isMatch merge recommendation') and by the free dry_run validation hint, so an agent can infer this is the pre-merge decision tool. However, the description never states when to prefer it over cleanse_contact_batch, nor does it warn about conditions where comparison is inappropriate (e.g., missing fields on both records).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources