Skip to main content
Glama

Payment Batch Duplicate Check

payment_batch_dedupe
Read-onlyIdempotent

Check an outgoing payment batch for likely duplicate payments before it is released. Send the payments (payee code, amount, optional invoice or remittance reference) and, if you have them, the payments already released recently with their dates. Get back every payment that looks like a repeat and why: the same payee, amount and reference; the same payee and reference with another amount; the same payee and amount with another or no reference; or the same reference and amount under another payee code (often a payee set up twice). Also the amount at risk, the batch total and the amount that is clear to release. Answer fields: ok, verdict, result, rule, does_not, sources, observation, signature, verify. Errors: ok false with the reason (bad input, too large, hourly limit). Free. No model, no network, nothing you send is stored by the tool, and every answer is signed with LLPRO's key (check it at https://llpro.ai/payment-batch-dedupe). Not legal, tax or financial advice.

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": {
      "payments": "<payments>"
    },
    "name": "payment_batch_dedupe"
  }
}

Input Schema

NameRequiredDescriptionDefault
paidNoOptional: payments already released (up to 200), each with payee, amount, reference and paid_on, to catch a repeat of a payment already made.
paymentsYesThe outgoing batch (up to 200 payments), in the order you would release them.
batch_dateNoRelease date of this batch, YYYY-MM-DD. Needed when you send paid (the window counts days back from it).
days_windowNoSame payee and same amount with a different or missing reference count against an already-released payment only when it was released at most this many days before batch_date (default 30).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent/non-destructive annotations: it discloses that the tool is free, runs no model and no network, stores nothing, and signs every answer with a key that can be verified at a given URL. It also enumerates error modes (bad input, too large, hourly limit) and the match classes returned, which no structured field conveys.

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?

Front-loaded with purpose, then inputs, then outputs, then limits and trust signals — a sensible order. The run-on rule enumeration and the boilerplate 'Not legal, tax or financial advice' add length without helping invocation, and the bare field list (ok, verdict, result, rule, does_not...) is terse to the point of being cryptic.

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 carries the burden of describing return values and does so by naming the match rules and the risk/total/clear amounts. Error behavior, size limits, privacy guarantees and answer verification are all covered, leaving nothing an agent needs before calling it.

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 the schema already defines payee, amount, reference, paid_on and days_window, including the same window rule the description restates. The description adds framing ('the payments already released recently with their dates') but no new syntax or format detail, so it sits at the baseline.

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?

States a specific verb and resource ('Check an outgoing payment batch for likely duplicate payments') plus the timing constraint ('before it is released'), which is far more than a restatement of the name. It never names the obvious sibling duplicate_invoice_check, so the agent must infer the boundary between batch payment dedupe and invoice duplicate checking.

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?

Gives clear context for use: send the outgoing batch plus optionally the recently released payments, and it is used pre-release. It does not state when NOT to use it or point at duplicate_invoice_check for invoice-level duplicates, so routing between the two sibling checks is left to inference.

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