calculator
Perform basic mathematical calculations including addition, subtraction, multiplication, and division using two numbers. This tool handles arithmetic operations for mathematical problem-solving.
Instructions
Perform basic mathematical calculations
Input Schema
Name | Required | Description | Default |
---|---|---|---|
a | Yes | The first number | |
b | Yes | The second number | |
operation | Yes | The mathematical operation to perform |
Input Schema (JSON Schema)
{
"properties": {
"a": {
"description": "The first number",
"type": "number"
},
"b": {
"description": "The second number",
"type": "number"
},
"operation": {
"description": "The mathematical operation to perform",
"enum": [
"add",
"subtract",
"multiply",
"divide"
],
"type": "string"
}
},
"required": [
"operation",
"a",
"b"
],
"type": "object"
}