Calculator
calculatePerform arithmetic operations like addition, subtraction, multiplication, or division on two numbers. Specify the first number, second number, and operation to get the result.
Instructions
Perform arithmetic calculations (add, subtract, multiply, divide)
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": {
"a": "<a>",
"b": "<b>",
"operation": "<operation>"
},
"name": "calculate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | First number | |
| b | Yes | Second number | |
| operation | Yes | Operation to perform |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | ||
| operation | Yes |