Validate Peppol UBL & Facturae XML
einvoice_validateAudit an existing OASIS UBL 2.1 (EN 16931 / Peppol BIS Billing 3.0 / XRechnung) or Spanish Facturae 3.2.2 XML invoice against mandatory business rules, cent-exact monetary math (BR-CO-10, BR-CO-13, BR-CO-15, BR-CO-16), and XXE security hazards. Stateless, read-only, deterministic with zero retention; auto-detects XML standard and returns valid (boolean), standard, errors[], warnings[], and extracted summary (returns isError=true on DOCTYPE/ENTITY XXE payloads or unparseable XML). Use before sending or ingesting third-party XML invoices; use einvoice_generate instead to build compliant XML from JSON.
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": "einvoice_validate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | Yes | Complete raw XML string of a UBL 2.1 Invoice/CreditNote (EN 16931 / Peppol / XRechnung) or Spanish Facturae 3.2.x document; must not contain DOCTYPE or ENTITY declarations. |