Skip to main content
Glama

ai_dedupe

Read-only

Semantic deduplication — Group near-duplicate texts by meaning (not exact wording) using sentence embeddings: up to 100 items separated by | or new lines, cosine threshold= (default 0.88). Returns duplicate groups with similarity scores, the unique list (first item of each group kept) and near-miss pairs worth a manual look. For exact or fuzzy string matching use /v1/text/dedupe. Price: $0.006 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": "ai_dedupe"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYese.g. How do I reset my password?|I forgot my password, how can I reset it?|What are your opening hours?

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnlyHint/openWorldHint/destructiveHint=false, and the description adds substantial context beyond that: the 100-item ceiling, the separator conventions, the default cosine threshold of 0.88, the shape of the return payload (groups with similarity scores, the de-duplicated list keeping the first item of each group, near-miss pairs), and a concrete cost of $0.006 USDC via x402. Disclosing the payment model and the kept-first-item rule is precisely the kind of behavior an agent cannot infer from structured fields.

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 with the purpose before the mechanics, price, and alternative, and nearly every clause carries usable information. The single long sentence with stacked colons and parentheticals is dense enough that the return-value and pricing details are easy to skim past.

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

Completeness5/5

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

There is no output schema, so the description must describe returns — and it does (duplicate groups with scores, unique list, near-miss pairs). Combined with the input cap, separator format, threshold default, cost, and sibling routing, an agent has everything needed to call this correctly on the first attempt.

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% but the schema only carries a single example string for `items`, so the description genuinely adds meaning: up to 100 items, joined by | or new lines. One inconsistency: it references a `cosine threshold=` argument (default 0.88) that does not appear in the input schema, which could lead an agent to try passing a parameter that isn't accepted.

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 states a specific verb and resource — "Semantic deduplication — Group near-duplicate texts by meaning (not exact wording)" — and explicitly distinguishes the mechanism (sentence embeddings, cosine similarity) from literal matching. It also names the sibling alternative, so an agent can tell it apart from text_dedupe without opening a 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 gives explicit routing: "For exact or fuzzy string matching use /v1/text/dedupe," which is exactly the when-to-use-this-vs-alternative guidance an agent needs. It stops short of stating when semantic dedupe is a poor fit (e.g., inputs over the 100-item cap, or domains where embeddings underperform), so it's clear but not exhaustive.

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