Skip to main content
Glama

Agent Data Tools: Company, compliance and checks

Invoice check: validate an EU invoice before paying

invoice_check
Read-only

Check an invoice in one call: send a PDF, Word or Excel file, scan or photo (URL or POST body). It reads the fields, checks the seller's and buyer's VAT numbers in EU VIES with the registered name, validates the IBAN and its country, recomputes net + VAT = total and the line items, and checks the dates. Returns pass, review or fail with each check. Use before paying a supplier invoice; for e-invoice XML (XRechnung, ZUGFeRD): pack_einvoice_check. Price $0.05/call via x402 USDC or a card key (/credits); failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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": {
      "url": "<url>"
    },
    "name": "invoice_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesAbsolute public http(s) URL of the invoice file (or send the file in a POST body instead)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations it discloses what those annotations cannot: the cost model ($0.05/call via x402 USDC or card key, failed calls free), the operational consequence of idempotentHint=false ('each call is charged, so repeats are not free'), the external dependency on EU VIES, and the response vocabulary (pass / review / fail). It also restates the non-mutating guarantee, which reinforces rather than contradicts readOnlyHint=true.

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 and the full check list, then commercial and routing details — a sensible ordering with no filler sentences. Minor redundancy: 'Reads or computes only and changes nothing' duplicates the readOnlyHint annotation and the pricing/payment clause is dense, though both are genuinely useful to a caller.

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 takes on the burden of describing results and does so ('returns pass, review or fail with each check'). Cost, cost of failure, input formats, external lookup source and the sibling alternative are all covered, leaving nothing an agent needs before invoking it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema already documents the single url parameter at 100% coverage, so the baseline is 3; the description adds real value by enumerating accepted input formats (PDF, Word, Excel, scan, photo) and noting that the file may be supplied in a POST body instead of via URL. It does not restate URL validity constraints, but the format list is information the schema does not carry.

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?

Opens with a specific verb+resource ('Check an invoice in one call') then enumerates the concrete validations performed: VIES VAT lookup with registered name, IBAN and country check, arithmetic recomputation, line items and dates. It also explicitly separates itself from the XML sibling ('for e-invoice XML (XRechnung, ZUGFeRD): pack_einvoice_check'), so the agent can route without opening either 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?

States the decision moment plainly — 'Use before paying a supplier invoice' — and names the alternative plus the condition that selects it (e-invoice XML formats go to pack_einvoice_check). Both a when-to-use and an explicit exclusion are present.

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.