Get budget data
get_budgetRetrieves YNAB plan-month budgeting data in one call: monthly overviews, category amounts, scheduled transactions, and money movements, with optional month and category filters for targeted lookups.
Instructions
Consolidated read access to plan-month budgeting data. Select a "view":
overview: all plan months (summary amounts only). Covers GET /plans/{plan_id}/months.
month: a single month's categories with assigned/activity/available amounts. Requires "month" (defaults to "current"). Covers GET /plans/{plan_id}/months/{month}.
category: category groups and categories. If "category_id" is given (with "month"), returns that one category's amounts for that month (GET /plans/{plan_id}/months/{month}/categories/{category_id}); otherwise returns all category groups with categories at current-month amounts (GET /plans/{plan_id}/categories).
scheduled: scheduled (future/recurring) transactions. If "scheduled_transaction_id" is given, returns that one (GET .../scheduled_transactions/{id}); otherwise returns all (GET .../scheduled_transactions).
money_movements: individual money movements between categories / Ready to Assign. If "month" is given, scoped to that month; otherwise all.
money_movement_groups: money movement groups (movements performed together). If "month" is given, scoped to that month; otherwise all.
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": {
"plan_id": "<plan_id>",
"view": "<view>"
},
"name": "get_budget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| view | Yes | ||
| month | No | Required for "month" view; optional scoping for "category", "money_movements" and "money_movement_groups" views. Defaults to "current" when a month is required but omitted. | |
| plan_id | Yes | The id of the plan (formerly "budget"). Use "last-used" for the most recently used plan, or "default" if default plan selection is enabled for this token. | |
| category_id | No | Only used by the "category" view, together with "month", to fetch a single category. | |
| last_knowledge_of_server | No | If provided, only entities changed since this server knowledge value are included (where supported by the underlying endpoint). | |
| scheduled_transaction_id | No | Only used by the "scheduled" view, to fetch a single scheduled transaction. |