Skip to main content
Glama

step

Control execution of a debug session by continuing, advancing over/into/out of code, or pausing; waits for the program to stop and returns the new state.

Instructions

Control execution of a debug session: continue, step over (next), step into, step out, or pause. Waits for the program to stop and returns the new state.

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": {
      "action": "<action>"
    },
    "name": "step"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYesExecution control action
detailNo'compact' (default: frame-local scopes, short stack, slimmer JSON) or 'full' (same shape as get_state)
timeoutNoMilliseconds to wait for the program to stop after the action (default: 30000)
threadIdNoThread ID (uses stopped thread if omitted)
sessionIdNoSession ID (omit if only one session is active)

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 provided, the description carries the full disclosure burden. It does add valuable behavior: the call blocks until the program stops and returns the new state, and detail controls payload size. It omits critical behavior such as what happens on timeout expiry (error? partial state?), whether the session must be paused first, and what side effects a continue has on running threads.

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 tight sentences with the action list front-loaded and the blocking/return semantics stated second. No filler or redundancy. Slightly dense in the action enumeration but every clause earns its place.

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?

No output schema exists, so the description correctly states that it returns the new state, and the blocking semantics and detail option are covered. For a five-parameter mutation tool without annotations, it is reasonably complete, though preconditions and timeout failure behavior would close the remaining gap.

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 coverage is 100%, so all five parameters and both enums are already documented, setting the baseline at 3. The description adds real value by mapping the enum values 'next/stepIn/stepOut' to their debugger meaning ('step over', 'step into', 'step out'), but contributes nothing beyond the schema for threadId, sessionId, timeout, or detail.

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 gives a specific verb ('Control execution') plus the resource ('a debug session') and enumerates all five actions with natural-language glosses (continue, step over (next), step into, step out, pause). It is clearly distinguishable from siblings like get_state or set_breakpoints. It stops short of explicitly naming the alternative tools for state inspection, hence 4 rather than 5.

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: the agent can infer this is the tool for advancing execution in an active session, and the note that it 'waits for the program to stop' hints at a blocking call. There is no statement of preconditions (e.g. the session must be stopped/paused, or which session is used by default) and no explicit comparison to debug_run or get_state.

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