Skip to main content
Glama

Disconnect an AI app

disconnect_agent
Destructive

Disconnect one AI app from this business (its id from list_connected_agents). It stops working here on its next call. An app connected to this business alone, or one of your own, ends altogether. Another person's app marked allBusinesses only stops working on this business, and keeps working on that person's others. Disconnecting yourself ends this connection.

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": {
      "id": "<id>"
    },
    "name": "disconnect_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the description's real contribution is scope-of-destruction: the disconnect takes effect on the app's next call, and whether it ends the app entirely or only for this business depends on ownership and allBusinesses status. That is genuinely non-obvious behavior no annotation conveys. It does not say whether the disconnect can be undone/reconnected or what error conditions look like.

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 and the id source, then the conditional consequences, which is the right ordering. Slightly dense and the closing sentence ('Disconnecting yourself ends this connection') partially restates the 'ends altogether' condition, so it is not perfectly waste-free.

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 mutation with no output schema, the description covers the action, the id source, timing of effect, and the branching scope of destruction across ownership cases — exactly what an agent needs before calling. Remaining gaps (reversibility, errors) are secondary.

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?

There is one parameter at 0% schema description coverage, so the description must carry the load. It does add real meaning by telling the caller the id must come from list_connected_agents, but it says nothing about format, validity, or what happens with a stale/foreign id, so the compensation is partial.

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?

Uses a specific verb+resource pair ('Disconnect one AI app from this business') and immediately circumscribes the scope to a single entity. It also names the sibling that supplies the identifier (list_connected_agents), so an agent can tell it apart from the listing/connection siblings without opening a schema.

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?

The description effectively routes the agent: get the id from list_connected_agents, then call this. It also frames the conditional outcome cases (sole-connection app, own app, another person's allBusinesses app, self), which implicitly tells the caller what situation they are in. It lacks an explicit 'do not use this if…' exclusion or a stated prerequisite such as ownership/permission.

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