Skip to main content
Glama
justmytwospence

ynab-mcp

delete_scheduled_transaction

Remove a scheduled transaction from a YNAB budget to cancel planned future payments and maintain accurate financial planning.

Instructions

[1 API call] Delete a scheduled transaction

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
budget_idNoBudget ID or 'last-used'last-used
scheduled_transaction_idYesThe scheduled transaction ID to delete

Implementation Reference

  • Implementation and registration of the 'delete_scheduled_transaction' tool.
    server.registerTool("delete_scheduled_transaction", {
      title: "Delete Scheduled Transaction",
      description: "[1 API call] Delete a 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 to delete"),
      },
      annotations: { readOnlyHint: false, destructiveHint: true },
    }, async ({ budget_id, scheduled_transaction_id }) => {
      try {
        const response = await getClient().scheduledTransactions.deleteScheduledTransaction(
          budget_id, scheduled_transaction_id
        );
        const t = response.data.scheduled_transaction;
        return textResult(
          `Deleted scheduled transaction: ${t.date_first} | ${formatCurrency(t.amount)} | ${t.payee_name ?? "No payee"}\nID: ${t.id}`
        );
      } 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