Skip to main content
Glama
schuay

gdb and rr Debugging

context

Get a full snapshot of the current debugging context after a stop event, including current frame, function arguments, local variables, and source listing around the current line.

Instructions

Return a full snapshot of the current debugging context.

Combines the most commonly needed post-stop information into one call:

  • Current frame: function, file, and line number

  • Function arguments

  • Local variables

  • Source listing around the current line

Call this immediately after any stop event (breakpoint hit, step, interrupt) to orient yourself before deciding on the next action.

Note: this resets GDB's internal source-listing position to the current PC, which cancels any forward scrolling done by previous list_source calls.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description discloses an important side effect: resetting GDB's source-listing position. It also outlines the output structure. This is sufficient transparency for a debugging context tool.

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 concise and well-structured: a brief summary, a bullet list of components, usage guidance, and a note. Every sentence adds value, and it is front-loaded.

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 tool has one parameter, an output schema, and clear purpose, the description covers most aspects except parameter semantics. It lacks details on potential errors or session prerequisites, but overall is adequate.

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 schema has 0% description coverage for its only parameter (session_id). The description does not mention or explain this parameter, failing to add meaning beyond the schema's type and name.

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 it returns a full snapshot of debugging context, listing specific components. It implicitly differentiates from sibling tools by noting it combines commonly needed information into one call, which is not done by other tools individually.

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?

It explicitly advises calling it immediately after any stop event to orient before deciding next action. It does not specify when not to use or name alternatives, but the usage context is clearly defined.

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