Skip to main content
Glama

find_duplicates

Read-only

Detect duplicate rows in a dataset, either across whole rows or selected key columns, and report extra copies, largest duplicate groups, and case/spacing-insensitive matches without exposing values.

Instructions

Find duplicate rows, either whole rows or on chosen key columns.

Returns how many extra copies exist, the largest groups as row numbers, and how many more rows match once case and spacing are ignored. Values are never shown.

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": {
      "dataset": "<dataset>"
    },
    "name": "find_duplicates"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoDuplicate groups to list.
columnsNoCompare only these columns, such as a key like ['email']. Omit to compare whole rows.
datasetYesA dataset name returned by load_dataset.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already establish that this is a safe, non-destructive read (readOnlyHint=true, openWorldHint=false), yet the description still adds real substance: it discloses that results are counts of extra copies plus row numbers, that a second near-duplicate count ignores case and spacing, and that cell values are never returned. The last point is a meaningful privacy/behavioral guarantee that no annotation conveys. It stops short of describing ordering or what happens with null keys, so it is strong rather than complete.

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

Conciseness5/5

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

The core action and its scope are front-loaded in a single opening sentence, followed by a compact statement of what comes back. Every sentence carries information an agent would otherwise have to guess, and there is no filler or redundancy.

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 three-parameter, read-only diagnostic tool with full schema coverage and an output schema, the description covers the action, the comparison modes, and the nature of the results. Minor gaps remain around ordering of the reported groups and limit behavior, but an agent has enough to select and 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 all three parameters are already documented with defaults and the same ['email']-style example appears in the schema. The description's column guidance is essentially a restatement, and it never mentions the limit parameter or its cap. Baseline 3 is appropriate given the schema does the heavy lifting.

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 ("Find duplicate rows") and scopes it precisely ("either whole rows or on chosen key columns"). An agent immediately knows this is a duplication check rather than a uniqueness, missingness, or outlier check. It loses a point only because it never names or contrasts a sibling tool to anchor that distinction explicitly.

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?

The only guidance is parameter-level: "Omit to compare whole rows" tells the agent when to leave columns empty. There is no explicit statement of when this tool is preferable to alternatives such as check_keys (which likely also concerns key uniqueness) or when it should be skipped, so usage is implied rather than directed.

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