spending_comparison
Compares spending between two date periods. Returns overall totals, per-category breakdown, per-payee breakdown, and highlights new/disappeared payees between periods. Optionally filter to specific categories. Excludes transfers. Useful for month-over-month, year-over-year, or any custom period comparison ('am I spending more on X than last year'). For a single period's breakdown use month_end_review; for a right-now check use financial_health_snapshot. navigate_to_trends is the matching page link to offer alongside a comparison answer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | No | The unique identifier of the user. If omitted, automatically resolved from the authenticated user. | |
| category_ids | No | Optional comma-separated category IDs to filter to. If omitted, compares all non-transfer categories. | |
| period_a_end | Yes | End of first period (YYYY-MM-DD). | |
| period_b_end | Yes | End of second period (YYYY-MM-DD). | |
| period_a_start | Yes | Start of first period (YYYY-MM-DD). | |
| period_b_start | Yes | Start of second period (YYYY-MM-DD). |