Skip to main content
Glama
renef-mcp
by Ahmeth4n

renef_server

Deploy, start, stop, restart, and check logs for the Android on-device daemon and libagent.so to support dynamic instrumentation.

Instructions

Manage the on-device Android renef_server daemon and libagent.so deployment.

Uses Renef v0.4.0 device paths:

  • /data/local/tmp/renef_server (chmod +x)

  • /data/local/tmp/libagent.so (chmod 777 + chcon u:object_r:app_data_file:s0)

Actions:

  • status (default): Check deployment of both binaries and whether renef_server is running

  • deploy: Push v0.4.0 renef_server and libagent.so to device with proper permissions/SELinux context

  • start: Setup ADB port forward (tcp:<port>) and start renef_server in background as root

  • kill: Stop running renef_server and close local session

  • restart: Kill and start renef_server

  • logs: Show tail of /data/local/tmp/renef.log (optionally truncate with clear_logs=True)

Args: action: "status", "deploy", "start", "kill", "restart", or "logs" lines: Number of log lines for action="logs" (default: 100) clear_logs: If True with action="logs", clear the log file after reading

Returns: JSON status or server logs

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "renef_server"
  }
}

Input Schema

NameRequiredDescriptionDefault
linesNo
actionNostatus
clear_logsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does substantially well: it discloses exact device paths, `chmod`/`chcon` SELinux handling, ADB port forwarding, background-as-root start, and that `kill` also closes the local session. Gaps remain around destructiveness (does `deploy` overwrite existing binaries?) and failure modes when ADB or root is unavailable.

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?

Front-loaded purpose sentence, then a compact path block, then a scannable action list, then args. No sentence restates the tool name or pads the definition, and the operational details (permissions, SELinux context) earn their space.

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?

An output schema exists, so the brief Returns line is sufficient and the description needn't elaborate return values. For a tool this operationally complex, the remaining omission is environmental preconditions — ADB device availability and root privileges — which an agent would need before invoking `start` or `deploy`.

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 does: it enumerates the six legal `action` values that the schema leaves as a bare string with a default, explains `lines` as the log tail length, and states the conditional coupling of `clear_logs` to `action="logs"`. The only shortfall is that no bounds or limits on `lines` are given.

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 description states a specific verb and resource: managing the `renef_server` daemon and `libagent.so` deployment on device. The enumerated action list (`status`/`deploy`/`start`/`kill`/`restart`/`logs`) makes the scope unambiguous and clearly distinct from the hooking, memory, and Java-inspection siblings without needing to name them.

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?

Each action carries an inline condition of use (e.g. `status` as default check, `logs` with optional `clear_logs=True`), which gives the agent clear context for picking the right action. What is missing is explicit prerequisite ordering or exclusions — it never says `deploy` must precede `start`, or that `start` requires an ADB connection and root, so the agent must infer the lifecycle sequence.

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