calculate
Evaluate arbitrary-precision math expressions exactly to fix LLM arithmetic errors. Supports operators and functions like sqrt, sin, log.
Instructions
Evaluate an arbitrary-precision math expression exactly (fixes LLM multi-digit arithmetic errors). Supports +,-,*,/,^,sqrt(),sin(),log(), etc.
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 | Math expression, e.g. "123456789 * 987654321" or "sqrt(2)^10" |