Verify Arithmetic
verify_arithmeticEvaluate arithmetic expressions securely using a whitelist of operators and functions. Perform calculations like addition, exponents, factorials, and logarithms without unsafe code execution.
Instructions
Safely evaluate an arithmetic expression using only whitelisted operators and functions.
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": "verify_arithmetic"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expression | Yes | A numeric expression to evaluate safely (no eval). Examples: '2 + 3 * 4', 'sqrt(144)', '2^10', 'factorial(10)', 'log(100, 10)' |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |