calc_expression
Evaluate mathematical expressions safely with support for functions like sqrt, sin, cos, and constants including PI. Specify decimal precision for accurate calculations.
Instructions
Evaluate math expression safely. Supports sqrt, sin, cos, PI, etc.
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_expression"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expression | Yes | Math expression (e.g., 2+2, sqrt(16), sin(PI/2)) | |
| precision | No | Decimal precision (default: 10) |