summarize
Aggregate total spend per category for a given date range. Optionally filter by category to see spending breakdown.
Instructions
Aggregate total spend per category over a date range.
Args:
start_date: Range start, YYYY-MM-DD recommended.
end_date: Range end, YYYY-MM-DD recommended.
category: If set, only this category is included in the aggregation.
Returns:
List of dicts with keys category and total_amount (sum of
amount). Sorted by category ascending.
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": {
"start_date": "<start_date>",
"end_date": "<end_date>"
},
"name": "summarize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category | No | ||
| end_date | Yes | ||
| start_date | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |