Skip to main content
Glama
ynab-mcp-server

ynab-mcp-server

Modify a month's budgeted amount or a category's goal

modify_budget
Destructive

Set or clear a YNAB category goal, or assign a budgeted amount to a category for a specific month.

Instructions

Two actions:

  • set_amount: sets the assigned (budgeted) amount for a category in a specific month. Requires month, category_id, amount. Covers PATCH /plans/{plan_id}/months/{month}/categories/{category_id}.

  • set_goal: sets or clears a category's goal (goal_target / goal_target_date / goal_frequency / goal_needs_whole_amount). Requires category_id. Covers PATCH /plans/{plan_id}/categories/{category_id}. Amounts are in milliunits: 1000 = one unit of currency (e.g. $1.00 is 1000, -$12.34 is -12340).

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>",
      "action": "<action>",
      "category_id": "<category_id>"
    },
    "name": "modify_budget"
  }
}

Input Schema

NameRequiredDescriptionDefault
monthNoRequired for "set_amount". Defaults to "current" if omitted.
actionYes
amountNoRequired for "set_amount": the new assigned amount, in milliunits.
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_idYes
goal_targetNoFor "set_goal": pass null to remove the goal.
goal_frequencyNo
goal_target_dateNo
goal_needs_whole_amountNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true and openWorldHint=true, so the agent knows this is a mutating, destructive operation. The description adds genuinely useful context that annotations do not: the milliunits convention with concrete examples (1000 = one currency unit, -12340 = -$12.34), which is essential to avoid off-by-1000 errors, plus the underlying endpoint mapping. It does not state that set_amount overwrites any existing budgeted value, nor how clearing a goal interacts with other goal fields beyond what the schema says.

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 bulleted two-action structure is front-loaded and easy to parse, with the milliunits rule placed at the end as a global caveat. The endpoint lines ("Covers PATCH /plans/{plan_id}/...") are arguably overhead for an agent but do add mapping value. Little waste overall.

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 9-parameter, two-mode tool with no output schema, the description explains the action split and per-action parameter requirements well enough to call it correctly. Gaps remain around what a call returns and around the two undocumented goal fields, but the core decision surface is covered.

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

Parameters4/5

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

With schema description coverage at only 44%, the description carries real weight and does much of it: it ties month and amount to set_amount, ties category_id to both actions, and enumerates the goal fields belonging to set_goal. The remainder is left thin: goal_target_date and goal_needs_whole_amount have no description coverage anywhere, and goal_frequency's meaning is not elaborated beyond the schema enum. Good compensation overall but not complete.

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

Purpose4/5

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

The description names two concrete actions with specific verbs and resources: set_amount sets the assigned budgeted amount for a category in a month, and set_goal sets or clears category goal fields. It also maps each action to its underlying PATCH endpoint, which makes the scope unambiguous. It stops short of differentiating from sibling tools such as update_category, but the two-action breakdown makes the tool's own behavior clear.

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

Usage Guidelines3/5

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

It states per-action parameter requirements ("Requires month, category_id, amount" for set_amount; "Requires category_id" for set_goal), which is invocation guidance rather than selection guidance. There is no statement of when to prefer this tool over alternatives or when not to use it, and no prerequisites or caveats about overwriting existing budget values. Usage is implied by the action list but not explicitly framed.

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