Skip to main content
Glama

Link bank account

link-bank-account
DestructiveIdempotent

Point a bank feed's account at a chart account. Name element_id for an existing active account, or entity_id alone to create one in that entity's chart. The chart the account is in decides whose books the feed's lines go into, so this is also how a feed account is bound to a subsidiary. Lines still in the inbox move with it (across an entity change their suggestion is resolved again on the new chart, and a classification that named the old entity's account is dropped); posted entries stay where they were posted. An account another connection already feeds is refused, as is an entity whose books QuickBooks keeps (the group parent, while QuickBooks is connected). An account the feed created and then left stays on its chart as an ordinary account. A sync already in flight when the link moves can still land a line or two on the old account; running this again moves them. The group's accounts are list-bank-accounts over MCP and the bankAccounts GraphQL field.

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": {
      "connection_id": "<connection_id>",
      "account_id": "<account_id>"
    },
    "name": "link-bank-account"
  }
}

Input Schema

NameRequiredDescriptionDefault
entity_idNoWith `element_id`, the entity the account must belong to. Alone, the entity in whose chart a new account is created for the feed account.
account_idYesThe provider's id for the account.
element_idNoThe chart account to link; its chart's entity takes the feed.
connection_idYesThe feed's connection.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Goes well beyond the annotations: it discloses what moves (inbox lines, with suggestions re-resolved and a classification naming the old entity's account dropped), what does not (posted entries), refusal conditions, and the fate of abandoned feed-created accounts. It also flags a race — an in-flight sync may land lines on the old account and re-running fixes it — which is exactly the kind of caveat annotations cannot express. Slightly short of 5 only because it doesn't state permission/auth requirements for relinking.

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?

Purpose and the two linking modes are front-loaded in the first sentence, and the remaining clauses are dense with consequences rather than filler. It is long for a single paragraph, and niche details (abandoned feed-created accounts, in-flight sync races) could be tightened, but each sentence carries real behavioral content.

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?

For a destructive, idempotent mutation with no output schema, the description covers the side effects, refusal cases, subsidiary binding semantics, and a recovery path for the sync race — everything an agent needs before invoking it. Nothing material is left for the agent to discover by trial.

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?

Schema description coverage is 100%, so the schema already documents all four parameters, including the `element_id`/`entity_id` interaction. The description reinforces that relationship and adds the conceptual point that the chart determines whose books receive the lines, but it introduces no format, constraint, or syntax details the schema lacks.

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?

Opens with a specific verb+resource: "Point a bank feed's account at a chart account," and immediately clarifies the dual mode (existing `element_id` vs. `entity_id` alone to create). It also distinguishes itself from the sibling listing tool by naming `list-bank-accounts`/`bankAccounts` as the way to enumerate accounts rather than link them.

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 when-to-use branches (existing active account vs. create-in-entity), explicit when-not conditions (an account another connection already feeds is refused; an entity whose books QuickBooks keeps is refused), and routes account discovery to `list-bank-accounts`. An agent can decide between the two parameter shapes and predict rejection cases without experimentation.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.