Skip to main content
Glama
MCP Actual

MCP Actual

by cubicecho

Find likely duplicate payees

find_duplicate_payees
Read-onlyIdempotent

Groups payees whose names differ only by case, punctuation, or trailing store/reference numbers, suggesting a target and candidates for review before merging.

Instructions

Group payees whose names differ only by case, punctuation, or a trailing store/reference number — Trader Joe’s #123 and TRADER JOES 456, for example. Each group names a suggestedTarget (the most-used member) and the other candidates, plus the reason they were grouped. Matching is exact once normalized, so an abbreviation and its expansion do NOT group: AMZN Mktp US*2H4 and Amazon are reported separately. An empty result therefore means "no name-shaped duplicates", not "no duplicates" — to find those, scan list_payees yourself and propose them to the user. The conservative rule is deliberate: a false positive here feeds an irreversible merge. This only suggests; nothing is merged. Confirm a group really is one merchant before calling merge_payees. Transfer payees are never included.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "find_duplicate_payees"
  }
}

Input Schema

NameRequiredDescriptionDefault
minGroupSizeNoOnly report groups with at least this many payees. Defaults to 2.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.1.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / minGroupSize / maximum
      Added value: +9007199254740991
  2. First observedv1.0.1

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (read-only, idempotent, non-destructive), it discloses that matching is exact post-normalization, explains the deliberate false-negative tradeoff and why, notes that transfer payees are excluded, and confirms nothing is merged. That is substantial behavioral context an agent could not get from the hints alone.

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?

The core rule and examples are front-loaded, and the follow-up paragraphs on matching strictness and merge safety are each doing distinct work. It runs slightly long across four paragraphs, but no sentence is filler.

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?

With no output schema, the description still explains the return shape (`suggestedTarget`, `candidates`, `reason`), which is exactly what an agent needs to consume results. Combined with the empty-result caveat and the transfer-payee exclusion, nothing material is missing for a read-only, single-parameter tool.

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?

There is a single optional parameter, `minGroupSize`, and the schema already documents it at 100% coverage including the default of 2. The description's phrase 'Each group' implies grouping behavior but adds no syntax or edge-case meaning for the parameter itself, so the baseline of 3 applies.

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 precise verb and rule: 'Group payees whose names differ only by case, punctuation, or a trailing store/reference number,' reinforced by two concrete examples. It is clearly distinct from siblings that merely list or merge payees, so an agent can select it without opening 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 Guidelines5/5

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

It gives explicit when-not-to-use guidance: an empty result means 'no name-shaped duplicates,' and the agent is told to scan `list_payees` itself for abbreviation-style duplicates. It also states the handoff to `merge_payees` and the confirmation step required before that call, so the boundary with siblings is unambiguous.

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