Get Spending Analysis
get_spending_analysisAggregate spending by category or payee within a date range to identify top spending areas, with optional time-based breakdowns for deeper insight.
Instructions
Aggregate spending over a date range and rank by category/payee for quick insights. Optionally set time_granularity to also bucket the same spending over time (daily, weekly, day-of-week, week-of-month) to see when money is spent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top_n | No | ||
| group_by | No | category | |
| budget_id | No | Budget ID. Omit to use the last-used budget. | |
| since_date | Yes | Date in YYYY-MM-DD format. | |
| until_date | No | Date in YYYY-MM-DD format. | |
| account_ids | No | ||
| category_ids | No | ||
| time_granularity | No | Also bucket the same spending over time (daily, weekly starting Monday, day-of-week, or week-of-month) and include it as by_time in the result. | |
| include_transfers | No | Include internal account transfers in results. Defaults to false since transfers inflate spending totals. |