Skip to main content
Glama
renef-mcp
by Ahmeth4n

renef_mem_read

Safely read target process memory by checking mapped regions first to avoid crashes. Supports hex, hexdump, string, and integer formats for debugging and reverse engineering.

Instructions

Safely read memory from the target process (checks /proc/self/maps first to avoid crashes).

Supported formats:

  • hex (default): Raw bytes as hex + printable ASCII preview (size defaults to 64, max 1MB)

  • hexdump: Formatted classic hexdump (Memory.hexdump, size defaults to 64)

  • string: NUL-terminated UTF-8/C string (Memory.readStr, size defaults to 256)

  • u8, u16, u32, u64, pointer: Little-endian unsigned integer

Args: address: Target memory address (e.g., "0x7f8a1c2b0") size: Number of bytes for hex/hexdump (default 64) or max length for string (default 256) format: Output format - "hex", "hexdump", "string", "u8", "u16", "u32", "u64", "pointer"

Returns: JSON object with the read value (or formatted hexdump)

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "address": "<address>"
    },
    "name": "renef_mem_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizeNo
formatNohex
addressYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the pre-flight maps check for crash safety, per-format size defaults (64/256), a 1MB cap, endianness for integer reads, and the general return shape. Gaps remain around failure modes (invalid/unmapped address), required permissions, and whether a prior renef_attach is mandatory.

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?

Front-loaded with the core action and safety rationale, then cleanly sectioned into formats, args, and returns. The format bullet list is dense but each line carries distinct information; the trailing 'Returns' block is somewhat redundant given an output schema exists.

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?

For a three-parameter read tool with an output schema, the definition covers formats, limits, defaults, and return shape adequately. The main omissions are the attach prerequisite and error behavior, which matter for a process-memory tool where an unattached target is a common failure.

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, and it does document all three parameters with meaning and examples. However, it states size defaults of 64/256 while the schema declares default 0, a discrepancy that can mislead an agent, and address is only shown by example with no statement about accepted formats beyond '0x'-prefixed hex.

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?

The description opens with a specific verb+resource: 'read memory from the target process', which is immediately distinguishable from renef_mem_write, renef_mem_search, and renef_mem_dump by name alone. It never explicitly contrasts itself with those siblings, so it stops 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?

Usage is implied rather than stated: the '/proc/self/maps first to avoid crashes' note suggests this is the safe/checked read path, and the format list implies selection by desired output type. There is no explicit when-to-use versus renef_mem_dump or renef_mem_search, and no stated prerequisites such as needing an attached process.

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