beliq: Parse E-Invoice
beliq_parse_einvoiceParse an EU electronic invoice from UBL/CII XML or Factur-X/ZUGFeRD PDF into structured EN 16931 data, returning format, profile, invoice fields, totals, and warnings.
Instructions
Parse an EU electronic invoice into a structured EN 16931 invoice object. Accepts a UBL or CII XML document (inline via document, or a file via documentPath), or a Factur-X / ZUGFeRD PDF via documentPath. Returns the detected format and profile, the extracted invoice (number, dates, currency, seller, buyer, lines, totals, and more), and warnings that say what the document holds and the parsed invoice does not. Report the warnings with the invoice. Use it to read the contents of an invoice; use validate to check it against the rules.
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": "beliq_parse_einvoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Source syntax hint. 'auto' (default) detects CII vs UBL from the document. | |
| document | No | The invoice as XML text. Provide this OR documentPath, not both. | |
| documentPath | No | Path to an invoice file on disk: a UBL/CII XML, or a Factur-X / ZUGFeRD PDF. Provide this OR document. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | Yes | ||
| invoice | Yes | ||
| warnings | Yes | What the document holds and the parsed invoice does not. Report these with the invoice: an empty list is the only case in which the invoice is all the API read. | |
| profileUrn | No | ||
| profileDetected | No | ||
| businessProcessId | No | ||
| franceCtcDetected | No |