cal
Evaluate mathematical expressions using JavaScript's expr-eval library with constants like E and PI. Input an expression to calculate results.
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 |