Skip to main content
Glama
ynab-mcp-server

ynab-mcp-server

Update a category

update_category
Destructive

Modify a YNAB category’s name, note, or goal settings, and remove an existing goal by passing null as the target amount. Amounts are specified in milliunits (1000 = one currency unit).

Instructions

Updates a category's name, note, or goal fields. Passing null for goal_target removes any existing goal. Amounts are in milliunits: 1000 = one unit of currency (e.g. $1.00 is 1000, -$12.34 is -12340). Covers PATCH /plans/{plan_id}/categories/{category_id}.

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

Input Schema

NameRequiredDescriptionDefault
nameNo
noteNo
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_targetNo
goal_frequencyNo
goal_target_dateNo
goal_needs_whole_amountNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

The annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is known before reading. The description adds real value beyond that by explaining that passing null for goal_target removes an existing goal, which is precisely the destructive nuance an agent needs. It still says nothing about whether other field changes are reversible or what a partial update does to omitted fields.

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?

Three short sentences, front-loaded with the action and then the two details most likely to be gotten wrong (null removal and milliunits). The trailing endpoint mapping is useful for orientation but is the least essential sentence.

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

Completeness3/5

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

For an 8-parameter destructive mutation with no output schema, the description covers the highest-risk semantics but leaves half the goal-related parameters unexplained. An agent could call it correctly for name/note/goal_target changes but would be guessing on goal_frequency, goal_target_date, and goal_needs_whole_amount.

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 coverage is only 13% (just plan_id), so the description must carry most of the parameter burden. It does cover the unit convention for amounts (milliunits, with a concrete example including a negative value) and the null-removal semantics of goal_target, but goal_frequency, goal_target_date, goal_needs_whole_amount, and category_id are left entirely undocumented.

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 opens with a specific verb and resource ('Updates a category's name, note, or goal fields'), which is enough to separate it from sibling mutations like update_category_group or create_category. It stops short of explicitly naming those alternatives, so it is clear but not maximally differentiated.

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?

Usage is implied by the wording: it edits fields on an existing category, so create_category is not the tool to reach for. There is no explicit when-to-use/when-not-to-use statement and no mention of prerequisites such as permissions or whether the plan must be open.

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