Skip to main content
Glama

Agent Data Tools: Compliance and checks

EU e-invoice check: rules, VAT numbers in VIES and IBAN for XRechnung, ZUGFeRD, UBL

pack_einvoice_check
Read-only

Check whether an EU e-invoice is usable, in one call: send XRechnung, ZUGFeRD / Factur-X or UBL XML by URL, as text or as a file. Runs a subset of the EN 16931 and XRechnung rules, looks up seller and buyer VAT numbers in EU VIES, checks the IBAN and returns the invoice as JSON with pass, review or fail. No AI; not the official validator. Use when an e-invoice arrives, before booking or paying it; PDF or scanned invoices: invoice_check. Price $0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "pack_einvoice_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoAbsolute public http(s) URL of the e-invoice: an XML file or a ZUGFeRD / Factur-X PDF (or send `xml`, or the file in a POST body)
xmlNoThe e-invoice XML as text (CII or UBL), up to 5 MB in a POST body
profileNoauto (default: the German XRechnung rules run when the file names XRechnung), xrechnung or en16931

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/openWorld/non-destructive, and the description adds substantive context beyond them: it is a subset validator and 'not the official validator', it is non-AI, it changes nothing, and crucially it explains the non-idempotent hint by stating each call is charged so repeats are not free, with failed calls free. The pricing/billing mechanics (x402 USDC or card key, first 10 free) are exactly the kind of operational detail 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the capability, then the caveats, then the pricing. Dense and nearly every clause earns its place, though the pricing and 'repeats are not free' clause are packed into a single long run-on paragraph that could be split for scanability.

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?

No output schema exists, yet the description conveys the return outcome (JSON with pass, review or fail) and the caveat that this is a subset validator, not the official one. Combined with annotations covering the safety profile and the schema covering all three parameters, nothing an agent needs to call it correctly is missing.

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 documents url, xml, and the profile enum with its auto default. The description only restates the accepted formats and channels, adding little syntax or format detail beyond the schema (the 5 MB limit lives in the schema). Baseline 3 is appropriate.

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?

Specific verb and resource ('Check whether an EU e-invoice is usable'), plus the accepted formats (XRechnung, ZUGFeRD/Factur-X, UBL) and input channels (URL, text, file). It also states the processing performed (EN 16931/XRechnung subset, VIES VAT lookup, IBAN check) and the result shape (pass/review/fail), so an agent can distinguish it from invoice_check without opening any 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?

Explicit trigger ('Use when an e-invoice arrives, before booking or paying it') and an explicit alternative with its condition ('PDF or scanned invoices: invoice_check'). The agent is told both when to use this tool and which sibling to route non-XML inputs to.

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