Check an e-invoice
check_e_invoiceReads the XML of an electronic invoice (UBL as used by Peppol BIS and XRechnung, or CII as used by XRechnung, ZUGFeRD and Factur-X) and tests it: the main fields are present, the lines add up to the totals, net plus VAT is gross, the VAT per rate adds up and follows from base and percentage, the amount to pay is right and the IBAN of the payment has correct check digits. Every test comes back with a sentence in plain words. It is not a validation against the XML schema or the Schematron rules of EN 16931, Peppol or XRechnung. Give the XML text itself, not a PDF.
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": "check_e_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | Yes | The XML text of the invoice (UBL or CII), complete, starting at <?xml or at the outer element. At most 150000 characters. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| buyer | No | ||
| scope | No | ||
| checks | No | ||
| format | No | ||
| number | No | ||
| reason | No | ||
| seller | No | ||
| syntax | No | ||
| message | No | ||
| verdict | No | ||
| currency | No | ||
| document | No | ||
| problems | No | ||
| readable | Yes | ||
| issue_date | No | ||
| profile_id | No | ||
| amount_to_pay | No |