Skip to main content
Glama

Mobilebox: Cloud phones for your agents

Run Maestro flow

run_maestro_flow

Run a Maestro flow (YAML: appId, then steps like launchApp, tapOn, inputText, assertVisible, takeScreenshot) on a running Android phone and get pass/fail per step, the screenshots the flow took and Maestro's log. The screen is recorded meanwhile: publish_proof links the video. Waits up to 50 s; if the flow still runs, call again with run_id to keep waiting. One run per phone at a time; parking or deleting the phone stops it. Costs only the phone's minutes.

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": {
      "phone_id": "<phone_id>"
    },
    "name": "run_maestro_flow"
  }
}

Input Schema

NameRequiredDescriptionDefault
envNoValues the flow reads as ${NAME}, e.g. {"USER_NAME":"ada"}
flowNoThe flow as YAML, up to 256 KB; leave it out with run_id
run_idNoAn earlier run to keep waiting on, instead of starting one
phone_idYesPhone id, ph_…
timeout_sNoStop the flow after this long (30–1800 s, default 600)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint false, openWorldHint true, destructiveHint false), it discloses the 50 s wait window and how to resume, the side effect that the screen is recorded and publish_proof links the video, the billing model ("costs only the phone's minutes"), and the return content per step. These are exactly the operational traits the annotations cannot express.

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?

It is dense but well ordered — what it does, what it returns, the recording link, the wait/resume rule, the concurrency limit, and cost — with no filler. The opening sentence carries a long parenthetical that could be split, which keeps it just under a 5.

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

Completeness5/5

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

There is no output schema, so the description absorbs that burden: it names the return payload (pass/fail per step, screenshots, Maestro's log) and points to publish_proof for the video. Combined with the disclosed wait, concurrency, and cost behavior, an agent has enough to call it and interpret the result without guessing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning on top: it explains what belongs in the flow YAML (appId plus step names), why run_id exists (to keep waiting, not to start a new run), and how the 50 s wait relates to continued calls. env and timeout_s are left entirely to the schema, which is acceptable given the full coverage.

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?

The definition opens with a specific verb and resource ("Run a Maestro flow ... on a running Android phone") and immediately characterizes the resource (a YAML with appId and launchApp/tapOn/inputText/assertVisible/takeScreenshot steps), which cleanly separates it from siblings like act, observe, and screenshot that also act on a phone.

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?

It states the preconditions (phone must be running), the concurrency rule (one run per phone at a time), the failure modes that stop a run (parking or deleting the phone), and the resumption path (call again with run_id). What it does not do is name a competing sibling such as act and say when a scripted flow beats a one-off action, so it stops short of a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.