Run a calculator
run_calculatorUse for calculations that have no dedicated tool: loan repayments {principal, rate, months}, savings and money market growth {principal, monthly, years, rate}, PesaLink bank fees {amount, bank}, SACCO dividends {shares, deposits}, or a specific calculator such as Kenya's NSSF-only calculator. Needs a slug from list_calculators; get_calculator_rules lists each calculator's inputs. For salaries prefer get_take_home_pay, and for mobile money prefer get_mobile_money_fees. Returns the breakdown and a one-sentence summary.
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": {
"slug": "<slug>",
"inputs": "<inputs>"
},
"name": "run_calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Calculator slug, e.g. kenya-mortgage-loan-calculator. | |
| inputs | Yes | Inputs by name, e.g. {"principal": "5m", "rate": 14, "months": 240}. |