Skip to main content
Glama

Save the flow you just drove, as a replayable recipe

qa_recipe_save

Saves a completed browser flow as an editable JSON recipe on this machine, so future runs replay its fields, uploads, and clicks instead of rediscovering the steps.

Instructions

Write what you just did on this page to a JSON recipe on this machine, so the NEXT run replays it instead of rediscovering it. Call it with just a name and it builds the recipe from what this session actually filled: the fields (by accessible name, with the cssPath as fallback), the uploads, and the control you clicked to move on — folded into steps, since a click after a group of fills is what ends a step of a wizard. Pass steps yourself to write a recipe by hand, or to correct one. Do this at the END of any flow that took more than a few calls — a long multi-step form, a signup, a wizard — and say so in one line to the human: the recipe is a file they own, at the path this returns, editable and deletable by hand. Local only: writes a file, touches no browser, needs no consent.

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": {
      "name": "<name>"
    },
    "name": "qa_recipe_save"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoThe flow's starting URL. Defaults to the page of the last snapshot; used to scope the journal to this host and to remind you where to start.
nameYesA name you will recognise later, e.g. "new initiative form" — the file is named after it
tagsNoLabels for picking a subset later — ["smoke"], ["billing","regression"]. A suite can be run by tag instead of by name.
notesNoAnything the replay should know that the fields do not say — a precondition, a role to be signed in as, a step that only appears sometimes
stepsNoWrite the steps explicitly instead of deriving them from this session
projectNoWhich product or client this flow belongs to. It becomes a FOLDER, and it is what qa_suite_run groups by. Host is not enough on its own: staging and production are two hosts and one project, and two products behind one domain are one host and two projects.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.86.2

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does most of it: it discloses that this is a local file write, touches no browser, needs no consent, and produces a user-owned editable/deletable file at the returned path. It does not say what happens when a recipe with the same name already exists (overwrite? error?), which is the main behavioral fact an agent would want before re-saving.

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?

Front-loaded with the action and its payoff, then the default behavior, then the manual mode, then the when-to-use rule. Dense but each clause carries information; the 'click after a group of fills ends a step' aside is explanatory rather than filler.

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 a 6-parameter write tool with no output schema and no annotations, it covers effect, locality, default derivation, manual override, and the returned path well enough to call correctly. The remaining gap is re-save/overwrite semantics and error behavior, which an agent authoring repeated runs could trip over.

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 baseline is 3, but the description adds real meaning: with only `name` supplied it derives fields (accessible name, cssPath fallback), uploads, and the advancing click from this session, and explains why a click closes a step. It also frames `steps` as the manual-override path, which the schema only states as 'write the steps explicitly'.

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?

States a specific verb and artifact — write the session's actions to a JSON recipe on disk so the next run replays it — and contrasts that with rediscovery, which implicitly separates it from the replay-side sibling. The two modes (derive from session vs. pass `steps`) are named in the first two sentences.

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?

Gives an explicit trigger ('at the END of any flow that took more than a few calls') with concrete examples (long multi-step form, signup, wizard) and an alternate mode: 'Pass `steps` yourself to write a recipe by hand, or to correct one.' It also prescribes the human-facing follow-up, which no schema field could convey.

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