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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category | No | ||
| end_date | Yes | ||
| start_date | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |