Skip to main content
Glama

Run flow

run_flow

Run a sequence of UI steps server-side in one call to cut round trips. It executes taps, typing, swipes and assertions, aborts on first failure, and returns a snapshot at the stop point.

Instructions

Run a sequence of UI steps server-side in one call (tap/type/swipe/wait_for/expect/expect_not/eval). Set via:'js' to dispatch taps and typing through the app's fiber tree instead of paying a simulator touch per step; each step's report line names the path it used. Aborts on the first failure or app error, and returns an observe snapshot at the stop point. Prefer this over many separate tap/observe calls.

Input Schema

NameRequiredDescriptionDefault
viaNoDefault input path for every tap/type step: js dispatches the press through the app's own fiber tree (~1ms), os delivers a real simulator touch (17-25s against a hot iOS app), auto tries js and falls back naming the reason. A step's own `via` wins. Default auto.
stepsYesArray of step objects, one action each, e.g. [{tap:{text:'Login'}},{expect:{text:'Home'}}]
deviceNo
observeNoTrailing snapshot: auto (default) = screenshot always, full layout only if the flow failed; full = both; none = neither.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

No annotations, so the description carries the burden, and it discloses key runtime semantics: aborts on the first failure or app error, and returns an observe snapshot at the stop point. It also notes that each report line names the input path used. It does not state whether steps already executed before the abort remain applied to the app state (no rollback semantics), which is the main missing behavioral fact for a mutating batch tool.

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?

Three sentences, front-loaded with the purpose and the alternative, with no filler. The middle clause about fiber-tree dispatch and per-step path naming partly duplicates the via enum description already in the schema, which is minor redundancy but keeps it from a 5.

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?

With no output schema, the description does cover the return behavior (stop-point observe snapshot, per-step report lines), which is the right call. But for a tool whose required parameter is an array of untyped step objects, the agent is left without the step vocabulary at the payload level (what fields tap/type/swipe/wait_for/expect take), so it cannot reliably construct a multi-step flow from this description alone.

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?

The core required parameter, steps, has an unstructured item schema (additionalProperties: {}), and the description compensates with a list of step kinds and a short example, which is real added meaning. However, via and observe already have detailed enum descriptions in the schema, so the description mostly restates them rather than adding new semantics, and the payload shape of each step kind remains undefined.

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 sequence of UI steps server-side in one call' — and enumerates the supported step kinds (tap/type/swipe/wait_for/expect/expect_not/eval). It explicitly contrasts itself with the sibling tools tap and observe, so an agent can pick it 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 Guidelines4/5

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

Gives a clear selection rule: 'Prefer this over many separate tap/observe calls,' naming the alternatives directly. It also explains the via:'js' tradeoff as the reason to batch. It stops short of stating when NOT to use it (e.g. a single interactive tap you want to inspect step by step), so it is strong but not fully exhaustive.

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