factorize
Factor algebraic expressions into factored forms by passing an expression string; returns the factored result or an error message.
Instructions
Factorizes an expression.
Args: expression: The expression to factorize as a string.
Returns: On success: {"result": } On error: {"error": }
Examples: >>> factorize("x**2 + 2*x + 1") {'result': '(x + 1)**2'}
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": "factorize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expression | Yes |