run_calculator
Run a calculator and get the result. Pass the calculator's name (from search_calculators) and its input fields in args. Returns the computed values plus a share link to the calculator page with inputs pre-filled; calculators backed by a legal edition also return edition, effective_from and sources[] (document, article/clause, URL) to cite. Missing inputs are refused (isError), never defaulted. When the calculator has a formula, the result ALSO includes formula_latex — the formula with the user's values substituted; show it to the user (rendered as LaTeX when your client supports it, otherwise inline as text). Example: {"name":"bmi_calculator","args":{"unitSystem":"metric","weight":70,"height":175}}.
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": {
"name": "<name>",
"args": "<args>"
},
"name": "run_calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | Yes | Input fields for the calculator (from the search result's inputSchema or get_calculator_schema). | |
| lang | No | Optional language for labels, titles and number formatting: en, es, vi, hi, ja, ko, tr, ar, ru, fr, zh, tw, pt, de (zh = Simplified, tw = Traditional Chinese; zh-CN / zh-TW / vi-VN style tags are accepted). Default: en. | |
| name | Yes | Tool name from search_calculators, e.g. compound_interest_calculator. | |
| timezone | No | Optional IANA time zone of the user (e.g. Asia/Seoul, America/New_York) or offset (+09:00): date calculators count "today" in it. Default: the time zone of the lang's country (en = America/New_York). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Share link: the calculator page with these inputs pre-filled. | |
| data | Yes | Secondary result cells. | |
| main | Yes | Headline cells {label, value, unit?}. | |
| edition | No | ||
| sources | No | {title, section, cite, url} | |
| warning | No | ||
| warnings | No | ||
| data_used | No | Real-data figures used, with source and date. | |
| data_status | No | ||
| layer_status | No | ||
| formula_latex | No | Formula with the caller's values unless formula_values is false. | |
| rendered_text | No | Plain-text result when main and data are empty. | |
| effective_from | No | ||
| formula_values | No |