Skip to main content
Glama
ynab-mcp-server

ynab-mcp-server

Create, update, delete, or import transactions

modify_transactions
Destructive

Create, update, delete, or import YNAB transactions in a plan, including bulk edits and pending account imports. Use it to correct or add transaction data and keep budgets accurate.

Instructions

Four actions:

  • create: creates one or more new transactions. Requires "transactions" (each needs account_id, date, amount).

  • update: updates transaction(s). For a single transaction via PUT, provide "transaction_id" and "transaction". For bulk update via PATCH, provide "transactions" (each item needs "id" or "import_id" to identify the target, plus the fields to change).

  • delete: deletes a single transaction. Requires "transaction_id".

  • import: triggers YNAB to import any pending transactions on linked accounts for this plan. No other fields needed. 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>"
    },
    "name": "modify_transactions"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYes
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.
transactionNoFor single "update", used together with "transaction_id".
transactionsNoFor "create", or bulk "update".
transaction_idNoFor single "update" (with "transaction") or "delete".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, so the bar is lower. The description still adds real context: delete is scoped to a single transaction, import reaches out to linked accounts to pull pending transactions, and amounts are in milliunits (1000 = $1.00). It stops short of saying whether deletes are permanent or whether update replaces unspecified fields.

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

Conciseness5/5

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

A front-loaded 'Four actions:' label followed by one bullet per action, then a single closing note on units. No filler, and the structure lets an agent find its action without scanning prose.

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 five-parameter tool with nested transaction and subtransaction objects and no output schema, the description covers every action's required inputs and the unit convention. Gaps remain on error behavior, partial-failure semantics for bulk updates, and the consequences of delete, but the essentials for correct invocation are present.

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?

Schema coverage is 80%, so the baseline is 3; the description adds value by mapping parameters to actions (which fields a create needs vs which identifiers a bulk update accepts) and by spelling out the milliunits encoding with worked examples. It does not clarify the import_id de-dup semantics beyond what the schema already says.

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 definition names a specific verb set (create/update/delete/import) applied to a specific resource (transactions) and enumerates the four modes with the fields each one needs. An agent can distinguish create vs bulk update vs single update vs import without opening the schema.

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 action carries explicit conditions — single update uses PUT with transaction_id + transaction, bulk update uses PATCH with transactions each needing id or import_id, delete requires transaction_id, import needs nothing else. What is missing is routing to alternatives outside this tool (e.g. scheduled transactions) in the description itself; that cue only appears buried in the schema's date field.

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