Skip to main content
Glama

flow-add-step

Record a tool call as a step in the active flow, capturing each action and its result during flow recording.

Instructions

Execute a tool call and record it as a step in the active flow. Use when recording a flow with flow-start-recording and you want to run and capture each action. Returns { message, toolResult, flowFile } on success. If it fails an error is returned and nothing is recorded. Error if the tool name is not found in the registry or arguments are invalid JSON. If a step was recorded by mistake, edit the .yaml file directly to remove it.

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.
commandYesMCP tool name (e.g. "tap", "screenshot", "launch-app")
delayMsNoMilliseconds to sleep before executing this step during replay.
Behavior4/5

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

Describes success return, failure behavior, error conditions (tool not found, invalid JSON), and a correction method (edit .yaml file). No annotations provided, so description carries full burden and does well.

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?

Five sentences with no fluff; purpose, usage, returns, errors, and correction are each addressed in a front-loaded, efficient manner.

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?

Covers return object, error handling, and prerequisites (recording flow). Lacks explanation of 'active flow' but context is adequate for a step-adding tool with no output schema.

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 coverage is 100%, so baseline is 3. Description repeats schema's parameter descriptions without adding significant new semantics, thus no additional value.

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?

Description clearly states the tool executes a tool call and records it as a step in the active flow, distinguishing it from siblings like flow-add-echo (which adds echo steps) and flow-start-recording (which starts 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?

Explicitly says when to use: 'Use when recording a flow with flow-start-recording and you want to run and capture each action.' Does not explicitly say when not to use or mention alternatives, but provides clear usage context.

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