calculator
Evaluate numeric arithmetic expressions safely without using eval or shell commands. Prevents code injection while performing calculations.
Instructions
Evaluate numeric arithmetic without eval or shell execution.
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": "calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expression | Yes |