Skip to main content
Glama

debug_step

Single-step a halted STM32 core by a specified number of instructions and return the new program counter with function and source line.

Instructions

Single-step the halted core by N instructions.

Args: session_id: Session ID from debug_session_start. count: Number of instructions to step (1-100, default 1).

Returns: New PC location after stepping (function name and source line).

Input Schema

NameRequiredDescriptionDefault
countNo
session_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations at all, the description carries the burden and does disclose the key behavioral trait — it only applies to a halted core — plus the valid count range and the return payload (new PC, function name, source line). It stops short of saying whether breakpoints are honored during the step or what happens if the session is invalid.

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?

The operation is front-loaded in one sentence, followed by a compact Args/Returns block. Every line adds information — no restatement of the tool name and no filler.

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?

An output schema exists, so the return-value explanation is a bonus rather than a requirement, and the halted-core precondition is covered. Missing edge-case behavior (stepping over breakpoints, invalid or expired session) keeps it from being fully complete for a debugger mutation tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/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 it does: session_id is tied to its source tool (debug_session_start), and count is documented with its range (1-100) and default (1). Both parameters gain meaning that the bare schema does not provide.

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?

States a specific verb and resource: 'Single-step the halted core by N instructions', which is clearly distinct from debug_resume (free-run) and debug_halt. It does not explicitly name a sibling as an alternative, but the operation itself is unambiguous.

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?

The phrase 'halted core' implies the prerequisite that the target must already be stopped, but this is never stated as an explicit condition and no error behavior for a running core is given. Nothing routes the agent between this, debug_resume, and debug_breakpoint.

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