Skip to main content
Glama

Disconnect an agent connector

disconnect_agent_connector
DestructiveIdempotent

Disconnect a connector from a deployed agent: preview what will be removed, then confirm to revoke access, delete saved values, remove its tools, and stop dependent scheduled tasks.

Instructions

Disconnect a Connector from a deployed agent. Call it without confirm first: it shows the connection and what goes with it, and changes nothing. After the user agrees, call again with confirm: true. Its saved values, sign-in and account choices are removed, the service is asked to revoke a sign-in's access where it supports that, the agent loses the connector's tools, and scheduled tasks that can use no other connected connector stop running. A running agent gets most changes without a restart; a few restart it, which takes a minute or two. It cannot be undone: connecting again needs connect_agent_connector with a new sign-in or the values. The wiro connector saves no values: disconnecting it leaves the agent its Wiro project, and connecting it again takes a Wiro project. Chat channels such as Telegram are turned off by clearing their fields with set_agent_credentials instead.

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": {
      "agent_guid": "<agent_guid>",
      "connector": "<connector>"
    },
    "name": "disconnect_agent_connector"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNofalse (default) only shows what would be removed. true disconnects.
connectorYesThe connector's slug, such as "google-ads".
agent_guidYesThe deployed agent's guid, from list_my_agents.

Output Schema

NameRequiredDescriptionDefault
titleYes
messageYes
restartNoAfter a disconnect: live (the running agent dropped the connector with no restart), scheduled (it restarts without it), none (nothing to load, or the agent is not running) or failed.
revokedNoAfter a disconnect: whether the service confirmed it revoked the access. False when it does not support that or did not answer.
agentGuidYes
connectorYes
willClearYes
connectionNoThe connection as it was before this call.
nextActionNo
disconnectedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare destructive=true, idempotent, openWorld and readOnly=false, yet the description goes well beyond that: it enumerates exactly what is removed (saved values, sign-in, account choices), that revocation is requested where supported, that tools are lost and no-other-connector scheduled tasks stop, and that running agents may restart. It also states irreversibility and the Wiro exception, which no annotation conveys.

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-loaded with the action, then the two-step flow, then consequences, then exceptions — a sensible ordering. It is dense and long (seven clauses), but nearly every clause carries distinct operational information rather than restating the schema.

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, side-effecting mutation with restart and cascade effects, the description covers consent flow, blast radius, irreversibility, and reconnect requirements. An output schema exists, so return values need not be explained, and nothing an agent needs to call this safely is missing.

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 100%, so baseline is 3; the description earns above that by framing confirm as a dry-run/commit switch tied to user consent, which is the semantics an agent needs. It adds less on connector and agent_guid, which the schema already documents.

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?

Specific verb and resource ("Disconnect a Connector from a deployed agent") with scope stated immediately. It also distinguishes itself from connect_agent_connector and set_agent_credentials (for chat channels), so an agent can tell which sibling to reach for.

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 an explicit two-step protocol: call without confirm first to preview, then call with confirm: true after user agreement. It also names the substitute path (set_agent_credentials for Telegram-style channels) and the reconnect path, so when-to-use and when-not-to-use are both covered.

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