Skip to main content
Glama
renef-mcp
by Ahmeth4n

renef_file

Read, write, check, resolve, and map files inside the target Android app's process context, including private data files and dumping memory regions to disk.

Instructions

Filesystem operations executed inside the target process context (File.* API).

Runs with the target app's UID/SELinux context, so it can read the app's private data files (/data/data/<pkg>/...) and dump in-memory payloads directly to disk.

Actions:

  • read: Read file contents -> File.read(path)

  • write: Dump target memory [address, address+size) to a device file (max 100MB) -> File.write(path, addr, size)

  • exists: Check if file exists -> File.exists(path)

  • readlink: Resolve a symlink target -> File.readlink(path)

  • fdpath: Get filesystem path for an open file descriptor (/proc/self/fd/<fd>) -> File.fdpath(fd)

Args: action: "read", "write", "exists", "readlink", or "fdpath" path: File path on device (required for all actions except "fdpath") fd: File descriptor number (required for "fdpath") address: Source memory address in target (required for "write") size: Number of bytes to dump from memory (required for "write", max 100MB)

Returns: JSON object with operation result

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": {
      "action": "<action>"
    },
    "name": "renef_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
fdNo
pathNo
sizeNo
actionYes
addressNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.8/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden, and it delivers meaningful context: execution under the target app's UID/SELinux context, the ability to reach `/data/data/<pkg>/...`, the 100MB cap on memory dumps, and a JSON return. Gaps remain — it doesn't say whether `write` truncates or overwrites an existing file, whether parent directories are created, or what permission errors look like.

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?

Well structured and front-loaded with an Args/Returns layout that matches how an agent scans for parameter rules. The `-> File.*` arrow annotations add modest value as API reference but are slightly redundant with the action names; overall there is little wasted text.

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 five-parameter tool with an output schema present, the description covers the action taxonomy, per-action parameter requirements, a safety-relevant size limit, and the privilege context. The main residual gap is mutation semantics for `write` (overwrite behavior, failure modes), which matters given no annotations exist to cover the destructive profile.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must compensate, and it largely does: it enumerates the valid `action` values (the schema provides no enum), maps each parameter to the actions that require it, and states the 100MB ceiling on `size`. It does not explain the defaults the schema supplies (`fd`=-1, `size`=0, empty-string `path`/`address`) or the address format string.

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?

Uses a specific verb-plus-resource framing ('Filesystem operations executed inside the target process context') and then enumerates five concrete actions with their underlying `File.*` API equivalents. An agent knows precisely what capabilities exist. It loses a point because it never differentiates itself from memory-oriented siblings such as `renef_mem_dump` or `renef_mem_read`, even though its `write` action semantically overlaps with them.

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 action list and the note that it runs under the target app's UID/SELinux context hint at when it is the right choice (reading private app data, dumping memory to disk). However, there is no explicit 'use this instead of X when Y' guidance, and the `write` action's relationship to `renef_mem_dump` — a likely alternative — is unaddressed.

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