Validate Cii Invoice
validate_cii_invoiceValidate CII CrossIndustryInvoice XML for structural correctness by parsing it into an EN16931Invoice and checking required core fields. Returns valid status with warnings or errors.
Instructions
Validate a CII CrossIndustryInvoice XML string for structural correctness.
Performs structural validation by parsing the XML into an EN16931Invoice and checking that required core fields are present and non-empty.
Note: this tool does NOT validate against the normative CII D16B XSD schema. For full schema validation use a dedicated CII or ZUGFeRD validator.
On success returns {'valid': true, 'warnings': list[str]}. On failure returns {'valid': false, 'errors': list[str]}. On parse error returns {'valid': false, 'errors': ['XML parse error: ...']}.
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_string": "<xml_string>"
},
"name": "validate_cii_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml_string | Yes | CII CrossIndustryInvoice XML string to validate. Must contain a root rsm:CrossIndustryInvoice element. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||