Read an e-invoice
read_e_invoiceTurns the XML of an electronic invoice (UBL or CII: Peppol BIS, XRechnung, ZUGFeRD, Factur-X) into plain fields: number, dates, currency, seller and buyer with VAT numbers and addresses, every line with quantity, price and VAT rate, the VAT per rate, the totals and the payment details. Use it to book or summarise an invoice from its exact values instead of reading the XML by eye. 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": "read_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 |
|---|---|---|---|
| note | No | ||
| buyer | No | ||
| lines | No | ||
| format | No | ||
| number | No | ||
| reason | No | ||
| seller | No | ||
| syntax | No | ||
| totals | No | ||
| message | No | ||
| payment | No | ||
| currency | No | ||
| document | No | ||
| due_date | No | ||
| readable | Yes | ||
| type_code | No | ||
| issue_date | No | ||
| line_count | No | ||
| profile_id | No | ||
| attachments | No | ||
| payment_terms | No | ||
| vat_breakdown | No | ||
| lines_left_out | No | ||
| buyer_reference | No | ||
| note_on_amounts | No | ||
| order_reference | No |