get_calc
Exact math for agents — the arithmetic LLMs get plausibly wrong. Evaluates an expression at 50-significant-digit precision (BigNumber): big-integer multiplication, high-precision division, roots, logs, factorials, unit conversions (12 inch to cm). GET ?expr=…, result returned as an exact string. Deterministic, no AI, never executed as code. ($0.001 per call, paid via x402)
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": {
"expr": "<expr>"
},
"name": "get_calc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expr | Yes | Math expression, max 400 chars — e.g. '2^128', 'sqrt(2)', '12 inch to cm' |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expr | No | ||
| type | No | ||
| result | No | exact result as a string | |
| result_number | No | float64 companion when finite |