Skip to main content
Glama
renef-mcp
by Ahmeth4n

renef_attach

Attach to a running Android process by PID or package name and inject libagent.so using a signal-based method without ptrace.

Instructions

Attach to a running Android process by PID or package name and inject libagent.so.

Uses Renef's signal-based injector (no ptrace).

Args: target: Process ID (e.g., "12345") or running package name (e.g., "com.example.app") timeout: Injection timeout in seconds (default: 30.0)

Returns: JSON status with attached PID

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": {
      "target": "<target>"
    },
    "name": "renef_attach"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetYes
timeoutNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does add real value by disclosing the signal-based injector and the absence of ptrace (relevant to detection) and the default timeout, but it omits prerequisites such as root/adb requirements, what the injection does to the target process state, and whether the agent can be detached afterward.

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 core action is front-loaded in sentence one, with mechanism, args, and returns in clearly separated blocks and no fluff. Minor waste is the line restating the return value, which an output schema already covers.

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?

An output schema exists, so the return description is not required, and both params are well covered. However, for an invasive process-injection tool with zero annotation coverage, the definition never states permissions/root requirements, error conditions, or side effects on the target, leaving meaningful gaps for an agent deciding whether it can safely call it.

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 description coverage is 0%, so the description must compensate, and it does: both parameters are documented with types, the dual format of `target` (numeric PID or package name) is spelled out with examples, and `timeout` is given in seconds with its default of 30.0.

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 first sentence names a specific verb and resource (attach to a running Android process) plus the concrete payload (inject libagent.so), and the second clarifies the mechanism (signal-based, no ptrace). An agent can distinguish this from sibling tools like renef_exec, renef_hook_java, or renef_load_script without opening the schema.

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: it is clearly the tool for attaching to an already-running target, but the description gives no conditions, alternatives, or prerequisite flow (e.g., whether renef_ping or renef_list_apps must run first, or whether the device must be rooted). The agent must infer when to choose this over other injection/hook siblings.

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