Payee Tools¶
Payees are the people and businesses you exchange money with -- your landlord, the grocery store, your employer. Payee tools let you browse your payee list, view details, rename payees for consistency, and check payee locations. Clean payee names make your transaction history easier to read and your reports more meaningful.
YNAB automatically creates payees from imported transactions, which can lead to inconsistencies (like "AMAZON.COM" and "Amazon" as separate payees). Renaming helps you keep things tidy.
Usage Examples¶
You: Show me my payees.
Claude calls
manage_payeeswith actionlistand responds:47 payees found: - Amazon - Chipotle - Electric Company - Employer Inc - Whole Foods ...
You: I want to see transfer payees too.
Claude calls
manage_payeeswith actionlistandinclude_transfers=true:52 payees found (including transfers): - Amazon - Transfer : Checking - Transfer : Savings ...
You: Rename "AMZN MKTP" to "Amazon".
Claude calls
manage_payeeswith actionupdate_name:Payee renamed: "AMZN MKTP" is now "Amazon"
You: Does Whole Foods have a location on file?
Claude calls
manage_payeeswith actionget_locationand responds:Whole Foods -- Location: Latitude: 40.7128, Longitude: -74.0060
Available Actions¶
| Action | Description |
|---|---|
list |
List all payees (optionally include transfers) |
get |
Get details for a specific payee |
update_name |
Rename a payee |
list_locations |
List all payee locations |
get_location |
Get location details for a specific payee |
API Reference¶
manage_payees
async
¶
manage_payees(
ctx: Context,
action: Literal["list", "get", "update_name", "list_locations", "get_location"],
budget_id_or_name: str = "last-used",
include_transfers: bool = False,
payee_id: str | None = None,
name: str | None = None,
payee_location_id: str | None = None,
) -> str
Manage YNAB payees: list, get details, rename, and query locations.
Actions
list: List all payees. Uses budget_id_or_name, include_transfers. get: Get payee details. Uses payee_id (required). update_name: Rename payee. Uses payee_id (required), name (required). list_locations: List payee locations. Uses payee_id (optional filter). get_location: Get location details. Uses payee_location_id (required).
Parameters:
-
ctx(Context) –The MCP context providing access to lifespan dependencies.
-
action(Literal['list', 'get', 'update_name', 'list_locations', 'get_location']) –The operation to perform.
-
budget_id_or_name(str, default:'last-used') –Budget UUID or name. Defaults to "last-used".
-
include_transfers(bool, default:False) –If True, include transfer payees (list only).
-
payee_id(str | None, default:None) –The payee UUID (get, update_name, list_locations).
-
name(str | None, default:None) –New name for the payee (update_name only).
-
payee_location_id(str | None, default:None) –The payee location UUID (get_location only).
Returns:
-
str–Structured text with payee information or confirmation.
Raises:
-
ToolError–If required parameters for the action are missing.