Simplify Expression
simplifySimplify algebraic expressions by combining like terms and folding constants. Pass variable values to treat them as known constants, enabling symbolic reduction.
Instructions
Simplify a mathematical expression algebraically (collect like terms, fold constants). Free variables stay symbolic; values passed in 'variables' are folded in as known constants. Note: simplification is heuristic — e.g. 'x/x' simplifies to 1 (dropping x != 0) — and it does not expand products or factor polynomials.
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": "simplify"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| variables | No | Known values to fold into the expression, e.g. { x: 2 }. Keys must be valid variable names. | |
| expression | Yes | A mathematical expression to simplify, e.g. '3*x + 2*x' or 'x^2 + 2*x + 1'. |