Skip to main content
Glama
renef-mcp
by Ahmeth4n

renef_reset

Resets a Renef session or performs a full device/server hard reset, clearing TCP state, restarting the Android server, refreshing ADB forwarding, and optionally redeploying binaries or killing an app.

Instructions

Reset the Renef session or perform a full device/server hard reset.

Modes:

  • session (default): Closes the local TCP connection and clears session state. Fast and safe.

  • hard: Closes local session, kills target app (if specified/tracked), kills and restarts renef_server on the Android device, refreshes ADB port forwarding, optionally redeploys v0.4.0 binaries (renef_server + /data/local/tmp/libagent.so), and verifies with ping.

Args: mode: Reset mode - "session" (default) or "hard" redeploy: (hard mode only) Re-push renef_server and libagent.so to device kill_app: (hard mode only) Package name or PID to force-stop/kill

Returns: JSON status with step-by-step reset results

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_reset"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNosession
kill_appNo
redeployNo

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, the description carries the full burden and does well: it discloses exactly what hard mode destroys or disrupts (closes the TCP session, force-stops the named app, kills and restarts renef_server, re-establishes ADB port forwarding, redeploys v0.4.0 binaries) and notes verification via ping. It omits prerequisites such as root/ADB requirements and what a partial-failure result looks 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?

Front-loaded one-line summary followed by Modes/Args/Returns sections makes it scannable. The Args block restates some information already given under Modes (default and hard-only constraints), which is mildly redundant, but each section still serves a distinct purpose.

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 multi-step destructive recovery tool with three undocumented parameters, the description covers modes, per-mode side effects, and argument constraints, and an output schema exists so return-shape detail is not required. The remaining gap is operational prerequisites and failure handling, which an agent would want before invoking hard mode.

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 fully does: it enumerates the two legal values of 'mode' and its default, and restricts 'redeploy' and 'kill_app' to hard mode with their concrete semantics (re-push both binaries; package name or PID to force-stop). That is more meaning than the bare schema properties convey.

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?

States a specific verb and resource ('Reset the Renef session') and immediately splits the operation into two named, clearly bounded modes ('session' vs 'hard'). An agent can tell from the text alone that this is teardown/recovery tooling, distinct from operational siblings like renef_command or renef_attach.

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?

Declares 'session' as the default and labels it 'Fast and safe', while 'hard' is described as the heavier path that restarts the server and optionally redeploys binaries — this steers an agent toward the cheap option first. It stops short of an explicit 'use hard only when X fails' trigger, so the escalation condition must be inferred.

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