math_calc
The closed calculator — the model WRITES the expression, the machine COMPUTES it. Exact Decimal arithmetic from the SOURCE TEXT of every literal (0.1+0.2 = 0.3, never 0.30000000000000004): + - * / // % **, parentheses, unary sign, and exactly three named functions round(x[,n]) with declared HALF_UP, sqrt, abs. Everything else — names, letters, strings, attributes, lambdas, exponents over 64, divisions by zero, sqrt of negatives — REFUSED BY NAME, never silently clipped. digits=0..30 quantizes the final value and KEEPS trailing zeros (39.900 stays 39.900). 50-digit working precision declared in the answer. The engine under the formula catalogue to come. Free forever: arithmetic should cost nothing.
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_calc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expr | Yes | ||
| digits | No |