Skip to main content
Glama

mumu_root_exec

Run a shell command on a MuMu emulator instance only after asserting root, so partial or silently broken non-root runs are blocked with clear guidance on what to fix.

Instructions

Run a shell command with an explicit root check, refusing silently-broken runs.

mumu_shell already runs as root when adbd is root, but it will happily run as shell and let a command fail halfway. This asserts the uid first and tells you exactly what to fix if it is not root.

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

Input Schema

NameRequiredDescriptionDefault
commandNo
vmindexNo
timeout_sNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations present, the description carries the full burden and does disclose the key behavioural trait: it asserts the uid first and refuses to run rather than allowing a partially-failing command, and it reports what to fix when not root. It stops short of describing return format, side effects, or what a timeout does.

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 with zero filler, front-loading the capability and then the motivation for it. The contrast with the sibling arrives immediately after the purpose statement.

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?

Purpose and failure semantics are well covered, and no output schema exists to explain. However, for a 3-parameter execution tool with no annotations and 0% schema coverage, the description leaves two parameters and the result/timeout behaviour entirely unspecified.

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%, so the description must define all three parameters, yet it only implicitly refers to 'command'. The 'vmindex' and 'timeout_s' parameters are given no meaning anywhere, leaving an agent to guess at instance selection and time-limit semantics.

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 ('Run a shell command') plus the distinguishing behaviour ('with an explicit root check'), and explicitly contrasts it with the sibling mumu_shell, which runs as root only incidentally. An agent can tell which of the two to pick without opening either schema.

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?

Clearly frames the selecting condition: use this when the command must be guaranteed to run as root, because mumu_shell 'will happily run as shell and let a command fail halfway'. The alternative tool is named and its shortcoming explained, though there is no explicit 'do not use for non-root commands' instruction.

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

Deploy Server

Other Tools