Skip to main content
Glama

debug_inspect

Launch a program, run to a breakpoint, evaluate expressions in that frame, and disconnect in one call—use it to check values at a source line.

Instructions

One-shot inspection: launch a program, run to a breakpoint, evaluate a list of expressions in that frame, then disconnect. Collapses launch + wait + evaluate + disconnect into a single call. Use for 'what is X at line N?' debugging.

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": {
      "adapter": "<adapter>",
      "program": "<program>",
      "at": "<at>"
    },
    "name": "debug_inspect"
  }
}

Input Schema

NameRequiredDescriptionDefault
atYesBreakpoint location to stop at
cwdNoWorking directory for the program
envNoEnvironment variables
argsNoProgram arguments
adapterYesAdapter type to use (e.g. 'python', 'node')
programYesPath to the program to debug
timeoutNoMilliseconds to wait for the breakpoint to be hit (default: 30000)
expressionsNoExpressions to evaluate when stopped at the breakpoint. Omit to just verify the line is reached.
launchConfigNoAdapter-specific DAP launch fields
adapterConfigNoOverride adapter config inline

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.19

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the important lifecycle fact that the session is torn down at the end ('then disconnect') and that the program is actually executed. It does not cover failure behavior, such as what happens if the breakpoint is not hit within the timeout, or side effects of running the program. These are significant gaps for an execution tool with zero annotation coverage.

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 with the action sequence front-loaded and no filler. The second sentence reinforces the composite nature rather than repeating the first verbatim.

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 10-parameter tool with nested objects, no annotations, and no output schema, the description explains the workflow but leaves the return value unexplained, which matters because there is no output schema to describe expression results. Timeout behavior and partial-failure outcomes are also unaddressed, so it is adequate but incomplete for this complexity.

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 all 10 parameters including nested breakpoint and adapterConfig fields are already documented. The description adds only marginal nuance, notably that expressions are evaluated 'in that frame,' which is largely duplicated by the schema's 'when stopped at the breakpoint' wording. Baseline 3 applies.

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 definition names a specific resource and verb sequence: launch a program, run to a breakpoint, evaluate expressions in that frame, then disconnect. It explicitly says it 'collapses launch + wait + evaluate + disconnect into a single call,' which distinguishes it from the sibling primitives debug_launch, evaluate, and debug_disconnect.

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?

The description gives a concrete use case: "what is X at line N?" debugging, which is a clear selection signal. It implies the one-shot alternative to the multi-call workflow, but never states when NOT to use it, e.g. interactive stepping sessions should use debug_launch plus step.

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