Skip to main content
Glama

Disconnect a service

disconnect_service
Destructive

Disconnects a service from a project, once the person confirms it: in your own prompt where you can show one, otherwise on a CodeGene page this call returns as a link. Anything in the project that uses the service stops working until it is connected again. Owners and admins only. If your prompt or page never appears and the call times out, call it again with finish_with set to "link".

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": {
      "project_id": "<project_id>",
      "connection_id": "<connection_id>"
    },
    "name": "disconnect_service"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYesThe project (list_projects gives ids).
finish_withNoLeave out. "link" returns a CodeGene page link for the person to open instead of showing a prompt or opening the page for them, for an assistant that cannot.
workspace_idNoWorkspace id from whoami; omit when there is one.
connection_idYesThe connection (list_connections gives ids).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already mark this destructive and non-read-only; the description adds meaningfully above them by disclosing the blast radius (dependent functionality stops working until reconnection), the human-confirmation requirement, the authorization level needed, and the timeout/retry behavior. That is exactly the context structured fields cannot carry.

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 consequence, then permissions, then recovery, with no filler sentences. The confirmation clause ("in your own prompt where you can show one, otherwise on a CodeGene page this call returns as a link") is dense and takes a second read, which costs it a point.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive 4-parameter tool with no output schema, it covers consequence, confirmation, authorization, and retry, and indicates what is returned in the link case. It is a bit thin on what a successful inline-prompt path yields, but nothing essential for a correct call 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 the baseline is 3, but the description contextualizes finish_with in a way the schema does not: it explains when the confirmation prompt appears versus when a CodeGene link is returned, and frames finish_with as a timeout fallback. This adds operational meaning beyond the field description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Disconnects a service from a project") and adds the state consequence ("Anything in the project that uses the service stops working until it is connected again"), which implicitly frames the connect/reconnect siblings. It stops short of naming an alternative explicitly, so it is clear but not maximally differentiated.

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 a concrete precondition ("once the person confirms it"), a permission gate ("Owners and admins only"), and a failure-recovery path ("if the call times out, call it again with finish_with set to 'link'"). It does not state when to prefer a different tool, but the confirm-first context and prerequisites are unusually well specified.

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