Calculate
calculateRun a calculator with the given inputs and return every result, formatted for the language, with interpretation labels when the calculator has them. Inputs you leave out use the calculator's defaults (the answer lists which). The answer includes the Omnikalc page URL with your inputs prefilled: show it to the user.
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": {
"calculator_id": "<calculator_id>"
},
"name": "calculate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| units | No | Unit symbols keyed by input id or output id, for inputs/outputs that offer units (e.g. {"weight": "kg"}). Omitted ones use the default unit. The value given in `inputs` is expressed in the chosen unit. | |
| inputs | No | Input values keyed by input id (see get_calculator). Numbers for number inputs; for a select/radio the option value or its label; true/false for a toggle; "YYYY-MM-DD" for a date; "HH:MM" for a time. | |
| language | No | Language of the calculators and of the returned links (en, fr, es). Defaults to en. | en |
| calculator_id | Yes | Calculator id as returned by search_calculators ("en/real-estate/mortgage-payment-borrowing-capacity"), or an omnikalc.com page URL, or just the slug together with `language`. |