Skip to main content
Glama
Gregarrific

ynab-mcp-server

by Gregarrific

Consolidate / Rename a Payee

ynab_consolidate_payee
Idempotent

Rename a payee and consolidate all its transactions into a canonical name to clean up messy imports and merge duplicates. Preview before applying.

Instructions

Rename a payee and update all its transactions to use a canonical name.

Use this to clean up messy imported payee names:

  • "AMZN*1A2B3C4D" → "Amazon"

  • "WHOLEFDS MKT #123" → "Whole Foods"

  • Merge two duplicate payees into one

IMPORTANT — always call with preview_only=true first. This shows you exactly which transactions will be affected. Only set preview_only=false after reviewing and approving the preview.

How it works:

  1. Finds all transactions belonging to source_payee_id

  2. Renames the payee itself to target_name

  3. All linked transactions automatically reflect the new name

Note: YNAB does not have a "delete payee" endpoint. Renaming the payee is the correct approach — it handles deduplication internally.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYesConsolidatePayeeInput with plan_id, source_payee_id, target_name, preview_only

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations indicate idempotentHint=true and destructiveHint=false. The description adds valuable behavioral context beyond annotations: step-by-step how it works (finds transactions, renames payee, links transactions) and the behavior when target_name already exists. It also emphasizes the preview step, which is critical for safe usage.

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 description is well-structured: starts with a clear one-sentence purpose, provides bullet examples, an important warning, a numbered how-it-works list, and a final note. It is concise despite moderate length, with each section contributing necessary information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (renaming a payee with transaction updates), the description covers purpose, usage guidelines, preview requirement, internal behavior, and a note about YNAB's API limitations. It also references sibling tools for IDs. An output schema exists, so return values are not needed. The description is sufficient for an agent to use correctly.

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?

Input schema has 100% coverage with property descriptions explaining each parameter (e.g., preview_only default true). The description does not provide additional parameter-level semantics beyond what the schema offers, but the overall workflow context (preview first) is already embedded in the schema. Baseline of 3 is appropriate.

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 description clearly states the tool's purpose: renaming a payee and updating all its transactions to a canonical name. It provides concrete examples (e.g., 'AMZN*1A2B3C4D' → 'Amazon') and distinguishes itself from sibling tools like updatePayee or createPayee by describing the consolidation/merging behavior.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly instructs to always call with preview_only=true first, explains when to set it to false only after reviewing, and provides context on when to use this tool (cleaning up messy payee names). It also explains that YNAB lacks a delete payee endpoint, making renaming the correct approach for deduplication.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Gregarrific/ynab-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server