calculator
Perform addition, subtraction, multiplication, or division on two numbers to compute the result.
Instructions
Performs basic arithmetic (add, subtract, multiply, divide) on two numbers.
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>",
"b": "<b>"
},
"name": "calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | The first number. | |
| b | Yes | The second number. | |
| operation | Yes | The math operation to perform: add, subtract, multiply, or divide. |