Skip to main content
Glama

read_memory

Read raw memory at a specified address using an integer, hex string, or GDB expression. Returns hex, printable ASCII, and unreadable ranges for debugging and reverse engineering.

Instructions

Read raw memory from the inferior. address may be an int, a hex string ('0x401000'), or a gdb expression ('main+0x10', '&puts@got'). Returns hex, printable-ascii, and unreadable ranges.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
lengthNo
addressYes
session_idNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the behavioral burden and does add useful context: accepted address forms and the output categories (hex, printable-ascii, unreadable ranges). However, it does not disclose length semantics, error behavior for invalid addresses, or whether a session_id is required, which limits transparency.

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?

Two sentences, action first, with concrete examples and no filler. The most important behavioral facts are front-loaded and every part of the text earns its place.

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?

Adequate for a small read tool: address forms and return categories are given. But without an output schema or annotations, the absence of length-unit and session_id behavior leaves material gaps for an agent deciding how to invoke it correctly.

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?

Address semantics are well explained beyond the schema, but schema description coverage is 0% and the description covers only one of three parameters. Length and session_id receive no explanation, so the agent still lacks crucial meaning for the other parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a clear action and resource: 'Read raw memory from the inferior.' This is specific enough to distinguish from most siblings like read_registers or disassemble, but it does not explicitly name or differentiate sibling tools, so it falls just short of a 5.

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 intended use is implied by the verb and resource—when raw memory bytes are needed—but there is no explicit guidance about when to prefer it over alternatives like get_memory_map or read_registers, nor conditions such as requiring a running/stopped inferior or a session.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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/Mistyovo/gdb-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server