Skip to main content
Glama

Duplicate Supplier Invoice Check

duplicate_invoice_check
Read-onlyIdempotent

Flag likely duplicate supplier invoices in a batch before they are paid (accounts payable duplicate-payment check). Send the invoices (supplier code, invoice number, invoice date, amount) and a window in days. Get back every invoice that looks like a duplicate of an earlier one and why: the same supplier and the same invoice number after normalizing (case, spaces, dashes, dots, slashes, # and leading zeros), or the same supplier and the same amount within the window, or the same invoice number and amount under a different supplier code (often a supplier set up twice). Also the number of matching pairs and the amount on the flagged invoices. 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/duplicate-invoice-check). 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": {
      "invoices": "<invoices>"
    },
    "name": "duplicate_invoice_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
invoicesYesSupplier invoices (2 to 200).
days_windowNoSame supplier and same amount count as a likely duplicate when the invoice dates are at most this many days apart (default 30).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Goes well past the annotations, which only cover read-only/idempotent/closed-world safety. It spells out the three actual detection rules, the normalization applied to invoice numbers, the error cases (bad input, too large, hourly limit), the cost (free), and the privacy/signing model, all of which materially change how an agent should call it.

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 the purpose and rule set, then moves to inputs, outputs, errors and disclaimers in a sensible order. The bare list of answer field names and the trailing disclaimers are slightly dense, but no sentence is pure filler.

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?

With no output schema, the description carries the return-value burden and does name the answer fields and error shape, though it does not explain what each field means. Combined with the fully documented input schema, this is close to complete for a two-parameter, read-only check.

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 both parameters are already well documented in the schema. The description restates the invoice fields and the day window but adds no format or edge-case detail beyond what the schema already says (e.g. negative amounts for credit notes, the 2–200 size range).

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?

States a specific verb and resource — flag likely duplicate supplier invoices in a batch — and scopes it to accounts payable before payment. That framing cleanly separates it from adjacent invoice tools such as invoice_make or tank_car_demurrage_invoice_check, which act on different invoice problems.

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 a clear operating context: run it on a batch of invoices before they are paid as an AP duplicate-payment check. It does not name an alternative tool or state when a different check would be preferable, so it stops short of explicit routing guidance.

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