einvoice_xml_auditor
Audit FatturaPA 1.2.2 and Peppol BIS 3.0 XML against official XSD and business rules (SDI error codes, decimal recalculation, Bollo > 77.47€), or build compliant XML from simplified JSON.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "einvoice_xml_auditor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | 'audit' to validate XML or 'builder' to generate XML | audit |
| items | No | Items array with unitPrice, quantity, vatRate, natura (in builder mode) | |
| sender | No | Sender object (in builder mode) | |
| payment | No | Optional payment details with IBAN and BIC (in builder mode) | |
| document | No | Document details (number, date, currency) (in builder mode) | |
| recipient | No | Recipient object (in builder mode) | |
| xmlContent | No | Raw XML string of the invoice (required in audit mode) |