Skip to main content
Glama

Return to main menu

disconnect
DestructiveIdempotent

Exit the current map to the main menu and wait for client and server realms and Lua states to end; returns busy or timeout errors.

Instructions

Leaves the current map for the main menu (console disconnect) and waits until the client and server realms are gone; their Lua states are destroyed. Client only (unsupported on srcds). Result: {disconnected, was_in_game, duration_s, realms}. Errors: busy (a map_load runs), timeout.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "disconnect"
  }
}

Input Schema

NameRequiredDescriptionDefault
instanceNoOptional. Instance identifier (see instances_list). If present and different from the local instance, the call is relayed by the coordinator to that instance.
timeout_sNoDefault 30.

Output Schema

NameRequiredDescriptionDefault
nextNo
noteNo
realmsYes
warningNo
next_callNo
duration_sYes
answered_byNo
was_in_gameYes
disconnectedYes
truncated_noteNo
version_warningNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.7

TDQS

A4.5/5.0
Behavior5/5

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

Annotations declare destructiveHint=true and idempotentHint=true, and the description explains exactly why: it blocks until both realms are gone and their Lua states are destroyed. It adds platform restrictions (client only, unsupported on srcds) and enumerates error modes (busy, timeout), which is context the annotations 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.

Conciseness5/5

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

Front-loaded with the action and its blocking semantics, then a compact 'Result:' clause and an 'Errors:' clause. Every sentence carries information; there is no filler or restatement of the title.

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?

Even though an output schema exists, the description summarizes the return shape (disconnected, was_in_game, duration_s, realms) so the agent knows the call is synchronous and reports elapsed time. Combined with error modes and platform limits, nothing needed to invoke it correctly is absent.

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 description coverage is 100%, so the schema already documents both `instance` (relay semantics) and `timeout_s` (default 30, range 1-120). The description adds nothing about either parameter; `timeout` appears only as an error name, not as guidance on setting the parameter.

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?

Specific verb and resource: 'Leaves the current map for the main menu (console `disconnect`)', plus the scope of what that entails (client and server realms gone, Lua states destroyed). It also names a conflicting sibling (map_load) in the error list, so an agent can distinguish it from that tool without opening either 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?

Clearly states the operating context: client only, unsupported on srcds, and it fails with `busy` if a map_load is running. What is missing is explicit routing against other lifecycle siblings such as game_quit or game_terminate, so the agent must infer that this returns to a menu rather than exiting the process.

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