Skip to main content
Glama

Disconnect an account

disconnect_account
Destructive

Disconnect a connected account of this organization, as the Channels page's Disconnect does: its token is revoked, its scheduled, queued and pending-approval posts are cancelled (failed, and put back if the account is connected again), and it is removed here and from every organization it was shared into. Returns how many posts were cancelled. Only accounts this organization owns: one merely shared into it is refused. The id is from list_accounts. Needs the accounts permission.

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": {
      "accountId": "<accountId>"
    },
    "name": "disconnect_account"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountIdYes
organizationIdNoWhich organization to act in: an id from list_organizations. Leave out for this connection's default organization.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond destructiveHint=true and idempotentHint=false by enumerating consequences: token revocation, cancellation of scheduled/queued/pending-approval posts, the failure-and-restore-on-reconnect behavior, and removal from every organization it was shared into. It also states the return value (count of cancelled posts) and the required 'accounts' permission.

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 action and its consequences, and every clause carries real information (revocation, cancellation, restoration, refusal, permission). The middle sentence is long and runs several effects together, which costs a little readability but no sentence is filler.

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?

With no output schema, the description supplies the return value, and for a destructive two-parameter mutation it covers side effects, recovery behavior, ownership guardrails, permission requirements, and id provenance. An agent can invoke this correctly without further inference.

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 coverage is 50%: organizationId is described in the schema, while accountId carries no inline description. The description compensates partially by naming the source of accountId (list_accounts), but adds nothing about id format or what organizationId means beyond the schema's own text.

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 a specific verb and resource ('Disconnect a connected account of this organization') and pins down scope against a concrete reference point (the Channels page's Disconnect). It also distinguishes owned from merely-shared accounts, so an agent knows exactly which resource class this acts on.

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

Usage Guidelines4/5

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

Gives clear preconditions: only accounts the organization owns are accepted, shared-in accounts are refused, and the id comes from list_accounts. It does not name an alternative tool for the refused case (e.g. what to do for a shared account), which keeps it just short of a 5.

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.

Resources