Skip to main content
Glama

Validate e-invoice

validate_invoice
Read-onlyIdempotent

Validate a UBL 2.1, Peppol BIS Billing 3.0, XRechnung, SI-UBL 2.0 (NLCIUS) or CII / Factur-X XML invoice against EN 16931, Peppol and national CIUS rules; returns pass/fail with rule IDs, line numbers and fixes. Set profile "peppol-3.1.0" to test against Peppol BIS 3.1.0 (draft) (mandatory from 2027-02-24) and see which findings are new. Uses one metered call. Requires an InvoiceVerify account (OAuth sign-in).

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": {
      "xml": "<xml>"
    },
    "name": "validate_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
xmlYesThe complete invoice XML document.
profileNoRule set to apply: 'auto' = detect the rule set from the CustomizationID (default); 'peppol' = EN 16931 + Peppol BIS Billing 3.0 (3.0.22); 'peppol-3.1.0' = EN 16931 + Peppol BIS 3.1.0 (draft): OpenPeppol's draft 3.1.0 rules, mandatory from 2027-02-24; findings new in 3.1.0 are marked; 'xrechnung' = EN 16931 + XRechnung 3.0 (Germany); 'nlcius' = EN 16931 + SI-UBL 2.0 / NLCIUS (Netherlands); 'en16931' = EN 16931 core rules only.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / profile / description
      Previous value: -"Rule set to apply. 'auto' (default) detects it from the CustomizationID."New value: +"Rule set to apply: 'auto' = detect the rule set from the CustomizationID (default); 'peppol' = EN 16931 + Peppol BIS Billing 3.0 (3.0.22); 'peppol-3.1.0' = EN 16931 + Peppol BIS 3.1.0 (draft): OpenPeppol's draft 3.1.0 rules, mandatory from 2027-02-24; findings new in 3.1.0 are marked; 'xrechnung' = EN 16931 + XRechnung 3.0 (Germany); 'nlcius' = EN 16931 + SI-UBL 2.0 / NLCIUS (Netherlands); 'en16931' = EN 16931 core rules only."
    • changedInput schema / properties / profile / enum
      Previous value: -[
      -  "auto",
      -  "peppol",
      -  "en16931",
      -  "xrechnung",
      -  "nlcius"
      -]New value: +[
      +  "auto",
      +  "peppol",
      +  "peppol-3.1.0",
      +  "xrechnung",
      +  "nlcius",
      +  "en16931"
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / profile / enum
      Previous value: -[
      -  "auto",
      -  "peppol",
      -  "en16931",
      -  "xrechnung"
      -]New value: +[
      +  "auto",
      +  "peppol",
      +  "en16931",
      +  "xrechnung",
      +  "nlcius"
      +]
  3. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  4. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already establish readOnly/idempotent/closed-world, so the description correctly focuses on what they can't say: it consumes one metered call, requires an InvoiceVerify account with OAuth sign-in, and returns findings annotated with rule IDs, line numbers and fixes. Missing details are minor, such as whether validation is synchronous or how large a report may be.

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 core verb and supported formats, then the profile note, then cost/auth constraints. The single long opening sentence packed with format names is dense but every clause carries information an agent would otherwise have to infer.

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 does the necessary work of sketching the response shape (pass/fail with rule IDs, line numbers, fixes). Combined with cost and authentication disclosure, only the mismatch between the prose's mention of Factur-X/CII and the profile enum leaves a small gap.

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%, including a fully documented enum, so the schema already carries the parameter meaning and a baseline 3 applies. The description's note about setting profile 'peppol-3.1.0' to see new findings largely restates the enum entry, and it introduces 'CII / Factur-X' in the prose while the profile enum has no factur-x value, which could mildly confuse an agent.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a precise verb ('Validate') and enumerates the concrete input formats (UBL 2.1, Peppol BIS 3.0, XRechnung, SI-UBL 2.0, CII/Factur-X) and rule sets, plus what comes back (pass/fail, rule IDs, line numbers, fixes). It never differentiates itself from clearly overlapping siblings such as check_factur_x, check_si_ubl or check_belgian_peppol_list, so an agent cannot infer which of these to call from the description alone.

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 conditions are only implied: it says to set profile 'peppol-3.1.0' when you want to preview the draft rules, which tells an agent when to pick that profile but not when to pick this tool over the format-specific checkers. There are no explicit exclusions or prerequisites beyond the account requirement.

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