Skip to main content
Glama
cubicecho

MCP Actual

by cubicecho

Find likely duplicate payees

find_duplicate_payees
Read-onlyIdempotent

Groups payees with names that differ only by case, punctuation, or trailing store/reference numbers, then suggests 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.

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds context beyond them: the deliberate conservative matching policy, the fact that a false positive feeds an irreversible merge, that nothing is merged automatically, and that transfer payees are never included. This is exactly the extra behavioral context annotations cannot convey.

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?

Opens with the core grouping rule and example, then layers caveats (matching is exact, empty result meaning, no auto-merge, transfer exclusion) in order of importance. Every sentence carries distinct information; nothing is redundant.

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 (groups with suggestedTarget, candidates, and reason) and the operational caveats an agent needs before routing to merge_payees. Nothing material is missing for a one-parameter read-only analysis 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?

Schema coverage is 100% and there is a single optional parameter, so the schema fully documents minGroupSize. The description adds no further semantics about it, which is the expected baseline when the schema does the heavy lifting.

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 precise verb (group) plus resource (payees) and immediately defines the exact matching criterion with concrete examples. It clearly separates itself from list_payees and merge_payees by naming both as adjacent steps in the workflow.

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?

Explicitly says when the tool applies (name-shaped duplicates only) and when it does not ('an abbreviation and its expansion do NOT group'), warns that an empty result does not mean 'no duplicates', and directs the agent to scan list_payees and then confirm with merge_payees. Both the alternative and the exclusion condition are named.

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