Skip to main content
Glama

adb_root

Restart adbd as root on an Android device to gain privileged shell access, and report clearly when production builds or verified boot refuse the request.

Instructions

Restart adbd as root on an Android device (adb root); honest about devices that refuse (production builds, verified boot).

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": {
      "serial": "<serial>"
    },
    "name": "adb_root"
  }
}

Input Schema

NameRequiredDescriptionDefault
serialYes
timeoutMsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/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 does disclose a genuine behavioral trait beyond the name - the operation can fail on production builds and verified boot - but omits other material side effects such as adbd restarting and existing connections dropping, and says nothing about the success signal or error shape.

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?

A single front-loaded sentence with zero filler; the operation leads and the caveat about refusing devices follows. Nothing redundant is included.

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?

For a two-parameter tool with no annotations and no output schema, the description covers the action and one important failure mode, but should also state that a success/failure result or error is returned and explain the timeout parameter. Adequate but with clear gaps.

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

Parameters2/5

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

Schema description coverage is 0% for two parameters, so nothing in the structured fields explains them. The description loosely implies serial by saying 'on an Android device', but it never mentions the timeoutMs parameter or clarifies whether serial accepts a host:port form, leaving semantics undocumented.

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 ('Restart adbd as root on an Android device') and anchors it to the underlying command (adb root), so the agent knows exactly which operation this performs versus adb_exec or adb_status. It stops short of explicitly contrasting with sibling tools, but the action is unambiguous.

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 by the operation itself, and the description helpfully warns that some devices refuse (production builds, verified boot), which tells the agent to expect failure on certain targets. There is no explicit when-to-use/when-not guidance or named alternative for read-only inspection after the restart.

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