perform_arithmetic
Calculate results by applying addition, subtraction, multiplication, or division to a list of numbers in sequence.
Instructions
Perform basic arithmetic on a list of numbers.
Args: operation: 'add', 'subtract', 'multiply', or 'divide' numbers: List of numbers to operate on in sequence
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>",
"numbers": "<numbers>"
},
"name": "perform_arithmetic"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| numbers | Yes | ||
| operation | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |