Skip to main content
Glama

leave_server

Idempotent

Disconnect from a server to stop receiving its messages and lose channel read/write access; rejoin later using join_server.

Instructions

Leaves a server. You stop receiving its messages and can no longer read or write its channels. You can join again with join_server.

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": {
      "serverId": "<serverId>"
    },
    "name": "leave_server"
  }
}

Input Schema

NameRequiredDescriptionDefault
serverIdYesServer ID to leave

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv3.1.2

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare the mutation profile (readOnlyHint=false, destructiveHint=false, idempotentHint=true), so the bar is lower, and the description still adds real value by spelling out the consequences: no more incoming messages and no read/write access to channels. The mention that rejoin is possible via join_server also communicates reversibility, which complements the non-destructive annotation rather than contradicting it.

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 short sentences, front-loaded with the action and consequences, and the recovery path last. Every sentence earns its place with no repetition or filler.

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 one-parameter, non-destructive mutation with annotations and full schema coverage, the description covers action, effect, and reversibility, which is nearly everything an agent needs. It stops short of stating the response shape or failure conditions (such as not being a member), a minor gap given no output schema exists.

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 a single required parameter with 100% schema description coverage ('Server ID to leave'), so the schema does the heavy lifting. The description adds no format, source, or lookup guidance for serverId beyond what is already structured, which is exactly the baseline-3 case.

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 opens with a specific verb+resource ('Leaves a server') and immediately qualifies scope by describing exactly what access is lost. By naming join_server as the inverse operation, it implicitly separates this tool from the join path, so an agent can distinguish membership-removal from membership-creation 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 Guidelines3/5

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

Usage is implied rather than stated: an agent can infer the tool is for removing the current account from a server, and the rejoin note gives useful lifecycle context. There is no explicit when-not guidance (e.g., leaving vs deleting, or what happens if not a member), so the guidance remains minimum viable.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.