Skip to main content
Glama
luischang07

Debugging MCP Server

by luischang07

Inspect Runtime State

inspect_runtime_state

Retrieve live debugging snapshots including threads, call stacks, scopes, and variable values from an active DAP session to diagnose runtime issues when execution is paused.

Instructions

Retrieves the live debugging snapshot from a connected DAP session: threads, call stack, scopes, and local variables with their current values. Requires an active DAP connection (call connect_dap first). Most useful when the debuggee is stopped at a breakpoint.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
thread_idNoThe thread to inspect. Defaults to the thread that last stopped (hit a breakpoint). Use `inspect_runtime_state` once without this to see all threads.
frame_indexNoThe stack frame index to inspect (0 = top of stack, i.e., current frame).
max_variablesNoMaximum number of variables to retrieve per scope.
variable_depthNoHow many levels deep to expand nested objects/arrays. 1 = top-level only, 2 = one level of nesting, etc.
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 and does well by disclosing prerequisites (active DAP connection), optimal usage context (debuggee stopped at breakpoint), and scope of data retrieved. It doesn't mention rate limits, error handling, or performance impacts, but covers key behavioral aspects for a debugging tool.

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 sentences, each earning its place: first states purpose and data scope, second gives prerequisites, third provides usage context. Front-loaded with core functionality, no wasted words, and structured logically from general to specific.

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 debugging tool with no annotations and no output schema, the description is quite complete—it covers purpose, prerequisites, optimal usage, and data scope. It doesn't describe the return format or error cases, but given the context and sibling tools, it provides sufficient guidance for an agent to use it effectively.

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 all parameters thoroughly. The description adds no additional parameter semantics beyond what's in the schema, but the baseline is 3 since the schema does the heavy lifting. No compensation is needed given high coverage.

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 verb ('Retrieves') and resource ('live debugging snapshot from a connected DAP session'), specifying what data is obtained (threads, call stack, scopes, local variables with values). It distinguishes from siblings like 'connect_dap' (prerequisite) and 'step_debugger' (action vs. inspection).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Explicitly states when to use ('Most useful when the debuggee is stopped at a breakpoint') and prerequisites ('Requires an active DAP connection (call `connect_dap` first)'). It also implies alternatives by naming a sibling tool for the prerequisite, providing clear context for usage.

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/luischang07/debugging-mcp'

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