Skip to main content
Glama

Disconnect service

stack_disconnect_service
Destructive

Disconnect a service connection by its id (scon_*). Deletes the stored credential and revokes the active Passports of agents that had grants to this connection. Connection ids come from stack_list_connected_services.

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>"
    },
    "name": "stack_disconnect_service"
  }
}

Input Schema

NameRequiredDescriptionDefault
connection_idYesThe service connection id (scon_*) to disconnect

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the destructiveHint annotation, the description explains exactly what is destroyed: the stored credential and active Passports for agents with grants. This is material behavioral context that helps the agent understand the impact of the destructive operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences, front-loaded with the operation and immediately followed by consequences and id source. No filler or repetition.

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 single-parameter destructive operation with annotations covering safety traits, the description covers purpose, impact, and parameter source. No output schema is present, so return-value detail is not required.

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?

The schema already documents the single connection_id parameter and its scon_* format. The description adds useful provenance by saying ids come from stack_list_connected_services, which goes beyond the schema 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?

The description states a specific verb and resource: disconnect a service connection by id. It also explains the consequence (credential deletion and Passport revocation), so the agent can distinguish this destructive disconnect from connect/list/config tools.

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?

It gives a clear prerequisite and routing hint: connection ids come from stack_list_connected_services. It does not explicitly state when not to use it or contrast it with stack_delete_service_configuration, but the intended use is clear.

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.