Skip to main content
Glama

Record and replay a flow

run_flow

Record app interactions as repeatable .flow tests, replay them without a model, and validate flows to a pass/fail verdict; export to Maestro YAML.

Instructions

Record your calls as a repeatable test, a .flow file replayed with no model: record, then stop to write it to file (save: later); run replays file (from: a step; iterations: per step for compare_performance); test: a file or folder to one verdict, report in to; export: Maestro YAML. params NAME=value: recorded, a value becomes ${NAME}; run fills it. One-off calls: run_steps. Returns the steps, times or verdict.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "action": "<action>"
    },
    "name": "run_flow"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNo
fileNo
fromNo
tagsNo
actionYes
paramsNo
envFileNo
retriesNo
scenarioNo
overwriteNo
iterationsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.1.4

TDQS

B3.4/5.0
Behavior3/5

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

Only openWorldHint is supplied, so the description must carry the behavioral load; it does disclose that run replays with no model and returns steps/times/verdict, and that params become ${NAME}. It omits important operational behavior such as overwrite semantics for the overwrite parameter, file/permission requirements, and side effects of record/stop/save/export.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is compact and front-loads the core record/replay concept, with no obvious filler. However, the semicolon-and-parenthesis chain is telegraphic and hard to scan, and the return-value sentence is buried at the end.

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

Completeness2/5

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

For an 11-parameter, multi-action tool with no output schema, only openWorldHint, and zero schema descriptions, this is under-specified: five optional parameters and overwrite behavior are not explained. The core actions are covered, but not enough to call the tool fully correctly in edge cases.

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?

With 0% schema description coverage the description must define 11 parameters; it gives useful meaning for action, file, from, iterations, to, and params. It leaves tags, envFile, retries, scenario, and overwrite entirely undefined, so an agent cannot confidently supply those optional arguments.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening states a concrete action and artifact—recording calls into a .flow file replayed without a model—and the action list maps record/stop/save/run/test/export. It also names run_steps for one-off calls and references compare_performance, though the compressed action clauses are not fully self-explanatory.

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?

It tells the agent which action serves which purpose (record then stop/save, run to replay, test for a verdict, export for Maestro YAML) and explicitly routes one-off calls to run_steps. It does not spell out when not to choose this tool or prerequisites for record/save beyond the implicit flow.

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