Skip to main content
Glama
justmytwospence

ynab-mcp

list_payee_locations

Retrieve GPS locations for all payees in a YNAB budget to map transaction origins and analyze spending patterns.

Instructions

[1 API call] List all payee GPS locations for a budget

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
budget_idNoBudget ID or 'last-used'last-used

Implementation Reference

  • The registration and handler implementation for the list_payee_locations tool.
    server.registerTool("list_payee_locations", {
      title: "List Payee Locations",
      description: "[1 API call] List all payee GPS locations for a budget",
      inputSchema: {
        budget_id: z.string().default("last-used").describe("Budget ID or 'last-used'"),
      },
      annotations: { readOnlyHint: true },
    }, async ({ budget_id }) => {
      try {
        const response = await getClient().payeeLocations.getPayeeLocations(budget_id);
        const locations = response.data.payee_locations;
        if (locations.length === 0) return textResult("No payee locations found.");
        const lines = locations.map((l) =>
          `- Payee ${l.payee_id}: (${l.latitude}, ${l.longitude}) [ID: ${l.id}]`
        );
        return textResult(`Payee Locations (${locations.length}):\n${lines.join("\n")}`);
      } catch (e: any) {
        return errorResult(e.message);
      }
    });

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/justmytwospence/ynab-mcp'

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