Calculator
calculateEvaluates an arithmetic expression safely (no code execution): + - * / % ^ !, parentheses, percentages like '15% * 80', and functions sqrt, abs, round, floor, ceil, ln, log, log2, exp, trig, min, max, pow, hypot, with constants pi and e. Returns the numeric result. Use it when an exact result is needed instead of mental math. Limits: no variables, symbolic algebra or units.
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": {
"expression": "<expression>"
},
"name": "calculate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expression | Yes | e.g. (1200*0.015)/(1.2-1.15) or 15% * 80 |