evaluate
Compute answers to mathematical expressions, from basic arithmetic to calculus, algebra, and matrix operations. Pass optional variables as scope for expressions with unknowns.
Instructions
Evaluate a mathematical expression. Supports arithmetic, algebra, calculus, matrices, and more. Example: '2 + 2', 'sqrt(16)', 'derivative(x^2, x)', 'det([[1,2],[3,4]])'
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": {
"expression": "<expression>"
},
"name": "evaluate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | Optional variables to use in the expression (e.g., {x: 5, y: 10}) | |
| expression | Yes | Mathematical expression to evaluate |