Skip to main content
Glama

text_dedupe

Read-only

List deduplicator (exact, normalized, near-duplicate) — Deduplicate a list of strings: items= separated by new lines or sep= (auto-detects | and ;). mode=near (default, up to 1000 items) groups exact, normalized (case, accents, punctuation, spacing, a/an/the) and near duplicates by character 3-gram Jaccard similarity at threshold= (default 0.8, 0.3-1); mode=normalized or exact handles up to 5000 items. keep=first|longest|shortest picks the survivor. Returns unique list in original order, unique_indexes, duplicate count and percent, and groups showing each duplicate with how it matched and its similarity. Offline; good for cleaning product titles, company names, leads, RAG chunks and scraped lists. Price: $0.002 USDC (Base, via x402).

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": {
      "items": "<items>"
    },
    "name": "text_dedupe"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYesApple iPhone 15 Pro 128GB|apple iphone 15 pro, 128gb|Apple iPhone 15 Pro 128 GB|Samsung Galaxy S24|The Samsung Galaxy S24|Google Pixel 8

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description still adds meaningful non-schema behavior: offline operation, the 1000 vs 5000 item caps, the threshold range, a full description of the return payload, and a stated price ($0.002 USDC via x402). The openWorldHint=true annotation, however, sits oddly against 'Offline', leaving the operating model somewhat unclear rather than clearly disclosed.

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 a single front-loaded paragraph that leads with purpose and mode selection before return values and pricing. Dense but every clause carries information an agent needs. Slight crowding of limits, output shape and billing into one block makes skimming harder than it needs to be.

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 single-parameter tool with no output schema, the description supplies item limits, threshold range, survivor selection, return fields and pricing, which covers nearly everything needed to invoke it correctly. The one real gap is that the schema exposes only items while the description relies on sep/mode/threshold/keep, so the calling convention for those options is not fully resolved.

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?

The schema documents only one parameter (items) with an example, and the description explains far more: newline or sep= delimiters with auto-detection of | and ;, the mode options, threshold default 0.8 with a 0.3-1 range, and keep=first|longest|shortest. That is substantial added meaning beyond the schema. The caveat is that sep, mode, threshold and keep do not appear as properties in the supplied schema, so an agent is told these knobs exist without being told how to pass them.

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 ('Deduplicate a list of strings') and immediately qualifies the three dedupe strategies (exact, normalized, near-duplicate). That is far more than the name/title restatement and makes it clearly distinguishable from neighbors like text_diff or text_chunk.

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 gives concrete conditions for choosing modes: near is default and capped at 1000 items, normalized/exact handles up to 5000, and keep= selects the survivor. It also names real use cases (product titles, company names, leads, RAG chunks, scraped lists). It stops short of naming a sibling alternative for cases this tool does not fit, so not a 5.

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