Skip to main content
Glama
YNAB MCP Server

YNAB MCP Server

by calebl

Get Transactions

ynab_get_transactions
Read-only

Retrieve YNAB transactions by plan, date range, type, account, category, payee, amount, memo, or transaction ID, and return filtered rows or totals for budgeting analysis.

Instructions

Gets transactions from a plan, optionally between a start and end date and by type (all, uncategorized or unapproved). Filter by at most one of account, category or payee: they cannot be combined, and if several are given only the first in that order is applied. month (a plan month) cannot be combined with any of them. Pass transactionId to get just that one transaction: it overrides every other filter, which are all ignored, and a missing or deleted transaction is an error. To search, add payee or memo text, an amount range or a direction. Any search option (or untilDate) adds inflow, outflow and net totals over every match; the totals include transfers between accounts, such as credit card payments. totalsOnly returns just the totals (e.g. categoryId with a year's dates and totalsOnly). Without categoryId or payeeId, split transactions are matched leg by leg and the totals count only the matching legs. With categoryId or payeeId, rows are matched as YNAB returns them, so a split's parent row in the payee listing counts at its full amount.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ynab_get_transactions"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoFilter by transaction type. Defaults to 'all'.
limitNoMaximum number of transactions to return, newest first (default: 100). Totals always cover every match.
monthNoOnly return transactions in this plan month: the first day of the month (e.g. 2024-03-01) or 'current'. Cannot be combined with accountId, categoryId or payeeId; can be combined with sinceDate/untilDate.
planIdNoThe plan ID (optional, defaults to YNAB_PLAN_ID; budgetId is a deprecated alias)
payeeIdNoFilter to only transactions with this payee
budgetIdNoDeprecated alias of planId (still accepted)
accountIdNoFilter to only transactions in this account
directionNoOnly money going out, coming in, or both. Defaults to 'any'.
maxAmountNoLargest amount to include, ignoring sign, in currency units
minAmountNoSmallest amount to include, ignoring sign, in currency units (e.g. 25.50)
sinceDateNoOnly return transactions on or after this date (ISO format: 2024-01-01)
untilDateNoOnly return transactions on or before this date (ISO format: 2024-12-31)
categoryIdNoFilter to only transactions in this category
totalsOnlyNoReturn only the totals, without transaction rows (default: false)
memoContainsNoOnly transactions whose memo contains this text (case-insensitive)
payeeContainsNoOnly transactions whose payee name contains this text (case-insensitive)
transactionIdNoReturn only this transaction. Overrides every other filter (accountId, categoryId, payeeId, month, sinceDate, untilDate, type, search options, limit), which are ignored.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.11.0
    • addedInput schema / properties / month
      Added value: +{
      +  "anyOf": [
      +    {
      +      "description": "Only return transactions in this plan month: the first day of the month (e.g. 2024-03-01) or 'current'. Cannot be combined with accountId, categoryId or payeeId; can be combined with sinceDate/untilDate.",
      +      "pattern": "^(current|\\d{4}-\\d{2}-01)$",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Only return transactions in this plan month: the first day of the month (e.g. 2024-03-01) or 'current'. Cannot be combined with accountId, categoryId or payeeId; can be combined with sinceDate/untilDate."
      +}
    • addedInput schema / properties / transactionId
      Added value: +{
      +  "anyOf": [
      +    {
      +      "description": "Return only this transaction. Overrides every other filter (accountId, categoryId, payeeId, month, sinceDate, untilDate, type, search options, limit), which are ignored.",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Return only this transaction. Overrides every other filter (accountId, categoryId, payeeId, month, sinceDate, untilDate, type, search options, limit), which are ignored."
      +}
  2. Changed2 schema fields changedv0.9.0
    • changedInput schema / properties / limit / anyOf
      Previous value: -[
      -  {
      -    "description": "Maximum number of transactions to return (default: 100). Totals always cover every match.",
      -    "exclusiveMinimum": 0,
      -    "maximum": 1000,
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "description": "Maximum number of transactions to return, newest first (default: 100). Totals always cover every match.",
      +    "exclusiveMinimum": 0,
      +    "maximum": 1000,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum number of transactions to return (default: 100). Totals always cover every match."New value: +"Maximum number of transactions to return, newest first (default: 100). Totals always cover every match."
  3. Changed9 schema fields changedv0.6.0
    • addedInput schema / properties / direction
      Added value: +{
      +  "anyOf": [
      +    {
      +      "description": "Only money going out, coming in, or both. Defaults to 'any'.",
      +      "enum": [
      +        "outflow",
      +        "inflow",
      +        "any"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Only money going out, coming in, or both. Defaults to 'any'."
      +}
    • changedInput schema / properties / limit / anyOf
      Previous value: -[
      -  {
      -    "description": "Maximum number of transactions to return (default: 100)",
      -    "exclusiveMinimum": 0,
      -    "maximum": 1000,
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "description": "Maximum number of transactions to return (default: 100). Totals always cover every match.",
      +    "exclusiveMinimum": 0,
      +    "maximum": 1000,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum number of transactions to return (default: 100)"New value: +"Maximum number of transactions to return (default: 100). Totals always cover every match."
    • addedInput schema / properties / maxAmount
      Added value: +{
      +  "anyOf": [
      +    {
      +      "description": "Largest amount to include, ignoring sign, in currency units",
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Largest amount to include, ignoring sign, in currency units"
      +}
    • addedInput schema / properties / memoContains
      Added value: +{
      +  "anyOf": [
      +    {
      +      "description": "Only transactions whose memo contains this text (case-insensitive)",
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Only transactions whose memo contains this text (case-insensitive)"
      +}
    • addedInput schema / properties / minAmount
      Added value: +{
      +  "anyOf": [
      +    {
      +      "description": "Smallest amount to include, ignoring sign, in currency units (e.g. 25.50)",
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Smallest amount to include, ignoring sign, in currency units (e.g. 25.50)"
      +}
    • addedInput schema / properties / payeeContains
      Added value: +{
      +  "anyOf": [
      +    {
      +      "description": "Only transactions whose payee name contains this text (case-insensitive)",
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Only transactions whose payee name contains this text (case-insensitive)"
      +}
    • addedInput schema / properties / totalsOnly
      Added value: +{
      +  "anyOf": [
      +    {
      +      "description": "Return only the totals, without transaction rows (default: false)",
      +      "type": "boolean"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Return only the totals, without transaction rows (default: false)"
      +}
    • addedInput schema / properties / untilDate
      Added value: +{
      +  "anyOf": [
      +    {
      +      "description": "Only return transactions on or before this date (ISO format: 2024-12-31)",
      +      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Only return transactions on or before this date (ISO format: 2024-12-31)"
      +}
  4. Changed18 schema fields changedv0.3.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / accountId / anyOf
      Added value: +[
      +  {
      +    "description": "Filter to only transactions in this account",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / accountId / type
      Removed value: -"string"
    • addedInput schema / properties / budgetId / anyOf
      Added value: +[
      +  {
      +    "description": "Deprecated alias of planId (still accepted)",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / budgetId / description
      Previous value: -"The ID of the budget (optional, defaults to YNAB_BUDGET_ID environment variable)"New value: +"Deprecated alias of planId (still accepted)"
    • removedInput schema / properties / budgetId / type
      Removed value: -"string"
    • addedInput schema / properties / categoryId / anyOf
      Added value: +[
      +  {
      +    "description": "Filter to only transactions in this category",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / categoryId / type
      Removed value: -"string"
    • addedInput schema / properties / limit / anyOf
      Added value: +[
      +  {
      +    "description": "Maximum number of transactions to return (default: 100)",
      +    "exclusiveMinimum": 0,
      +    "maximum": 1000,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / limit / type
      Removed value: -"number"
    • addedInput schema / properties / payeeId / anyOf
      Added value: +[
      +  {
      +    "description": "Filter to only transactions with this payee",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / payeeId / type
      Removed value: -"string"
    • addedInput schema / properties / planId
      Added value: +{
      +  "anyOf": [
      +    {
      +      "description": "The plan ID (optional, defaults to YNAB_PLAN_ID; budgetId is a deprecated alias)",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "The plan ID (optional, defaults to YNAB_PLAN_ID; budgetId is a deprecated alias)"
      +}
    • addedInput schema / properties / sinceDate / anyOf
      Added value: +[
      +  {
      +    "description": "Only return transactions on or after this date (ISO format: 2024-01-01)",
      +    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / sinceDate / type
      Removed value: -"string"
    • addedInput schema / properties / type / anyOf
      Added value: +[
      +  {
      +    "description": "Filter by transaction type. Defaults to 'all'.",
      +    "enum": [
      +      "all",
      +      "uncategorized",
      +      "unapproved"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / type / enum
      Removed value: -[
      -  "all",
      -  "uncategorized",
      -  "unapproved"
      -]
    • removedInput schema / properties / type / type
      Removed value: -"string"
  5. Addedv1.0.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=true and destructiveHint=false, so the safety profile is covered. The description does add genuinely non-obvious behavior beyond the annotations: totals include inter-account transfers, split transactions are matched leg-by-leg without categoryId/payeeId but as returned rows with them, and a missing/deleted transactionId is an error. That is real added context, but it focuses on edge-case semantics rather than stating output/row shape, pagination, or result ordering, which keeps it at a solid 3.

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

Conciseness3/5

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

Front-loads the core purpose, which is good, but the remainder is a dense unbroken paragraph of advanced caveats (split-leg matching, transfer-inclusive totals) that is hard to scan. Some material restates the schema (date range, type filter), and the ordering of ideas jumps between basic filters and niche semantics.

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?

With 17 parameters, no output schema, and intricate filter interactions, the description carries a heavy load; it covers filter precedence and totals behavior but says nothing about the returned transaction row shape, ordering beyond the limit note, or how errors surface. Enough to call it correctly in common cases, but incomplete for a tool of this complexity without an output schema.

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 100%, so the baseline is 3, but the description explains cross-parameter semantics the schema documents only per-field: precedence among accountId/categoryId/payeeId, month's incompatibility set, and transactionId's override of all other filters. It does not add syntax or format detail (dates, amount units) beyond the schema, so it is a strong 4 rather than a 5.

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?

States a specific verb and resource ("Gets transactions from a plan") and immediately narrows the scope with the optional date/type filters. It never names a sibling tool (e.g., ynab_spending_by_category or ynab_list_payees) or explains why an agent would pick this over those aggregation tools, so it stops short of full sibling differentiation.

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 explicit when-and-how guidance: filters for account/category/payee cannot be combined and only the first in that order applies, month is incompatible with them, and transactionId overrides everything. What is missing is routing guidance against the sibling tools, so the agent must infer that this is the raw transaction-retrieval tool rather than the reporting ones.

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