Get Spending Trends
get_spending_trendsAnalyze monthly net spending by category or payee, compare prior months, and flag unusual spending via median/MAD thresholds, including refunds, splits, and zero-activity months.
Instructions
Read-only monthly net spending by category or payee, with zero-activity months, refunds, split components and prior-month changes. Observational unusual-spending flags use >=3 prior complete months and an explicit median/MAD threshold; partial months are labeled and never flagged. Adds historical comparisons beyond recurring-charge/reconciliation tools.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| groupBy | No | Group stable IDs by category (default) or payee. | |
| budgetId | No | ||
| sinceDate | No | Inclusive start YYYY-MM-DD; default six complete calendar months ago. | |
| untilDate | No | Inclusive end YYYY-MM-DD; default previous calendar month's last day. Maximum 36 calendar months. | |
| incomeCategoryIds | No | Explicit income IDs when internal metadata is ambiguous. | |
| minAnomalyIncrease | No | Minimum dollar increase for an observational flag (default 50), combined with median/MAD thresholds. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |