calculate
Perform basic arithmetic operations including addition, subtraction, multiplication, division, exponentiation, square roots, and modulo calculations to solve mathematical problems.
Instructions
Perform basic arithmetic operations (add, subtract, multiply, divide, power, sqrt, modulo)
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": {
"operation": "<operation>",
"a": "<a>"
},
"name": "calculate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operation | Yes | The mathematical operation to perform | |
| a | Yes | First number | |
| b | No | Second number (not required for sqrt) |