math_eval
Calculator, math expression evaluator with exact decimal arithmetic. Evaluate a maths expression exactly with decimal arithmetic (0.1+0.2 = 0.3): + - * / ^ %, brackets, sqrt, abs, round(x, places), floor, ceil, ln, log, exp, sin, cos, tan, min, max, mod, pi, e. A safe parser: no code is run. Input: expr. Output: result (string, exact), number. Price: $0.001 per call (x402, USDC on Base).
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": "math_eval"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expr | Yes | ||
| places | No |