transform_to_ubl
Converts structured JSON invoice data into UBL 2.1 XML for Belgian e-invoicing without built-in validation, enabling separate validation or direct submission.
Instructions
Convert a structured JSON invoice payload to UBL 2.1 XML.
Unlike generate_invoice_be, this tool does not run validation after
transformation. Intended as a conversion step when the caller will validate
separately or submit directly to a platform that performs its own validation.
Returns a dict with:
xml: the generated UBL 2.1 XML stringwarnings: list of non-fatal issues detected during transformation
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": {
"data": "<data>"
},
"name": "transform_to_ubl"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Source invoice data matching the BEInvoice schema |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||