Skip to main content
Glama
schuay

gdb and rr Debugging

reverse-step

Step backwards in time during rr replay, moving to the previous source line or machine instruction. Enters called functions when reversing execution.

Instructions

[rr only] Step backwards into the previous source line or machine instruction. Blocks until stopped.

Requires an rr replay session created with start_replay_session. The reverse counterpart of step: enters called functions when going backwards. Use reverse-next to step backwards without entering calls. count: number of steps (default 1) instruction: if True, step back one machine instruction instead of one source line

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
countNo
session_idYes
instructionNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Discloses that it blocks until stopped and enters called functions when going backwards. With no annotations, this is sufficient behavioral context for a debugging tool, though it could mention constraints like only moving within recorded execution.

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?

Concise and well-structured: 5 sentences cover rr-only context, behavior, requirements, sibling differentiation, and parameter details. No wasted words.

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?

Given the existence of an output schema, the description adequately covers what the tool does and its key parameters. Missing error conditions or end-of-recording behavior, but overall sufficient for a step tool.

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?

Description adds meaning for 'count' and 'instruction' parameters, but fails to describe the required 'session_id', which is essential. With 0% schema description coverage, the burden is higher, and the gap reduces the score.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly indicates the tool steps backwards into the previous source line or machine instruction, specifying the verb 'step backwards' and the resource. It distinguishes itself from sibling 'reverse-next' by noting it enters called functions.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states when to use this tool vs. reverse-next, and that it requires an rr replay session created with start_replay_session. Provides clear context and alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/schuay/gdb-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server