Skip to main content
Glama
justmytwospence

ynab-mcp

Create Account

create_account

Add a new account to your YNAB budget by specifying name, type, and starting balance to organize your financial tracking.

Instructions

[1 API call] Create a new account in a budget

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
budget_idNoBudget ID or 'last-used'last-used
nameYesAccount name
typeYesAccount type
balanceYesStarting balance in dollars (e.g., 1000.50)

Implementation Reference

  • The implementation and registration of the 'create_account' tool in src/tools/accounts.ts.
    server.registerTool("create_account", {
      title: "Create Account",
      description: "[1 API call] Create a new account in a budget",
      inputSchema: {
        budget_id: z.string().default("last-used").describe("Budget ID or 'last-used'"),
        name: z.string().describe("Account name"),
        type: z.enum(ACCOUNT_TYPES).describe("Account type"),
        balance: z.number().describe("Starting balance in dollars (e.g., 1000.50)"),
      },
      annotations: { readOnlyHint: false },
    }, async ({ budget_id, name, type, balance }) => {
      try {
        const response = await getClient().accounts.createAccount(budget_id, {
          account: { name, type, balance: Math.round(balance * 1000) },
        });
        const a = response.data.account;
        return textResult(`Created account "${a.name}" (${a.type}) with balance ${formatCurrency(a.balance)}\nID: ${a.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 write operation, which aligns with the 'Create' action. The description adds minimal behavioral context beyond this—it mentions '[1 API call]' which hints at performance/rate considerations, but doesn't cover permissions, error conditions, or what happens on success/failure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise—just 7 words plus the API call notation. It's front-loaded with the core action and wastes no words. Every element serves a purpose: the bracket notation provides implementation context, and the rest states the essential operation.

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?

For a creation tool with no output schema and minimal annotations, the description is adequate but incomplete. It covers the basic 'what' but lacks information about return values, error handling, or system behavior post-creation. Given the mutation nature and sibling tools, more context 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 fully documents all parameters. The description adds no additional parameter semantics—it doesn't explain relationships between parameters, provide examples, or clarify edge cases beyond what's already in the schema descriptions.

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 action ('Create a new account') and resource ('in a budget'), making the purpose specific and understandable. However, it doesn't differentiate from sibling tools like 'list_accounts' or 'get_account' beyond the obvious creation vs. retrieval distinction.

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 budget first), when not to use it, or how it differs from other account-related tools like 'list_accounts' or 'get_account' beyond the basic create operation.

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