Skip to main content
Glama
schuay

gdb and rr Debugging

reverse-next

Step backward over the previous source line or machine instruction without entering called functions. Requires an rr replay session.

Instructions

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

Requires an rr replay session created with start_replay_session. The reverse counterpart of next: does not enter called functions when going backwards. Use reverse-step to step backwards into 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 blocking behavior, session requirement, and the distinction between stepping by source line vs instruction. Although no annotations exist, the description adds sufficient behavioral context.

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?

Compact and well-organized: begins with core functionality, then requirements and alternatives. Every sentence adds value with no redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Fully covers tool purpose, prerequisites, parameter behavior, and relationship to sibling tools. Output schema exists, so omission of return values is acceptable.

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

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Explains count and instruction parameters with defaults and behavior. session_id is not described but its purpose is obvious from context. Since schema coverage is 0%, description compensates well.

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 states the tool steps backwards over previous source line or machine instruction. It distinguishes from reverse-step (which enters calls) and next (forward counterpart).

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 requirement for rr replay session created with start_replay_session. Mentions when to use reverse-step instead, providing clear guidance on 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