Skip to main content
Glama
actual-mcp-server

actual-mcp-server

Manage budget files

manage_budget_files
Destructive

Switch the active budget, import a budget file, or export the active budget to a file by choosing one action.

Instructions

Switch the active budget, import a budget file, or export the active budget to a file; pick one action. To list the configured budget names use list_entities with type budget_file; budget months are manage_budget_months. Other fields are refused. switch: budget_name; takes effect now in this session; other open sessions keep theirs; remembered per caller, so a new session of the same caller starts on it (holders of the one legacy bearer token are one caller); an unconfigured or not permitted name is refused. Locked budgets cannot be switched to. switch loads the target budget, and a load failure can surface on the next call instead; undo it by switching back. import: exactly one of path (a file on the server, max 4096 characters) or base64 (max 67108864 characters); optional type (actual, ynab4, ynab5; default actual), filename (base64 only); a caller limited to some budgets is refused; a long import can time out. import ADDS a budget and replaces nothing: each import makes a new local copy and normally uploads it as a NEW server budget file (a failed upload leaves it local only); the returned budgetId is that local id, not a Sync ID; confirm before importing. After an import, success or failure, the next call from every session (this one included) reloads that session's own configured budget, so later calls do not reach the imported budget; to use it, an operator adds its Sync ID to the server configuration. Nothing removes the uploaded server file. export: optional filename; writes the whole active budget (every account and transaction) as a .zip into the server's export directory and OVERWRITES a file of the same name; the file contents are not returned; only deleting the file on the server host removes it. Returns { success, budgetName, budgetId, serverUrl, message } (switch), { result: { success, budgetId, type, source, message } } (import), { result: { success, path, filename, directory, bytes, sha256, message } } (export).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "action": "<action>"
    },
    "name": "manage_budget_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoimport: path of the export file ON THE SERVER; give exactly one of path and base64.
typeNoimport: format; omit for actual (an Actual .zip export).
actionYes
base64Noimport: the export file contents, base64-encoded; give exactly one of path and base64.
filenameNoimport: original file name, only with base64. export: output name without a directory, letters, digits, dot, underscore, hyphen; ".zip" is appended; omit for a timestamped name. Max 120.
budget_nameNoExact configured budget name (list with list_entities type budget_file), case-insensitive, max 120 characters.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.30.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and non-idempotent, and the description goes well beyond them: switch is session-scoped and remembered per caller, a load failure may surface on the next call, import ADDS rather than replaces and uploads a new server file, the returned budgetId is a local id not a Sync ID, and the next call after import reloads the configured budget. Export overwrite and permanence semantics are also spelled out.

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?

Front-loads the three actions and the routing rule before diving into per-action detail, and groups caveats by action. It is dense and uses long semicolon chains, but nearly every clause carries operational consequence, so the length is largely earned given the destructive, multi-mode nature of the tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, and the description fully documents the three distinct return shapes with their fields. Combined with the destructive-action warnings and import side-effect explanation, an agent has everything needed to invoke and interpret results safely.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 83% and already documents most fields, but the description adds cross-field constraints (exactly one of path or base64), size ceilings (4096 / 67108864 chars), the default for type, and that filename applies only to base64 imports. This meaningfully supplements the schema rather than restating it.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States three specific verbs (switch, import, export) operating on budget files, gated by a single `action` parameter. It explicitly disambiguates from siblings: listing budget names goes to list_entities with type budget_file, month operations to manage_budget_months. An agent can tell exactly what this tool does and what it does not.

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

Usage Guidelines5/5

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

Gives explicit routing to alternatives (list_entities for names, manage_budget_months for months), states that other fields are refused, and adds a 'confirm before importing' precondition. Per-action caveats (locked budgets cannot be switched to, only one of path/base64) make the when-and-how unambiguous.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.