Skip to main content
Glama
ynab-mcp-server

ynab-mcp-server

Get transactions

get_transactions
Read-only

Retrieves YNAB plan transactions, excluding pending ones, and filters by transaction, account, category, payee, or month; returns all plan transactions when no scope filter is provided.

Instructions

Consolidated read access to transactions, excluding pending ones. Provide at most one scope filter -- checked in this priority order: transaction_id > account_id > category_id > payee_id > month. With no scope filter, returns all plan transactions. Covers GET /plans/{plan_id}/transactions, /accounts/{account_id}/transactions, /categories/{category_id}/transactions, /payees/{payee_id}/transactions, /months/{month}/transactions, and /transactions/{transaction_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>"
    },
    "name": "get_transactions"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNo
monthNoThe plan month in ISO format (e.g. 2024-12-01), or "current" for the current calendar month (UTC).
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.
payee_idNo
account_idNo
since_dateNoISO date. Only transactions on or after this date. Defaults to one year ago when unscoped.
until_dateNoISO date. Only transactions on or before this date.
category_idNo
transaction_idNoFetch a single transaction by id. Ignores all other filters.
last_knowledge_of_serverNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/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 safety is covered. The description adds genuine behavioral context beyond that: pending transactions are excluded, an unscoped call returns all plan transactions, and transaction_id short-circuits all other filters. It does not explain the delta-sync behavior of last_knowledge_of_server, which is the one notable 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 scoping rule and priority order are front-loaded in the first two sentences, which is the right structure. The trailing endpoint enumeration is somewhat verbose and largely restates the filters already listed, but it does document coverage, so it earns most of its space.

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 a 10-parameter read tool with no output schema, the description covers filtering and defaults well but leaves important surface undocumented — particularly last_knowledge_of_server (implicitly a delta/sync cursor) and the meaning of the type enum values. An agent could call it correctly for basic reads but might misuse the sync parameter.

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 50%, and the description compensates partially by explaining mutual exclusivity and priority among the scope filters — a constraint the schema does not express. However, several parameters (payee_id, account_id, category_id, last_knowledge_of_server, and the uncategorized/unapproved enum) get no added meaning, so the gap is only partly closed.

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 first sentence names a specific verb and resource ("read access to transactions") plus a distinguishing scope constraint ("excluding pending ones"). It also enumerates the underlying endpoints, so an agent can tell exactly which resource family this covers versus siblings like modify_transactions.

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?

It gives explicit operational guidance: at most one scope filter, a stated priority order (transaction_id > account_id > category_id > payee_id > month), and the default behavior when no filter is supplied. It stops short of naming sibling alternatives (e.g. get_account) or when-not-to-use conditions, so it is clear context rather than full routing guidance.

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