Skip to main content
Glama

mumu_wait_for

Blocks until specified text or a content description appears in the emulator's view hierarchy, then returns the matching node so you can tap it directly instead of using sleep-and-screenshot loops.

Instructions

Block until text appears in the view hierarchy (or a content description).

Returns the matching node so the caller can tap it directly. Cheaper and far more reliable than sleep-then-screenshot loops.

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

Input Schema

NameRequiredDescriptionDefault
textNo
poll_sNo
vmindexNo
timeout_sNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3/5.0
Behavior2/5

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

With no annotations, the description must carry the full behavioral burden. It discloses that the call blocks and returns the matching node, but omits critical behavior such as what happens on timeout, how polling works, matching semantics, and the role of `vmindex`.

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 description is short, front-loaded with the core purpose, and contains no unnecessary wording. The second sentence adds useful contrast without wasting space.

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?

This is a 4-parameter tool with no annotations, no output schema, and 0% schema description coverage. The description explains the core purpose and return value but leaves too much undefined for reliable invocation, especially timeout behavior, polling, and `vmindex` semantics.

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 should compensate. It only gives meaning to `text` by saying it matches the view hierarchy or content description; `poll_s`, `vmindex`, and `timeout_s` are not explained at all.

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: blocking until `text` appears in the view hierarchy or a content description. It is clear what the tool does, though it does not explicitly distinguish itself from sibling waits such as `mumu_wait_activity`.

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 phrase 'Cheaper and far more reliable than sleep-then-screenshot loops' implies it should replace manual sleep-and-screenshot polling. However, there is no explicit when-to-use/when-not guidance or comparison against sibling wait tools.

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