Skip to main content
Glama

InvoiceParser Pro

Check an invoice's math

check_invoice

Check whether an invoice adds up: each line's quantity times unit price, the lines against the subtotal, the tax against its printed rate, and subtotal plus tax against the total. Returns a one-line verdict and every problem found, with the invoice's own numbers. Give the file as file_url, file_base64 or (ChatGPT) file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileNoChatGPT only: the attached file. Other clients use file_url or file_base64.
file_urlNoAn https link to the invoice (PDF or image) that the server can download.
file_nameNoThe file's name, e.g. invoice-1042.pdf (optional).
file_base64NoThe invoice file's bytes, base64-encoded. Use for a local file.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=true, so the safety profile is largely covered. The description adds genuinely useful behavioral context beyond that: it discloses the return shape ('a one-line verdict and every problem found, with the invoice's own numbers'), which matters because there is no output schema. It does not explain the non-read-only flag or any limits on file size/download fidelity.

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?

Two sentences with no filler: the first front-loads the four specific checks, the second covers return value and accepted input forms. Every clause carries information the agent needs.

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?

Because no output schema exists, the description correctly compensates by summarizing the verdict and problem list, and it enumerates all input channels. It stops short of error/failure behavior, unsupported document types, or any note on why the call is not marked read-only, which leaves a small but real gap for a file-ingesting 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 description coverage is 100%, so each of the four file parameters is already documented (including the ChatGPT-only file object and the base64 option). The description only restates the three input channels ('file_url, file_base64 or (ChatGPT) file') and adds no format, size, or precedence detail beyond the schema, so the baseline 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?

States a specific verb (check) and resource (invoice) and enumerates the exact arithmetic verifications performed: line quantity times unit price, lines vs subtotal, tax vs printed rate, subtotal plus tax vs total. This is precise enough to separate it from siblings extract_invoice_data (extraction) and invoice_to_excel (conversion), which do not mention arithmetic validation.

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?

Usage is implied by the enumerated checks and the sibling set, but the description never states when to pick this tool over alternatives such as extract_invoice_data, nor does it mention prerequisites (e.g., needing a machine-readable invoice before checking). The closing sentence about input forms is parameter guidance, not usage routing.

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