Get Spending Summary by Category
ynab_get_spending_summaryAggregate YNAB transactions by category to get ranked spending totals in dollars for any date range, excluding income and transfers.
Instructions
Aggregate transactions by category and return ranked spending totals.
Use this to answer questions like:
"How much did I spend on dining out this month?"
"What are my top 10 spending categories this year?"
"Compare groceries vs restaurants for Q1"
Amounts are returned in dollars (not YNAB milliunits). Transfers and income are excluded — only outflows are shown.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes | SpendingSummaryInput with plan_id, since_date, until_date, top_n |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |