Run a calculator
run_calculatorRun one calculator (ids from list_calculators) with explicit inputs and return the answer with worked steps. Field types: number (JSON number, or a string such as '2,5' or '-3'), fraction ({"n":3,"d":4} or '3/4'), list (array of numbers or '4; 7; 9'), text (a formula string such as 'x^3 - 2x'). Calculators with units accept inputs.unit (e.g. 'cm').
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": "<calculator>",
"inputs": "<inputs>"
},
"name": "run_calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Mode id of that calculator (see list_calculators). Defaults to the first mode. | |
| inputs | Yes | Field id → value. | |
| language | No | Language of the steps: nl (Dutch, default) or en (English). | nl |
| calculator | Yes | Calculator id. |