Skip to main content
Glama
renef-mcp
by Ahmeth4n

adb_app

Control Android app state over ADB: inspect the focused app, list installed packages, launch apps, and force-stop them by package name.

Instructions

Inspect, list, start, or force-stop Android apps via ADB.

Actions:

  • current: Get currently focused app (package, activity, PID, UID)

  • list: List installed packages via pm list packages (optional substring filter)

  • start: Launch an app via am start (optional activity)

  • start_monkey: Launch an app via monkey -p <package_name> -c LAUNCHER 1

  • stop: Force-stop an app via am force-stop <package_name>

Args: action: "current", "list", "start", "start_monkey", or "stop" package_name: Android package name (required for "start", "start_monkey", "stop") activity: Optional activity name for action="start" filter: Optional case-insensitive substring filter for action="list"

Returns: JSON result with app information or command output

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": "adb_app"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYes
filterNo
activityNo
package_nameNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the underlying commands (`pm list packages`, `am start`, `am force-stop`, `monkey`), which signals side effects. It does not state that force-stop kills a running app and loses its state, nor that commands require an attached device and will fail without one, leaving meaningful behavioral gaps for a mutation-capable 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?

Front-loaded summary sentence followed by a scannable per-action list, then Args and Returns sections; each line maps to a distinct decision an agent must make. The Returns line is vague ('app information or command output'), but that is minor given an output schema exists.

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 single tool multiplexing five actions over four parameters, the description covers every parameter and every action well enough to call it correctly, and the output schema handles return values. The remaining gap is operational context—device selection and error behavior—which is never addressed.

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 (absent as an enum in the schema), states that `package_name` is required for start/start_monkey/stop, and explains `activity` and the case-insensitive substring `filter`. It stops short of stating explicitly that `package_name` is ignored for `current` and `list`.

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?

States a specific verb set and resource: 'Inspect, list, start, or force-stop Android apps via ADB,' and the action list pins down each operation. It is unambiguous on its own, though it never contrasts itself with nearby tools such as renef_list_apps, relying on the 'via ADB' wording to imply the distinction.

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?

The action breakdown gives implied usage guidance: an agent can infer that `list` is for enumeration and `stop` for termination, and that `start` vs `start_monkey` are two launch paths. However, it never says when to prefer `start` over `start_monkey`, nor states prerequisites such as a connected device or ADB availability, and does not name alternatives.

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