Skip to main content
Glama
renef-mcp
by Ahmeth4n

renef_memdump_passive

Reads Android process memory via /proc//maps and /proc//mem to list mappings or dump raw bytes without ptrace or injection, helping inspect anti-tamper targets before injection.

Instructions

Injection-free, ptrace-free passive memory read via renef_server (/proc/<pid>/maps & /proc/<pid>/mem).

Does NOT spawn, attach, inject libagent.so, or call ptrace. Ideal for inspecting anti-tamper / anti-debug targets before deciding whether to inject.

Modes:

  • maps (default): Lists memory mappings from /proc/<pid>/maps (optional substring filter).

  • dump: Reads raw bytes in [start_addr, end_addr) directly from /proc/<pid>/mem. If output_path is provided, writes the binary dump to that host file.

Args: pid: Target process PID on the Android device mode: "maps" (default) or "dump" start_addr: Start hex address (required for mode="dump", e.g., "0x7f10000000") end_addr: End hex address (required for mode="dump", e.g., "0x7f10004000") filter: Optional substring filter for mode="maps" lines (e.g., "libapp.so", "r-xp") output_path: Optional host file path to write the maps text or raw binary dump

Returns: JSON object with maps lines or dump metadata/hex preview

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": {
      "pid": "<pid>"
    },
    "name": "renef_memdump_passive"
  }
}

Input Schema

NameRequiredDescriptionDefault
pidYes
modeNomaps
filterNo
end_addrNo
start_addrNo
output_pathNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.2/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 so well: it explicitly discloses that it does not spawn, attach, inject `libagent.so`, or call `ptrace`, and it flags that `output_path` writes a file to the host. It omits prerequisites such as required privileges or UID matching for `/proc/<pid>/mem` access, which matters for a memory-reading tool.

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 Modes / Args / Returns structure is front-loaded and scannable, with the key constraint (injection-free) stated first. There is minor redundancy — the Args section restates address requirements already covered under Modes, and the Returns section largely duplicates the existing output schema.

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 six-parameter tool with an output schema, the description covers mechanism, modes, parameter meanings, and side effects. The notable gap is operational preconditions (permissions/root, behavior on read failure or invalid ranges), which an agent would need before calling it on a hardened target.

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?

Schema coverage is 0%, so the description must compensate, and it does: all six parameters are documented with meaning, defaults, conditional requirements (`start_addr`/`end_addr` required for `mode="dump"`), and concrete hex/string examples. The mode enumeration and filter semantics are explained in prose where the schema is bare.

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 names a specific verb and resource — a passive memory read of a target PID via `/proc/<pid>/maps` and `/proc/<pid>/mem` — and contrasts it with injection-based approaches. It does not differentiate itself from the closest siblings (`renef_mem_read`, `renef_mem_dump`), so an agent still has to infer which read path applies.

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 gives a concrete use case: inspecting anti-tamper / anti-debug targets before deciding whether to inject, which implies the alternative approach. It does not name an explicit alternative tool or state when-not to use this one, leaving some routing to inference.

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