compute
Evaluate numeric expressions to get exact rational fractions and decimal values, eliminating arithmetic rounding errors in AI reasoning.
Instructions
Compute the exact rational fraction and decimal value of a numeric expression using zero-drift AST rational arithmetic.
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": "compute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expr | Yes | Mathematical expression to evaluate (e.g., '(144 / 12) + 7'). |