Skip to main content
Glama
schuay

gdb and rr Debugging

reverse-finish

Run backward in time to the call site of the current function, stopping just before it was invoked. Useful for examining the program state at the point of function entry.

Instructions

[rr only] Run backwards until just before the current function was called. Blocks until stopped.

Requires an rr replay session created with start_replay_session. The reverse counterpart of finish: where finish runs forward to the return, reverse-finish runs backward to the call site.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
timeoutNo
session_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations are provided, so the description must cover behavioral traits. It states 'Blocks until stopped' but does not describe side effects, whether it is read-only, or error conditions (e.g., if no call site exists). More detail on blocking behavior and return values is needed.

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 description is three sentences, front-loaded with the core action, and every sentence adds value: purpose, usage context, and differentiation from sibling tool. No unnecessary words.

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?

The description is reasonably complete for a specialized tool with an output schema, but lacks parameter documentation and could elaborate on behavior when the call site is not found. Given the complexity of reverse execution, more detail on return states would improve completeness.

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?

The input schema has two parameters (timeout, session_id) with 0% coverage from the description. The description adds no explanation of what these parameters do, their formats, or constraints, leaving the agent without guidance.

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 runs backwards to the call site of the current function, using specific verbs and targets. It distinguishes from siblings like finish, reverse-step, and reverse-next by explicitly contrasting with finish and implying it operates at function level.

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

Usage Guidelines4/5

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

The description specifies it is for rr replay only and requires a session created by start_replay_session. It also explains the relationship to finish, helping the agent choose between forward and reverse stepping.

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