Skip to main content
Glama

ScorpTech x402 Tools

Dedupe Records

dedupe_records
Read-onlyIdempotent

Find and remove duplicate records (CRM contacts, leads, customers, products) in a JSON array. Modes: exact, normalized (emails: case, Gmail dots and +tags; phones: punctuation and country prefix; URLs: scheme, www, tracking params; names: accents, honorifics, word order; companies: Inc / Ltd / GmbH suffixes) and fuzzy (Jaro-Winkler / token similarity with weighted fields, blocking + sorted neighbourhood so 5,000 records stay fast). Groups transitive matches, keeps the first / last / most complete record, optionally merges missing fields from the duplicates, and returns the unique records plus every duplicate group with its score. Returns JSON with: mode, fields, threshold, stats, groups, records, warnings. Price: $0.003 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/dedupe-records

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": "dedupe_records"
  }
}

Input Schema

NameRequiredDescriptionDefault
keepNofirst
modeNonormalized
mergeNoFill empty fields of the kept record from its duplicates
typesNoOptional field → type map (email, phone, url, name, company, text, number, exact); auto-detected from field names and values otherwise
fieldsNoFields to compare (default: every field)
recordsYesArray of record objects (max 5000)
thresholdNoFuzzy mode: minimum weighted similarity
includeRecordsNoReturn the de-duplicated records

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, and the description adds real context beyond them: transitive grouping, the keep policy, optional field merging, the algorithm (Jaro-Winkler with blocking/sorted neighbourhood), the returned keys, and pricing ($0.003 USDC via x402) plus an HTTPS alternative. The word 'remove' sits in slight tension with readOnlyHint, but since removal happens only in the returned array rather than in stored state, it reads as output shaping rather than a true contradiction — though a one-clause clarification would have removed the ambiguity.

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?

It is front-loaded correctly — purpose first, then modes, then behavior, then return shape, then pricing — and nearly every clause carries information. It is a dense wall of text with semicolon-chained normalizations, so skimming costs more than it should, but there is no filler.

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 an 8-parameter tool with nested objects and no output schema, the description compensates well by enumerating the return keys (mode, fields, threshold, stats, groups, records, warnings) and describing the group/score structure. Remaining gaps are minor: error behavior on malformed records and whether warnings indicate dropped or capped input go unmentioned.

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?

With 75% schema coverage the schema already documents most parameters, and the description adds genuine meaning on top: the three keep semantics ('first / last / most complete'), what merge actually does ('merges missing fields from the duplicates'), and that threshold is a fuzzy-mode weighted-similarity floor. It doesn't explain the `types` map's interaction with auto-detection beyond what the schema says, which keeps it from a 5.

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 opens with a specific verb and resource — 'Find and remove duplicate records (CRM contacts, leads, customers, products) in a JSON array' — plus the scope of the operation. An agent knows exactly what the tool does and on what input, and it distinguishes itself from the math-oriented siblings without needing the schema.

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

Usage Guidelines4/5

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

It effectively explains mode selection: exact for literal matches, normalized with an explicit list of normalizations (emails, phones, URLs, names, companies), and fuzzy for weighted similarity with a default threshold. What's missing is an explicit 'prefer normalized unless X' decision rule or any when-not guidance, so it stops just short of full routing clarity.

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