math_eval
Evaluates mathematical expressions and scalar functions using exact Decimal, Fraction, or float modes, with configurable precision for logs, roots, trigonometry, statistics, finance, and unit conversion.
Instructions
Exact arithmetic and scalar functions: Decimal/Fraction/float modes, logs, roots, trig in rad and deg, hyperbolic, combinatorics, statistics and distributions, Italian finance (VAT, withholding, loans, NPV, IRR, DCF), unit conversion.
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 | ||
| precision | No | ||
| variables | No | ||
| exact_mode | No | decimal | |
| show_steps | No | Add numbered steps in Italian to result.steps. |