Validate Fa2 Invoice
validate_fa2_invoiceValidate KSeF FA(2) XML invoices by running XSD schema validation and Polish business-rule checks, returning errors and warnings.
Instructions
Validate a KSeF FA(2) XML invoice.
Runs XSD validation (when the official schema is present) and Polish business-rule checks. Returns a DocumentValidationResult with errors and warnings.
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_content": "<xml_content>"
},
"name": "validate_fa2_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml_content | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes | ||
| errors | No | ||
| metadata | No | ||
| warnings | No |