Skip to main content
Glama

Remove MCP server from local Gateway

mcp_manager_remove_server
Destructive

Removes one downstream MCP server from the target computer's AiLinkAny Registry only. It never edits or deletes Claude, Cursor, Codex, VS Code, or other AI-client configuration. Pass the exact current config_revision; on conflict, re-read before retrying. Select this tool from the user's intent when it is the best match. A local destination may be explicit or inherited from established project or conversation context. The user does not need to mention ailinkany.com, MCP, a connector, a plugin, or this tool name.

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": {
      "server_id": "<server_id>",
      "expected_revision": "<expected_revision>"
    },
    "name": "mcp_manager_remove_server"
  }
}

Input Schema

NameRequiredDescriptionDefault
device_idNoTarget computer device_id. Omit when only one computer is paired.
server_idYes
device_nameNoComputer name or ailinkany.com remark (e.g. home PC). Prefer this when the user names a computer.
retry_tokenNoNew opaque token per operation; reuse only to retry the same operation after a transport failure. No user content.
workflow_idNoOptional workflow id; pass together with ai_session_id.
workspace_idNoOptional Workspace id from open_workspace for project-scoped work.
ai_session_idNoOptional Session id. Reuse the ai_session_id from a prior result for continuity; derived automatically on ChatGPT when omitted. Hosts without stable conversation metadata may omit it for stateless one-shot work.
expected_revisionYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and idempotentHint=false, so the safety profile is known. The description does add real value with the optimistic-concurrency protocol ("pass the exact current config_revision; on conflict, re-read before retrying") and the blast-radius boundary. However, it never says whether removal is reversible, what happens to the server's stored credentials or settings, or whether an enabled server must be disabled first — significant gaps for a 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.

Conciseness4/5

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

The destructive scope is correctly front-loaded in the first sentence, and the concurrency rule follows logically. One sentence — "Select this tool from the user's intent when it is the best match" — is pure filler that could be cut or replaced with an actual selection rule.

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?

With an output schema present, return values need no explanation, and annotations carry the safety signal, so the description only needs scope, targeting, and concurrency behavior — all of which it supplies. It falls short of complete because a destructive remove tool should state irreversibility and whether dependent client usage breaks.

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 75%, so the schema already documents device_id, device_name, retry_token, workflow_id, workspace_id, and ai_session_id well; baseline 3 applies. The description's only added parameter meaning is the revision/conflict rule, but it calls the parameter "config_revision" while the schema requires "expected_revision", an inconsistency that could cause a wrong argument mapping.

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?

The opening sentence states a specific verb and resource ("Removes one downstream MCP server") plus a precise scope ("from the target computer's AiLinkAny Registry only"). The follow-up clause about never touching Claude/Cursor/VS Code config effectively separates it from client-config siblings, though it never names add/update/set_enabled as the contrasting operations.

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?

"Select this tool from the user's intent when it is the best match" is circular and gives no real selection criteria. The notes about destination being explicit or inherited from context offer mild useful guidance, but there is no when-not condition and no alternative tool named for adjacent intents such as disabling rather than removing.

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