Skip to main content
Glama

Inspect runtime state at a line

debug_at
Destructive

Auto-selects a debug adapter, launches the program, pauses at file:line, evaluates expressions, and reports breakpoint, termination, or timeout details before cleanup.

Instructions

Primary one-shot debugging tool for bugs and failing behavior. Auto-selects a ready adapter, launches the program, stops at file:line, evaluates expressions, reports breakpoint/termination/timeout details, and cleans up.

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": {
      "file": "<file>",
      "line": "<line>"
    },
    "name": "debug_at"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoProject and debuggee working directory
envNoEnvironment variables
argsNoProgram arguments
fileYesSource file containing the breakpoint
lineYesOne-based breakpoint line
adapterNoAdapter type; auto-detected from file/project when omitted
programNoLaunch target; defaults to file for Python/Node and cwd for Go
timeoutNoBreakpoint wait timeout in milliseconds
conditionNoConditional breakpoint expression
expressionsNoExpressions to evaluate in the stopped frame
hitConditionNoAdapter-specific hit count condition
launchConfigNoAdapter-specific DAP launch fields

Output Schema

NameRequiredDescriptionDefault
hitYes
hintNo
outputNo
reasonNo
statusNo
valuesNo
adapterYes
exitCodeNo
locationNo
timedOutNo
exceptionNo
breakpointNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.19

TDQS

A3.7/5.0
Behavior4/5

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

Annotations flag destructiveHint=true and non-idempotent, and the description clarifies the lifecycle: adapter auto-selection, process launch, breakpoint stop, evaluation, then cleanup. That cleanup and reporting detail is meaningful context beyond the annotations, though it doesn't warn about the program's side effects or timeout defaults.

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?

One front-loaded sentence with a tight sequence of clauses; every clause earns its place by describing a stage of the operation. The parenthetical list style is dense but readable.

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 12-parameter, nested-object, destructive tool with an output schema, the description covers the full execution lifecycle well. The remaining gap is routing guidance against the many sibling debug tools, which is what an agent most needs before invoking it.

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% and an output schema exists, so parameters and returns are already documented. The description reinforces adapter auto-selection and the file:line stop point but adds no new meaning for the 12 params (env, args, condition, hitCondition, launchConfig).

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?

Specific verb chain and resource: launches the program, stops at file:line, evaluates expressions, reports results, cleans up. 'Primary one-shot debugging tool' separates it from attach/launch-style siblings, though no sibling is named explicitly for contrast.

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?

Implies usage context ('for bugs and failing behavior') but gives no when-not guidance and never points to debug_attach (already-running process), debug_launch, or debug_inspect (existing session) as alternatives. The agent must infer the boundary from the tool name alone.

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