Calculate
calculatePerform basic arithmetic calculations with two numbers using addition, subtraction, multiplication, or division operations.
Instructions
Perform a basic arithmetic calculation
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>",
"op": "<op>"
},
"name": "calculate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | First operand | |
| b | Yes | Second operand | |
| op | Yes | Operation to perform | |
| stream | No | If true, emit progress notifications |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | Yes | ||
| value | Yes |