Skip to main content
Glama

ynab_compare_transactions

Read-onlyIdempotent

Compare bank CSV transactions against YNAB records to find missing or mismatched entries in either system.

Instructions

Compare bank CSV transactions with YNAB transactions to find missing or mismatched entries.

Args:

  • budget_id (string, optional): Budget UUID. Omit to use the default budget.

  • account_id (string, required): Account UUID to compare against.

  • csv_file_path or csv_data (string, required): Bank export file path or inline CSV text.

  • statement_start_date (string, optional): Filter comparison window start date (YYYY-MM-DD).

  • statement_date (string, optional): Filter comparison window end date (YYYY-MM-DD).

  • amount_tolerance (number, optional): Amount match tolerance in dollars, 0-1. Default: 0.01.

  • date_tolerance_days (number, optional): Date match tolerance, 0-7 days. Default: 5.

  • enable_chronology_bonus (boolean, optional): Prefer matches in chronological order. Default: false.

  • auto_detect_format (boolean, optional): Detect CSV columns automatically. Default: false.

  • csv_format (object, optional): CSV layout (date_column, amount_column, debit_column, credit_column, description_column, date_format, has_header, delimiter).

  • debug (boolean, optional): Include extra diagnostics. Default: false.

Returns: summary (counts, date_range, parameters), matches, missing_in_ynab (bank rows with no YNAB match), missing_in_bank (YNAB transactions with no bank row).

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": {
      "account_id": "<account_id>"
    },
    "name": "ynab_compare_transactions"
  }
}

Input Schema

NameRequiredDescriptionDefault
debugNo
csv_dataNo
budget_idNo
account_idYes
csv_formatNo
csv_file_pathNo
statement_dateNo
amount_toleranceNo
auto_detect_formatNo
date_tolerance_daysNo
statement_start_dateNo
enable_chronology_bonusNo

Output Schema

NameRequiredDescriptionDefault
matchesYes
summaryYes
missing_in_bankYes
missing_in_ynabYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.32.0
    • removedInput schema / properties / statement_date / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "const": "",
      -    "type": "string"
      -  }
      -]
    • addedInput schema / properties / statement_date / format
      Added value: +"date"
    • addedInput schema / properties / statement_date / type
      Added value: +"string"
    • removedInput schema / properties / statement_start_date / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "const": "",
      -    "type": "string"
      -  }
      -]
    • addedInput schema / properties / statement_start_date / format
      Added value: +"date"
    • addedInput schema / properties / statement_start_date / type
      Added value: +"string"
  2. Changed4 schema fields changedv0.31.0
    • addedInput schema / properties / statement_date / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "const": "",
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / statement_date / type
      Removed value: -"string"
    • addedInput schema / properties / statement_start_date / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "const": "",
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / statement_start_date / type
      Removed value: -"string"
  3. Changed16 schema fields changedv0.29.1
    • removedInput schema / properties / csv_format / properties / amount_column / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "number"
      -  }
      -]
    • addedInput schema / properties / csv_format / properties / amount_column / type
      Added value: +[
      +  "string",
      +  "number"
      +]
    • removedInput schema / properties / csv_format / properties / credit_column / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "number"
      -  }
      -]
    • addedInput schema / properties / csv_format / properties / credit_column / type
      Added value: +[
      +  "string",
      +  "number"
      +]
    • removedInput schema / properties / csv_format / properties / date_column / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "number"
      -  }
      -]
    • addedInput schema / properties / csv_format / properties / date_column / type
      Added value: +[
      +  "string",
      +  "number"
      +]
    • removedInput schema / properties / csv_format / properties / debit_column / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "number"
      -  }
      -]
    • addedInput schema / properties / csv_format / properties / debit_column / type
      Added value: +[
      +  "string",
      +  "number"
      +]
    • removedInput schema / properties / csv_format / properties / description_column / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "number"
      -  }
      -]
    • addedInput schema / properties / csv_format / properties / description_column / type
      Added value: +[
      +  "string",
      +  "number"
      +]
    • removedOutput schema / properties / matches / items / properties / ynab_payee / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / matches / items / properties / ynab_payee / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / missing_in_bank / items / properties / memo / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / missing_in_bank / items / properties / memo / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / missing_in_bank / items / properties / payee_name / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / missing_in_bank / items / properties / payee_name / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  4. Addedv0.26.9

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds real value beyond that: it discloses the matching semantics (amount tolerance in dollars, date tolerance in days, optional chronology bonus, optional format auto-detection) and enumerates the response sections including missing_in_ynab and missing_in_bank. It does not mention permissions, rate limits, or CSV size limits, which would have pushed this higher for a read tool that consumes external files.

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?

Front-loaded with a one-sentence purpose, then a compact per-parameter list, then a single-line returns summary — a predictable and scannable structure. The Args block is long, but with 12 parameters and a nested object nearly every line carries information the agent cannot get from the schema. Minor redundancy in restating obvious types like '(boolean, optional)' for flags.

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 12-parameter, nested-object comparison tool, the description covers input semantics, defaults, tolerances, and the shape of the result. An output schema exists, so not explaining return values in depth is acceptable, yet the returns line still names the key sections. The only material gap is the absence of guidance on choosing this tool over adjacent reconciliation/listing tools.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 12 parameters including a nested csv_format object, so the description carries the full burden and does so well: it gives units ('tolerance in dollars, 0-1'), valid ranges, defaults (0.01, 5, false), and enumerates the csv_format sub-fields (date_column, amount_column, debit_column, credit_column, description_column, date_format, has_header, delimiter). It also corrects the sparse schema by flagging 'csv_file_path or csv_data (string, required)', which the JSON schema does not mark required — an important disambiguation for the agent.

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 pair ('Compare bank CSV transactions with YNAB transactions') plus the outcome ('find missing or mismatched entries'). An agent can immediately tell this is a reconciliation/diff tool rather than a list or create operation. It never names a sibling such as ynab_reconcile_account, so the differentiation is achieved through specificity rather than explicit routing.

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 strongly by the purpose statement (you have a bank export and want to find what's missing in YNAB), and the parameter text hints at real workflows ('Omit to use the default budget'). However, there is no explicit when-to-use/when-not-to-use guidance and no alternative named — notably ynab_reconcile_account, which sounds closely related. The agent must infer the choice.

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