Skip to main content
Glama

Batch E-Invoice Validator API - UBL, CII, XRechnung, KSeF

einvoice_batch_validator
Read-onlyIdempotent

Read and validate up to 50 mixed EU e-invoice XML files in one call (UBL 2.1, UN/CEFACT CII, XRechnung, Peppol BIS, ZUGFeRD/Factur-X XML, Polish KSeF FA) into one normalized JSON: invoice number, dates, seller and buyer with VAT ids, VAT by rate, totals, IBAN, line items, and a per-invoice totals reconciliation flag. One bad file never stops the batch. Deterministic parsing, zero AI, nothing stored. Usable from AI agents via MCP. Free: 5 calls/day per IP. Paid: Radar API key (from €15/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.02/call via x402 at https://radarbg.com/x402/einvoice-batch-validator.

Input Schema

NameRequiredDescriptionDefault
filesYesArray of up to 50 invoice files; each item is an object with fileName and either content (XML text) or fileBase64.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, open world), and the description layers on real operational facts beyond them: partial failure is tolerated ('one bad file never stops the batch'), parsing is deterministic with zero AI, nothing is persisted, and there are explicit rate limits (5 calls/day per IP) plus two paid auth paths via X-API-Key or x402. That is exactly the behavioral context an agent needs before committing to a call.

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?

It is front-loaded with the core verb and scope, then output shape, then failure semantics, then commercial terms in a logical progression. A few clauses such as 'Usable from AI agents via MCP' and 'Deterministic parsing, zero AI' are promotional padding, but the dense payload sentences each carry distinct information.

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 present, the description takes on the return-value burden and does so by naming the normalized fields (invoice number, dates, parties with VAT ids, VAT by rate, totals, IBAN, line items, reconciliation flag). Combined with failure semantics and access/pricing terms, an agent has everything needed to call this correctly and interpret the result.

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% and the schema itself documents files, fileName, content and fileBase64, including their mutual exclusivity, so the description need not restate them. The description does add the 50-file ceiling and the mixed-format acceptance, but says nothing about per-item error keys or ordering, so it stays at the baseline for a well-documented single parameter.

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?

The first clause gives a specific verb and resource with scope: 'Read and validate up to 50 mixed EU e-invoice XML files in one call'. It enumerates the supported dialects (UBL 2.1, CII, XRechnung, Peppol BIS, ZUGFeRD/Factur-X, KSeF FA) and the normalized output fields, which is enough to separate it from the single-document siblings like e_invoice_reader and xrechnung_validator.

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?

The batch-of-up-to-50 and 'mixed' format framing implies when this tool is the right pick, and the free/paid access note tells the agent what credentials or cost to expect. However, it never states when NOT to use it or names an alternative for a single known-format file, so the routing guidance is inferred rather than explicit.

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