Skip to main content
Glama

close_session

End a debug session by terminating the cdb.exe subprocess, with option to detach and keep target running or close directly.

Instructions

Close a debug session, terminating the cdb.exe subprocess.

With detach=true the debugger detaches (target process keeps running). With detach=false the session is closed directly.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
detachNo
session_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It transparently warns that the tool terminates the cdb.exe subprocess and explains the impact on the target process for both detach settings. This is strong, though it omits edge cases like invalid session_id or error behavior.

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?

The description is extremely concise: two short sentences with the core action front-loaded. It includes only essential details about detach behavior, with no wasted words or redundancy.

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?

The tool is fairly simple with two optional parameters, and an output schema exists (so return values needn't be explained). However, the description omits the role of session_id (e.g., what happens if null) and provides no usage guidance. It is adequate but has clear gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It explains the detach parameter clearly, but the session_id parameter is never described. The name is somewhat self-explanatory, but the description adds no meaning for session_id, leaving a partial gap.

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 clearly states the tool's purpose: 'Close a debug session, terminating the cdb.exe subprocess.' This uses a specific verb and resource, and it is clearly distinct from sibling tools like create_session, list_sessions, and execute.

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?

The description explains the two behavioral modes (detach true vs false) but does not explicitly state when to use this tool versus alternatives, nor does it exclude any cases. The detach explanation implies usage, but no explicit guidance or alternative references are given.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cc682/cdb-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server