Skip to main content
Glama

debug_launch

Launches an interactive debug session for a program, sets optional breakpoints, and reports whether execution stops, terminates, or times out.

Instructions

Launch an interactive debug session. With a breakpoint or stopOnEntry, waits by default and reports whether execution stopped, terminated, or timed out.

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>"
    },
    "name": "debug_launch"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoWorking directory for the program
envNoEnvironment variables
argsNoProgram arguments
adapterYesAdapter type to use (e.g. 'python', 'node')
programNoPath to the program to debug; may instead be supplied through launchConfig
timeoutNoWait timeout in milliseconds (default: 30000)
breakpointsNoBreakpoints to set before launching
stopOnEntryNoStop on program entry. Defaults to false when breakpoints are provided (run to first breakpoint), true otherwise.
waitForStopNoWait for stopped/terminated outcome; defaults to true when a stop is expected
launchConfigNoAdapter-specific DAP launch properties; explicit common fields take precedence
adapterConfigNoOverride adapter config inline instead of looking up from registry
exceptionBreakpointsNoException filter IDs (e.g. ['uncaughtExceptions'])

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.19

TDQS

A3.5/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 key blocking semantics and the three outcome categories (stopped, terminated, timed out) plus the timeout default. It says nothing about process spawning side effects, whether a session persists afterward and must be closed with debug_disconnect, or what happens when the adapter lookup fails.

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?

Two sentences, zero padding, with the action stated first and the surprising behavior (it waits) immediately after. Every clause carries information an agent would otherwise have to guess.

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 12-parameter tool with nested objects and no output schema, describing the possible outcomes partially compensates for the missing return contract. Still missing is how the agent continues after launch (step, debug_at, get_state, debug_disconnect) and what the session lifecycle requires.

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 twelve parameters including the nested breakpoint and adapterConfig objects are already documented. The description reinforces the breakpoints/stopOnEntry interaction but adds no syntax or precedence detail beyond what the schema states.

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?

"Launch an interactive debug session" gives a specific verb plus resource, and the launch-vs-attach distinction is implicit in the wording. It never names debug_attach or debug_run explicitly, so the agent must infer the boundary from verb semantics alone.

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?

It states the condition under which the tool blocks ("with a breakpoint or stopOnEntry, waits by default"), which is real conditional guidance. It gives no guidance on when to prefer this over debug_attach (existing process) or debug_run, and no prerequisites such as adapter registration via configure_adapter.

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