Validate Invoice Data
validate_invoice_dataValidates extracted invoice totals, item totals, dates, and foreign-currency EUR-rate guardrails before booking to prevent incorrect entries.
Instructions
Validate extracted invoice totals, item totals, dates, and foreign-currency EUR-rate guardrails before booking.
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": {
"total_net": "<total_net>",
"total_vat": "<total_vat>",
"total_gross": "<total_gross>",
"items": "<items>"
},
"name": "validate_invoice_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Items with at least {total_net_price, vat_rate_dropdown?} each. | |
| vat_no | No | Supplier VAT number (KMKR, e.g. EE102809963) | |
| due_date | No | Due date (YYYY-MM-DD) | |
| reg_code | No | Supplier registry code (registrikood, 8-digit Estonian business code) | |
| total_net | Yes | Invoice total net amount | |
| total_vat | Yes | Invoice total VAT amount | |
| total_gross | Yes | Invoice total gross amount | |
| invoice_date | No | Invoice date (YYYY-MM-DD) | |
| currency_rate | No | Planned exchange rate (foreign units per 1 EUR) | |
| base_net_price | No | Planned EUR-equivalent net amount | |
| cl_currencies_id | No | Invoice currency (default EUR) |