cal
Evaluate mathematical expressions with support for basic operations and constants like PI and E using the expr-eval library.
Instructions
Use the expr-eval library to evaluate the input mathematical expression and return the result.
Constant Description E The value of Math.E from your JavaScript runtime PI The value of Math.PI from your JavaScript runtime true Logical true value false Logical false value
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": {
"exp": "<exp>"
},
"name": "cal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exp | Yes |