Get YNAB spending summary by category
ynab_get_spending_summarySummarize spending and income per category over a date range using YNAB transactions. Defaults to the last 30 days if since_date is not provided.
Instructions
Summarize spending (outflow) and income (inflow) per category over a date range, computed client-side from transactions (YNAB has no single endpoint for this). Defaults to the last 30 days if since_date is not given. Narrow the date range for large or long-lived budgets, both to keep the response small and to avoid burning YNAB's 200-requests/hour rate limit.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"budget_id": "<budget_id>"
},
"name": "ynab_get_spending_summary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| budget_id | Yes | YNAB budget id, or "last-used" for the most recently used budget | |
| since_date | No | Only include transactions on or after this date. Defaults to 30 days ago. Must not be after until_date. | |
| until_date | No | Only include transactions on or before this date. |