Skip to main content
Glama

flow-add-step

Executes a tool call and records it as a step in an active flow, capturing each action for replayable end-to-end tests.

Instructions

Execute a tool call and record it as a step in the flow named by name + project_root (the recording must already be open — see flow-start-recording). Use when recording a flow and you want to run and capture each action. A coordinate gesture-tap is recorded as a portable tap: { selector } step when the tapped element has stable text/identifier (otherwise coordinates are kept with a warning); a restart-app is recorded as a launch step (record one FIRST to make the flow a self-contained e2e flow; restart-app has no chromium support, so a chromium flow records as a fragment — add the launch: { chromium: <app path> } line to the YAML afterward, deleting the executionPrerequisite line if one was recorded: a flow that starts with a launch must not declare it). Returns { message, toolResult, stepCount, recorded, savedTo } on success. If it fails an error is returned and nothing is recorded. If a step was recorded by mistake, edit the .yaml to remove it — against a remote client, only after flow-finish-recording: the in-memory copy is authoritative there, and every write serializes it over your edit.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
argsNoTool arguments as a JSON string, e.g. '{"udid": "ABC", "x": 0.5, "y": 0.3}'. Omit for tools with no arguments.
nameYesName of the flow being recorded — the one passed to flow-start-recording.
commandYesMCP tool name (e.g. "gesture-tap", "screenshot", "launch-app")
delayMsNoMilliseconds to sleep before executing this step during replay.
project_rootYesAbsolute path to the project root of the flow being recorded — the same value passed to flow-start-recording. Together with `name` it identifies which recording this step belongs to.
Behavior5/5

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

With no annotations, the description carries the full safety/behavior burden and does so richly: it discloses that gesture-tap may be rewritten to a portable selector (with a warning when coordinates are kept), that restart-app becomes a launch step with a chromium limitation, that failures record nothing, and that in-memory state is authoritative on remote clients. This provides significant context beyond the schema.

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?

The description is long but information-dense, with the purpose and use-case in the first sentence and each subsequent sentence addressing a distinct operational issue (portability, launch-step handling, return value, edit/recovery). A few details could be tightened, but no sentence is purely filler.

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?

This is a complex mutation tool with no output schema, yet the description covers the return shape (`{ message, toolResult, stepCount, recorded, savedTo }`), failure atomicity, recording prerequisite, YAML editing rules, and special command transformations. The only minor gap is not explaining each return field, but the key structure is stated.

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; the description adds extra meaning by explaining that name + project_root jointly identify the open recording and by giving command-specific behavior (gesture-tap/restart-app). It does not need to restate arg/delayMs semantics, which the schema already documents.

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 opening sentence states a specific action ('Execute a tool call and record it as a step') with explicit scope (`flow named by name + project_root`). This clearly distinguishes the tool from sibling flow tools like flow-start-recording and flow-finish-recording.

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 includes an explicit usage directive ('Use when recording a flow and you want to run and capture each action') plus a prerequisite pointer ('recording must already be open — see flow-start-recording'). It also gives conditional guidance (record a restart-app launch FIRST; chromium fragment caveat), but it does not explicitly contrast with flow-add-echo or name exclusions.

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/software-mansion/argent'

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