Validate XRechnung
validate_xrechnungValidate one XRechnung XML document (UBL or CII) or ZUGFeRD PDF with the official KoSIT validator. Provide exactly one of xml (the XML text) or file_base64. XML limit 5 MB. Free: 50 per IP per UTC day without a key, or 500 a month with a free API key. Files are not stored. Returns valid plus errors with rule_id and rule_url.
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": "validate_xrechnung"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | No | XRechnung XML (UBL or CII) as text. | |
| file_name | No | Optional file name, e.g. invoice.pdf. | |
| file_base64 | No | An XML file or ZUGFeRD PDF, base64-encoded. Use this or xml. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes | ||
| errors | Yes | ||
| syntax | No | ||
| summary | No | ||
| fileName | No | ||
| versions | No | ||
| persisted | No | ||
| invoiceType | No |