Skip to main content
Glama
schuay

gdb and rr Debugging

examine

Examine memory contents at any address using hex, decimal, ASCII, or disassembly format, with adjustable unit size.

Instructions

Examine memory at an address (GDB 'x').

address: GDB expression for the target address: "&var", "0x601020", "$rsp" count: number of units to display fmt: x=hex, d=decimal, i=instruction, s=string, c=char, o=octal, t=binary unit: b=byte(1B), h=halfword(2B), w=word(4B), g=giant(8B)

Example: examine("$rsp", count=8, fmt="x", unit="g") → x/8xg $rsp (8 giant-word hex dump of the stack)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fmtNox
unitNow
countNo
addressYes
session_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

Without annotations, the description relies on the GDB 'x' reference to imply the tool is read-only and non-destructive. However, it does not explicitly state that no state is modified, which would be beneficial for an agent.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured: a one-line summary, parameter descriptions, and a concrete example. The information is front-loaded and essential, though slightly verbose.

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?

While the description covers most parameters and includes an example, it omits the required session_id parameter entirely. Given the presence of an output schema, return values are not needed, but the missing session_id guidance reduces completeness.

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

Parameters5/5

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

The description provides detailed explanations and examples for address, count, fmt, and unit parameters, exceeding the schema's minimal type information. It clarifies GDB expression syntax, format characters, and unit sizes. However, the required session_id parameter is not mentioned, indicating a gap.

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 'Examine memory at an address' and references GDB's 'x' command, making the purpose and resource unambiguous. It distinguishes itself from sibling debugger tools like 'print' (expression evaluation) and 'disassemble' (instruction disassembly).

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

Usage Guidelines3/5

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

The description provides an example of usage but lacks explicit guidance on when to use this tool versus alternatives like 'print' or 'disassemble'. It does not state prerequisites or when not to use it.

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