Skip to main content
Glama
ynab-mcp-server

ynab-mcp-server

Get budget data

get_budget
Read-only

Retrieves 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

NameRequiredDescriptionDefault
viewYes
monthNoRequired 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_idYesThe 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_idNoOnly used by the "category" view, together with "month", to fetch a single category.
last_knowledge_of_serverNoIf provided, only entities changed since this server knowledge value are included (where supported by the underlying endpoint).
scheduled_transaction_idNoOnly used by the "scheduled" view, to fetch a single scheduled transaction.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds genuine value beyond that: endpoint mappings per view, default behavior for omitted 'month' values, and content differences between views ('summary amounts only' vs assigned/activity/available amounts). It does not address pagination, result size, or error behavior, which is the remaining gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The definition is front-loaded with the core idea, then organized as a scannable per-view bullet list where each bullet pairs a purpose with its endpoint. Every bullet carries information, though the repeated 'Covers GET ...' phrasing adds some visual weight for a tool whose schema already encodes the view enum.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-way dispatcher with no output schema, the description does well: it covers all views, the conditional parameter combinations, and defaults. What it omits is return-shape detail for money_movements and money_movement_groups, and any statement about pagination or volume of results, which matter for the 'return all' branches.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 83%, so the schema already documents plan_id, month, category_id and scheduled_transaction_id. The description reinforces the most important cross-parameter dependency (category_id is only meaningful together with month, and only under the category view), which is real added meaning, but it largely restates what the schema says for the individual parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource ('Consolidated read access to plan-month budgeting data') and then enumerates six named views, each mapped to a concrete underlying REST endpoint. An agent can immediately tell this is a multi-view read dispatcher, distinct from siblings like get_transactions or modify_budget.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Each view is given an explicit condition for selection (e.g. month view requires 'month'; category view returns one category only when category_id and month are both present; scheduled view returns one record when scheduled_transaction_id is given). This is strong when-to-use guidance internal to the tool. It stops short of naming external alternatives such as get_transactions for transaction listing, so it is not a full 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.