Skip to main content
Glama

API Keg — CRM Cleanse & Fuzzy Dedupe

Cleanse & Deduplicate Contact Batch

cleanse_contact_batch
Read-onlyIdempotent

Normalizes emails, international E.164 phones, person names/honorifics, and company legal suffixes across 1-500 CRM records, returning merged canonical uniqueRecords and duplicateClusters. 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). 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": {
      "records": "<records>"
    },
    "name": "cleanse_contact_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
dedupeNoCluster duplicate records and merge non-null fields into uniqueRecords.
recordsYesBatch of 1 to 500 CRM contact records to normalize and deduplicate.
defaultCountryNoDefault ISO 3166-1 alpha-2 country code for domestic phone numbers.US
matchThresholdNoMinimum confidence threshold [0.5-1.0] required to merge duplicate records.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, non-destructive, and non-open-world behavior, so the bar is lower. The description adds useful context about normalized entity types, returned merged canonical records and duplicate clusters, cost, and a free REST schema validation path. The pricing explanation is convoluted, but not contradictory to the annotations.

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

Conciseness3/5

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

The first sentence is front-loaded and efficient, immediately explaining what is normalized and returned. The pricing sentence is heavily nested, repetitive, and hard to parse, which weakens an otherwise compact definition.

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?

For a batch normalization tool with full parameter descriptions and safety annotations, the description covers the main transformation scope, output concepts, limits, cost, and validation path. It leaves some operational details to the schema, but an agent has enough information to invoke it correctly.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents records, dedupe, defaultCountry, and matchThreshold in detail. The description names the kinds of fields normalized but adds little specific meaning about parameters such as matchThreshold or dedupe behavior beyond what the schema provides.

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

Purpose4/5

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

The description states a specific verb and resource: normalizing and deduplicating CRM contact batches across 1-500 records, with named outputs uniqueRecords and duplicateClusters. The batch scope makes it distinguishable from compare_contact_pair in practice, but the sibling is not explicitly named or contrasted.

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

Usage Guidelines2/5

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

It provides operational notes about pricing and a REST dry_run flag, but no guidance on when to use this tool versus compare_contact_pair or other alternatives. The reader must infer that this is for batch cleansing rather than pairwise comparison from the scope alone.

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