Skip to main content
Glama
schuay

gdb and rr Debugging

list_variables

Shows variables in the current stack frame. Select scope: locals, function arguments, or both to inspect debugging state.

Instructions

Show variables in the current stack frame (GDB 'info locals' / 'info args').

scope: "locals" — local variables only (default) "args" — function arguments only "all" — both locals and arguments

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scopeNolocals
session_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It describes a read-only inspection with no side effects mentioned. The behavioral transparency is adequate but could be more explicit about prerequisites or limitations.

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, with the main purpose stated first, followed by a structured list of scope options. 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.

Completeness4/5

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

Given low complexity, an output schema, and siblings, the description covers essential usage. However, it does not mention any prerequisites like an active session, though 'session_id' is required.

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

Parameters3/5

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

Schema coverage is 0%, so the description must compensate. It explains the 'scope' parameter with enumerated values, but does not describe 'session_id' beyond its presence. This adds some value but is incomplete.

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?

Description clearly states the tool shows variables in the current stack frame, with specific reference to GDB commands 'info locals' and 'info args'. This distinguishes it from siblings like info_registers or print.

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 explains the scope parameter and its values, but does not explicitly contrast when to use this tool versus alternatives like backtrace or context. The context of stack frame inspection is implied.

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