set_variable
Store the result of a mathematical expression as a variable for reuse in subsequent calculations.
Instructions
Set a variable value in the math context
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": {
"name": "<name>",
"expression": "<expression>"
},
"name": "set_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Variable name | |
| expression | Yes | Mathematical expression to evaluate and store |