shunting_yard
Converts an infix math expression into postfix RPN and evaluates the result, enabling reliable parsing and calculation of formulas.
Instructions
Convert an infix math expression to postfix (RPN) and evaluate it.
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": "shunting_yard"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expression | Yes | Infix math expression (e.g. '3 + 4 * 2') |