add_numbers
Sums any list of numbers with precise rounding to avoid floating-point errors. Ideal for calculating total expenses or performing arithmetic in personal finance.
Instructions
Helper tool for adding numbers together.
LLMs should use this tool for arithmetic operations to avoid calculation errors. This is especially useful for summing expenses, calculating totals, or performing any arithmetic where precision matters.
Args: numbers: List of numbers to add together. Can include negative values for subtraction.
Returns: Dictionary with the sum rounded to 2 decimal places to avoid floating-point precision issues.
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": {
"numbers": "<numbers>"
},
"name": "add_numbers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| numbers | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||