Skip to main content
Glama

debug_disconnect

End a debug session and optionally terminate the debuggee; choose a session ID when multiple sessions are active.

Instructions

Disconnect from a debug session and optionally terminate the debuggee.

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": "debug_disconnect"
  }
}

Input Schema

NameRequiredDescriptionDefault
sessionIdNoSession ID (omit if only one session is active)
terminateDebuggeeNoWhether to terminate the debuggee process (default: true for launched sessions, false for attached)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.19

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description carries the full burden. It discloses the important side effect (optionally killing the debuggee) but says nothing about whether the process is left running/paused when not terminated, whether the session's breakpoints survive, what happens if no session is active, or what the call returns. Gaps remain for a state-mutating teardown 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?

A single front-loaded sentence with no filler. It is tight, though so terse that it leaves the structured fields to do nearly all the work.

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

Completeness3/5

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

For a simple two-parameter tool with full schema coverage and no output schema, the description is arguably adequate, but a teardown call benefits from stating what state is left behind and how failures behave, and that 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 coverage is 100%, and the schema already explains that sessionId can be omitted for a single active session and documents the default semantics of terminateDebuggee. The description only restates that termination is optional, adding no format or edge-case detail beyond the schema.

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 description states a specific verb and resource ("Disconnect from a debug session") plus the key side-effect option ("optionally terminate the debuggee"). An agent can tell this is the teardown counterpart to debug_attach/debug_launch, though no sibling is named explicitly.

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 only implied: use it when done with a session. There is no explicit when-to-use/when-not guidance, no mention of how it relates to debug_restart, and no prerequisites such as needing an active session.

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