Skip to main content
Glama

root_shell

Runs an arbitrary root shell command on the Android host after user approval, enabling privileged device tasks through controlled command execution.

Instructions

Run an arbitrary root shell command on the Android host (requires user approval).

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

Input Schema

NameRequiredDescriptionDefault
commandYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It usefully states that the tool runs with root privileges and requires user approval, but it does not describe side effects, destructive potential, execution environment, timeout behavior, or output format for an inherently high-risk arbitrary command executor.

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?

The definition is a single front-loaded sentence with no wasted words. The critical constraints—root, arbitrary shell command, Android host, user approval—are all stated compactly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a high-risk command-execution tool with no annotations, no output schema, and 0% parameter description coverage, the description is too thin. It discloses the approval requirement but omits return values, error behavior, execution semantics, and safety boundaries that an agent would need to invoke it responsibly.

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 description coverage is 0%, so the description must compensate for the single required 'command' parameter. It clarifies that the parameter is an arbitrary root shell command on the Android host, which adds meaningful semantic context beyond the bare string type, but it does not specify quoting rules, multiline handling, or command syntax details.

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?

The description states a specific verb and resource: run an arbitrary root shell command on the Android host. It is clear what the tool does, though it does not explicitly distinguish itself from sibling tools such as root_file or app_manage.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description mentions that user approval is required, which is an operational prerequisite, but it gives no guidance on when to choose this tool versus alternatives like root_file or settings_put. Usage is only implied by the phrase 'arbitrary root shell command'.

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