Skip to main content
Glama
android-adb-mcp

android-adb-mcp

by Bzcasper

adb_shell

Run allowlisted shell commands on an Android device through ADB, with non-allowlisted commands rejected to keep execution controlled.

Instructions

Run an allowlisted shell command on the Android device. Non-allowlisted commands are rejected.

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": {
      "command": "<command>"
    },
    "name": "adb_shell"
  }
}

Input Schema

NameRequiredDescriptionDefault
deviceNoDevice serial (optional)
commandYesShell command (must start with an allowlisted base command)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.6/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 burden. It usefully discloses the allowlist gate and that rejected commands fail, but omits how rejection manifests (error vs. empty output), what the call returns (stdout/stderr/exit code), whether execution is synchronous or timed out, and what privilege the shell runs with.

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?

Two short sentences, zero filler, with the core capability stated first and the constraint second. Nothing here is redundant with itself or padded.

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 two-parameter tool with a fully described schema and no output schema, the description is close to sufficient: purpose and the key failure mode are both covered. The remaining gaps (where the allowlist is defined, what output looks like) are secondary for an agent that can just call it and read the result.

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

Parameters3/5

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

Schema coverage is 100%, so both parameters are already documented, including that the command 'must start with an allowlisted base command'. The description only restates that constraint and adds no syntax, quoting, or device-selection detail beyond the schema.

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 and resource ('Run an allowlisted shell command on the Android device'), which is clearly distinct from the structured siblings like adb_tap or adb_swipe. It does not explicitly name those alternatives, but the resource is unambiguous enough that an agent can tell this is the general-purpose escape hatch.

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 allowlist constraint implies usage boundaries and warns that non-allowlisted commands are rejected, which is real guidance about what will fail. However, it never says when to prefer this over the specific siblings (e.g., use adb_tap instead of 'input tap'), nor how to discover the allowlist.

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