calc
Evaluate an arithmetic expression exactly, with a parser rather than a guess. Numbers, + - * / % ^, parentheses, and a fixed set of functions. Anything else is a parse error; nothing here executes code.
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": "calc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expression | Yes | e.g. "(1+2)^3 / 7" |