Skip to main content
Glama

flow

Orchestrate device automation by batching commands, running sequential steps with loops and conditionals, or parallelizing actions across multiple devices.

Instructions

Flow orchestration: batch (multi-command), run (multi-step automation with loops/conditionals), parallel (same action on multiple devices). Use turbo:true for rich feedback (experimental).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
argsNoArguments for the action (deviceId will be injected per device)
stepsNoSteps to execute sequentially
turboNo[experimental] Rich UI feedback per step. Compact UI tree after each step, screenshot on failure.
actionYes
devicesNoArray of device IDs to target. Use device(action:'list') to get available devices.
commandsNoArray of commands to execute sequentially
platformNoTarget platform. If not specified, uses the active target.
maxDurationNoMax total duration in ms (default: 30000, max: 60000)
stopOnErrorNoStop execution on first error (default: true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changedv4.0.0
    • addedInput schema / properties / args / additionalProperties
      Added value: +{}
    • addedInput schema / properties / args / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / commands / items / additionalProperties
      Added value: +false
    • addedInput schema / properties / commands / items / properties / arguments / additionalProperties
      Added value: +{}
    • addedInput schema / properties / commands / items / properties / arguments / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • removedInput schema / properties / maxDuration / default
      Removed value: -30000
    • addedInput schema / properties / steps / items / additionalProperties
      Added value: +false
    • addedInput schema / properties / steps / items / properties / args / additionalProperties
      Added value: +{}
    • addedInput schema / properties / steps / items / properties / args / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / steps / items / properties / repeat / additionalProperties
      Added value: +false
    • removedInput schema / properties / stopOnError / default
      Removed value: -true
    • removedInput schema / properties / turbo / default
      Removed value: -false
  2. Changed1 schema field changedv3.10.2
    • addedInput schema / properties / turbo
      Added value: +{
      +  "default": false,
      +  "description": "[experimental] Rich UI feedback per step. Compact UI tree after each step, screenshot on failure.",
      +  "type": "boolean"
      +}
  3. Addedv3.9.1
  4. Removedv3.8.1
  5. Addedv2.13.2

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the burden of disclosing behavioral traits. It explains the orchestration nature and mentions turbo's rich feedback, but it does not elaborate on side effects, error handling (though schema covers on_error/if_not_found), or how the tool interacts with subordinate tools. It is not misleading, but it is minimal in behavioral context.

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 a single, information-dense sentence that front-loads the core concept (orchestration) and immediately lists the three modes. Every clause adds value with no fluff or redundancy.

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?

Given the tool's complexity (nested steps, multiple modes, no output schema), the description covers the high-level functionality and key usage distinctions. It omits details like error handling strategies and loop specifics, but those are present in the schema. The description is sufficient for an agent to understand the tool's scope and how to start using it.

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 description coverage is 89%, so the schema already documents parameters well. The description adds only the note that deviceId is injected per device (already in schema) and turbo is experimental, which is minor. It does not significantly enhance understanding beyond the schema, hence baseline 3.

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's purpose: 'Flow orchestration' and enumerates the three action types (batch, run, parallel) with specific distinctions. This goes beyond a generic verb+resource and provides immediate differentiation between the modes.

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?

The description provides explicit guidance on when to use each action type (batch for multi-command, run for automation with loops/conditionals, parallel for same action on multiple devices). It also mentions the experimental turbo option and the exclusion of system_shell and browser_evaluate in steps. However, it does not explicitly state when to avoid this tool or compare it to direct alternatives, though it's implicitly an orchestration meta-tool.

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