Check business arithmetic to the cent
verify_calculation1 call. Recomputes a business calculation exactly (decimal, stated rounding) and says whether a claimed result is correct: invoice/claim totals with discounts and shipping, GST/VAT invoices, loan interest and amortisation, depreciation, FX with markup and fees, FIFO / moving-average inventory, weekly payroll overtime, trade quotes. Use it before giving the user any total you computed yourself, or to check a number another AI produced. Input fields per kind: call coverage (free).
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": {
"kind": "<kind>",
"inputs": "<inputs>"
},
"name": "verify_calculation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | Which calculation. | |
| inputs | Yes | The numbers, e.g. loan_interest {principal, annual_rate_percent, days, day_count 365|360}; invoice_or_claim_total {lines[{quantity, unit_price, discount_percent?}], invoice_discount_percent?, shipping?, tax_rate_percent?, tax_on_shipping?, amount_paid?}. Full field list per kind: coverage. | |
| claimed_result | No | Optional: the number (or object of named numbers) to check, e.g. 49.32 or {"interest": 49.32}. |