Basic Calculator
calculator_basicUse this tool for addition, subtraction, multiplication, or division of two numbers. Handles division by zero with an error.
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": "calculator_basic"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | First operand. | |
| b | Yes | Second operand. | |
| operation | Yes | Operation: add, subtract, multiply, divide (or +, -, *, /, ×, ÷). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes | ||
| result | Yes | ||
| operation | Yes | ||
| expression | Yes |