Skip to main content
Glama

Disconnect a connector

disconnect_connector
DestructiveIdempotent

Remove a connection so agents can no longer use it. For a signed-in connection Sinatra also revokes its access at the provider: providerRevocation says revoked or failed. revokeAtProvider is true when the credential may still work at the provider (always for a pasted token) and the user should remove it there. leftAtProvider, when present, says what the provider still lists as an authorized application and where the user removes it; pass it on. Workspace admins or owners only.

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": {
      "workspace_id": "<workspace_id>",
      "connection_id": "<connection_id>"
    },
    "name": "disconnect_connector"
  }
}

Input Schema

NameRequiredDescriptionDefault
workspace_idYesThe workspace id (from whoami).
connection_idYesThe connection id from list_connectors.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Goes well beyond the annotations (destructiveHint/idempotentHint) by disclosing that provider-side revocation is attempted, what providerRevocation values mean, and that revokeAtProvider=true means the credential may still be live at the provider. The instruction to pass leftAtProvider on is genuinely actionable. It stops short of saying whether the local record is removed even when revocation fails, which would have closed the last gap for a destructive tool.

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 is front-loaded in the first sentence, followed by the conditional details an agent needs. The revocation sentences are dense and slightly run-on, but each carries non-redundant information, so little is wasted.

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 steps in to explain the return fields (providerRevocation, revokeAtProvider, leftAtProvider) and how to act on them. Combined with the permission requirement and the provider-side caveat, an agent has what it needs to call and interpret this destructive tool.

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 100%, so both parameters are already documented in the schema and the description adds no syntax or format beyond that. Baseline 3 applies; the return-field explanations it does provide concern output, not inputs.

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 plus the observable consequence: "Remove a connection so agents can no longer use it." That phrasing separates it cleanly from connect_connector and list_connectors without needing their schemas.

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

Usage Guidelines3/5

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

Usage is only implied by the purpose statement; there is no explicit "use this instead of X when Y" routing or stated exclusion. The one hard prerequisite, "Workspace admins or owners only," is a permission gate rather than when-to-use guidance.

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