Skip to main content
Glama

run_flow

Execute Maestro flows on a device using inline YAML, file paths, or a directory. Apply include/exclude tags for selective execution.

Instructions

Execute one or more Maestro flows on a device. Provide exactly one of: yaml (inline YAML string), files (array of flow file paths), or dir (directory path). includeTags and excludeTags are only applicable when using dir. When to use: run_flow gives the full Maestro vocabulary (assertions, conditionals, loops, retries); for a simple sequence of taps/types prefer run_steps, and for one gesture use the individual tools. TRUST BOUNDARY: Maestro flows can run arbitrary JS (evalScript) and local files (runScript/files/dir), so treat run_flow input as locally-executable code.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
udidYesSimulator / device UDID (from device_list)
yamlNoInline Maestro YAML flow string (preferred for exploration)
filesNoArray of .yaml flow file paths
dirNoDirectory containing .yaml flow files
includeTagsNoOnly run flows tagged with these tags (dir mode only)
excludeTagsNoExclude flows tagged with these tags (dir mode only)
envNoEnvironment variables passed to the flow
timeoutMsNoFlow timeout in milliseconds (default 120 000)
Behavior4/5

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

No annotations are provided, so the description carries full burden. It discloses a critical trust boundary: flows can run arbitrary JS and local files, alerting about security. It doesn't detail other behaviors like output or side effects, but the primary behavior is clear.

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 remarkably concise with no wasted words. It front-loads the core action and constraints, then adds usage guidance and a security note. Every sentence serves a purpose.

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

Completeness4/5

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

For an execution tool with 8 parameters, the description covers input constraints well. It doesn't mention return values or error handling, but the tool likely outputs to stdout/logs, which may be assumed. The trust boundary note adds important context.

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

Parameters5/5

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

Schema coverage is 100%, but the description adds value by explaining the mutual exclusivity of yaml/files/dir and applicability of tags only with dir. Also notes yaml is preferred for exploration. This goes beyond the schema.

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 description clearly states the tool executes Maestro flows on a device, with specific verbs and resource. It distinguishes from sibling tools like run_steps and individual gesture tools by noting when each is appropriate.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Explicitly states to provide exactly one of yaml, files, or dir, and clarifies that includeTags/excludeTags only apply to dir. Provides clear guidance on when to use this tool vs run_steps or individual gesture tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hoainho/podium-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server