Skip to main content
Glama

mumu_flow

Executes a sequence of Android UI actions, including taps, swipes, text input, waits, assertions, launches, and screenshots, in one call and stops at the first failure with the failed step reported.

Instructions

Run a list of UI steps in one call: the tool that replaces a dozen round trips.

Each step is {"action": ...} with these actions:

action

fields

tap

x/y, or a locator (text/desc/id + optional index, exact)

swipe

x1 y1 x2 y2, optional duration_ms

long_press

locator or x/y, optional duration_ms

text

text

key

key (name or numeric keycode)

wait_for

locator, optional timeout_s

wait_gone

locator, optional timeout_s

wait_activity

target (package or regex), optional timeout_s

assert_text

locator — fails the flow if absent

launch

package (+ activity), or component, optional force_stop

sleep

ms (capped at 30 s)

shell

command

screenshot

optional path

A locator polls the parsed view hierarchy, so it is immune to animation and OCR noise. Stops at the first failure and reports failed_step plus what it saw, which is what makes a broken flow diagnosable without re-running it.

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_flow"
  }
}

Input Schema

NameRequiredDescriptionDefault
stepsNo
vmindexNo
stop_on_errorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does a good job on failure semantics: it stops at the first failure, reports `failed_step` plus observed state, and explains that locators poll the parsed view hierarchy so they are immune to animation and OCR noise. It also discloses the 30 s sleep cap. Gaps remain around side effects (a `shell` step can do anything), whether the device must be booted, and any overall flow timeout.

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 purpose sentence followed by a compact action table — the table format is the efficient way to convey 13 actions, and nearly every line carries information. Minor redundancy in the closing sentence about diagnosability, but nothing is wasted.

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 scripting tool with no annotations and no output schema, the description covers the step vocabulary and failure reporting well, which is the hardest part. It falls short on the top-level parameters (`vmindex`, `stop_on_error` semantics), success return shape, and any preconditions such as requiring a running VM.

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 0% and none of the three parameters are described in the schema, but the description compensates heavily for `steps` with a full action table and locator semantics. However, `vmindex` and `stop_on_error` are never mentioned anywhere, so a third of the surface remains undocumented and the default `stop=True` behavior is only inferable from the prose about stopping on failure.

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?

Opens with a specific verb and resource ('Run a list of UI steps in one call') and immediately frames the value proposition ('replaces a dozen round trips'), which distinguishes it from the single-action siblings like mumu_key, mumu_long_press and mumu_app_launch. An agent can tell this is the batch/scripted-flow tool without opening the schema.

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 'replaces a dozen round trips' framing implies when to prefer this over one-step-at-a-time calls, but no alternative is ever named and there is no explicit when-not-to-use guidance (e.g. use mumu_key directly for a single keypress). Usage is implied rather than stated.

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