Skip to main content
Glama
justmytwospence

ynab-mcp

Update Scheduled Transaction

update_scheduled_transaction

Modify scheduled transactions in YNAB to adjust amounts, dates, payees, categories, or frequencies for recurring financial events.

Instructions

[1 API call] Update an existing scheduled transaction

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
budget_idNoBudget ID or 'last-used'last-used
scheduled_transaction_idYesThe scheduled transaction ID
account_idYesAccount ID (required even if unchanged)
dateYesDate (YYYY-MM-DD, required even if unchanged)
amountNoNew amount in dollars
frequencyNoNew frequency
payee_idNoNew payee ID
payee_nameNoNew payee name
category_idNoNew category ID
memoNoNew memo
flag_colorNoNew flag color

Implementation Reference

  • The tool `update_scheduled_transaction` is registered here with its input schema definition.
    server.registerTool("update_scheduled_transaction", {
      title: "Update Scheduled Transaction",
      description: "[1 API call] Update an existing scheduled transaction",
      inputSchema: {
        budget_id: z.string().default("last-used").describe("Budget ID or 'last-used'"),
        scheduled_transaction_id: z.string().describe("The scheduled transaction ID"),
        account_id: z.string().describe("Account ID (required even if unchanged)"),
        date: z.string().describe("Date (YYYY-MM-DD, required even if unchanged)"),
        amount: z.number().optional().describe("New amount in dollars"),
        frequency: z.enum(FREQUENCIES).optional().describe("New frequency"),
        payee_id: z.string().optional().describe("New payee ID"),
        payee_name: z.string().optional().describe("New payee name"),
        category_id: z.string().optional().describe("New category ID"),
        memo: z.string().optional().describe("New memo"),
        flag_color: z.enum(FLAG_COLORS).optional().describe("New flag color"),
      },
  • The handler function for `update_scheduled_transaction` that executes the update logic via the YNAB client.
    }, async ({ budget_id, scheduled_transaction_id, account_id, date, amount, frequency, payee_id, payee_name, category_id, memo, flag_color }) => {
      try {
        const response = await getClient().scheduledTransactions.updateScheduledTransaction(
          budget_id, scheduled_transaction_id, {
            scheduled_transaction: {
              account_id,
              date,
              amount: amount != null ? dollarsToMilliunits(amount) : undefined,
              frequency,
              payee_id,
              payee_name,
              category_id,
              memo,
              flag_color: flag_color ?? null,
            },
          }
        );
        const t = response.data.scheduled_transaction;
        return textResult(
          `Updated scheduled transaction: ${t.date_first} | ${formatCurrency(t.amount)} | ${t.frequency}\nID: ${t.id}`
        );
      } catch (e: any) {
        return errorResult(e.message);
      }
    });
Behavior3/5

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

The annotation 'readOnlyHint: false' correctly indicates this is a mutation tool, which aligns with the 'Update' action. The description adds minimal behavioral context beyond this—it doesn't mention authentication requirements, rate limits, error conditions, or what happens if only some fields are provided. However, it doesn't contradict the annotation, so it meets the baseline for having annotations.

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 extremely concise—just one sentence plus a technical prefix. It's front-loaded with the core action ('Update an existing scheduled transaction'), and there's no wasted text. However, the '[1 API call]' prefix might be unnecessary clutter for an AI agent focused on tool selection rather than implementation details.

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?

Given the complexity (11 parameters, mutation tool) and lack of output schema, the description is minimally adequate. The annotations cover the mutation aspect, and the schema fully documents inputs, but the description doesn't address what the tool returns, error handling, or side effects. For a tool with no output schema, more context on expected responses would be helpful.

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?

With 100% schema description coverage, the input schema already documents all 11 parameters thoroughly, including descriptions, enums, and required fields. The description adds no additional parameter semantics beyond what's in the schema—it doesn't explain relationships between parameters (e.g., that 'payee_id' and 'payee_name' might be alternatives) or provide examples. This meets the baseline score when schema coverage is high.

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?

The description clearly states the verb ('Update') and resource ('existing scheduled transaction'), making the purpose unambiguous. It distinguishes from sibling tools like 'create_scheduled_transaction' and 'delete_scheduled_transaction' by specifying it's for updating existing ones. However, it doesn't explicitly differentiate from other update tools like 'update_transaction' in terms of scope.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., needing a scheduled transaction ID from 'get_scheduled_transaction' or 'list_scheduled_transactions'), nor does it explain when to choose this over similar tools like 'update_transaction'. The '[1 API call]' prefix is technical but doesn't help with usage decisions.

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

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