Skip to main content
Glama

Universal CEN/EN 16931 & Peppol BIS 3.0 Validator

universal_peppol_bis3_validator
Read-onlyIdempotent

[Universal CEN/EN 16931 & Peppol BIS Billing 3.0 validator. Deterministic calculation, read-only, side-effect free]. Audits structured e-invoices against CEN/EN 16931 semantic standards and OpenPeppol UBL 2.1 Schematron rules, calculating tax subtotals, line extension totals, and payable amounts with decimal.js precision. Usage: Use this tool to validate cross-border e-invoices before dispatching to Peppol Access Points or European buyers. Returns: JSON object with { invoiceNumber: string, isCenEn16931Compliant: boolean, isPeppolBis3Compliant: boolean, validationStatus: string, financialTotals: object, vatSubtotals: array, violationsFound: array }.

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": {
      "invoiceNumber": "<invoiceNumber>",
      "issueDateIso": "<issueDateIso>",
      "senderVatId": "<senderVatId>",
      "senderEndpointId": "<senderEndpointId>",
      "receiverVatId": "<receiverVatId>",
      "receiverEndpointId": "<receiverEndpointId>",
      "buyerReferenceOrOrderNumber": "<buyerReferenceOrOrderNumber>",
      "invoiceLines": "<invoiceLines>"
    },
    "name": "universal_peppol_bis3_validator"
  }
}

Input Schema

NameRequiredDescriptionDefault
dueDateIsoNoPayment due date in YYYY-MM-DD format
senderVatIdYesSeller statutory VAT number with country prefix (e.g. IT01234567890)
currencyCodeNoInvoice currency (default: EUR)
invoiceLinesYesArray of invoice item lines
issueDateIsoYesInvoice issue date in YYYY-MM-DD format
invoiceNumberYesUnique invoice identifier (cbc:ID)
receiverVatIdYesBuyer statutory VAT number with country prefix
senderEndpointIdYesSeller Peppol Electronic Address Scheme (EAS) identifier (e.g. 0201:IT01234567890)
receiverEndpointIdYesBuyer Peppol EAS endpoint identifier (e.g. 0201:IT98765432100)
allowanceChargeAmountEurNoOptional surcharge or document-level discount in EUR
buyerReferenceOrOrderNumberYesBuyer reference or purchase order number (cbc:BuyerReference)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, and the description reinforces them with "deterministic calculation, read-only, side-effect free" plus a concrete detail annotations cannot express: decimal.js precision and the fact that the tool computes tax subtotals, line extension totals and payable amounts. What is not disclosed is failure behavior for malformed input or whether violations are returned rather than thrown — though the violationsFound array partly covers that.

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?

The bracket tagline, then explicit Usage and Returns sections make it easy to scan and the purpose is front-loaded. The "read-only, side-effect free" clause mildly duplicates the annotations, but no sentence is wasted overall.

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 11 parameters, 8 required, no output schema and no nested enums, the description does the right compensating work by enumerating the return object's keys (invoiceNumber, isCenEn16931Compliant, isPeppolBis3Compliant, validationStatus, financialTotals, vatSubtotals, violationsFound). Combined with a fully documented input schema, an agent has enough to call it correctly; only error/edge-case behavior 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 all 11 parameters are already documented, including EAS identifier formats and the optional allowanceChargeAmountEur. The description adds no parameter-level meaning beyond the schema and does not highlight which fields are required (8 of 11) or call out the nested invoiceLines contract. Baseline 3 is correct here.

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 description names a specific verb (audits/validates) and resource (structured e-invoices) and pins the exact standards targeted: CEN/EN 16931 semantic rules and OpenPeppol UBL 2.1 Schematron for Peppol BIS Billing 3.0. That level of standard-specificity separates it from the other validator siblings (ted_eforms_notice_validator, dpp_payload_validator, eudr_due_diligence_statement_validator) without needing to name them.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

"Use this tool to validate cross-border e-invoices before dispatching to Peppol Access Points or European buyers" gives a clear situational trigger tied to a real workflow stage. It stops short of explicit exclusions — e.g. what to do for domestic-only, non-Peppol, or non-UBL invoices — so an agent must infer when this tool is the wrong choice.

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