Skip to main content
Glama
ynab-mcp-server

ynab-mcp-server

Create an account

create_account
Destructive

Creates a new account in a YNAB plan by specifying its name, type, and starting balance in milliunits; use it to add accounts through the API.

Instructions

Creates a new account in a plan. There is no update/delete endpoint for accounts in the YNAB API -- once created, an account's name/type/balance can only be changed from the YNAB app itself. Amounts are in milliunits: 1000 = one unit of currency (e.g. $1.00 is 1000, -$12.34 is -12340). Covers POST /plans/{plan_id}/accounts.

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>",
      "name": "<name>",
      "type": "<type>",
      "balance": "<balance>"
    },
    "name": "create_account"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe name of the account.
typeYes
balanceYesThe current balance of the account, in milliunits. Amounts are in milliunits: 1000 = one unit of currency (e.g. $1.00 is 1000, -$12.34 is -12340).
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.

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 flag destructiveHint=true and openWorldHint=true, but the description adds the crucial specific: creation is one-way via the API, and name/type/balance can only be changed in the YNAB app. It also documents the milliunit unit convention, guarding against a 1000x balance error. Auth/scope requirements and the shape of the response are still unstated.

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, each front-loaded with its point: what it does, what can't be undone, and unit conventions. Slight redundancy with the balance parameter's schema description, but no filler.

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?

With no output schema, an agent cannot learn what a successful create returns (presumably the new account object and its id) — that is the main open gap. Everything else an agent needs to avoid a wrong or irreversible call is present: units, required fields via schema, and the irreversibility constraint.

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 75% and each of the four parameters already carries a description in the schema, including the milliunit explanation that the description repeats verbatim. The only description-level addition is the endpoint path, so it does not meaningfully extend parameter meaning beyond structured data; baseline 3 applies.

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?

States a specific verb and resource ("Creates a new account in a plan") and pins it to the concrete endpoint POST /plans/{plan_id}/accounts. It also distinguishes itself from the account-modification surface by noting no update/delete endpoint exists, so an agent won't go hunting for a sibling that can rename an account.

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?

Gives clear context for when this tool is the right call and, more usefully, tells the agent there is no in-API alternative for later edits — those must happen in the YNAB app. It stops short of naming a specific sibling tool or stating preconditions (plan must exist, token scope), so no explicit alternative routing.

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