Skip to main content
Glama

Debug Run

debug_run

Launches a Python script under the tracer with the specified breakpoints and returns the first stop, enabling live inspection of execution state during debugging.

Instructions

Lanza el script bajo el tracer con los breakpoints dados y devuelve el primer STOP. Solo puede haber una sesion activa a la vez.

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_path": "<file_path>",
      "breakpoints": "<breakpoints>"
    },
    "name": "debug_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_pathYes
breakpointsYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses that execution runs under the tracer, halts at the first stop, and that only one session may be active at a time, but it does not say what happens if a session is already active, whether the call blocks, or how the session is later resumed or stopped.

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?

Two short sentences, front-loaded with the core action and the return behavior, with the session constraint appended. Nothing is wasted, though the brevity leaves gaps elsewhere.

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?

An output schema exists, so return shape need not be spelled out, and the description still signals the first STOP. For a stateful debugging tool with two undocumented parameters and no annotations, though, it omits error conditions and session lifecycle details an agent needs.

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 and largely does not. It only alludes to 'the script' and 'the given breakpoints' without clarifying whether breakpoints are line numbers, whether file_path is absolute or relative, or what units the integers represent.

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?

The description names a specific verb and resource: it launches the script under the tracer with the given breakpoints and returns the first STOP. 'Returns the first STOP' distinguishes it from plain run_script and from debug_continue, though siblings are not named explicitly.

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?

Usage is only implied: launching a traced run with breakpoints suggests debugging start-up. No explicit when-to-use versus run_script or debug_continue, and no prerequisites beyond the single-session constraint, which is a rule rather than guidance.

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