Skip to main content
Glama

save_flow

Stops a learn session, saves recorded steps as a named flow, exports its pinned procedures to a bundle file, and closes the browser session.

Instructions

Stop a learn session, save what it recorded as a named flow, then export the flow with its pinned procedures to a bundle file (default .sitelooper/procedures.json in cwd). Closes the session's browser. Then call build_start with the flow name.

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": "save_flow"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoProject directory (absolute) the command runs in; sitelooper.config.json is found from here. Default: the server's working directory.
nameYesFlow name.
bundleNoBundle path, relative to cwd or absolute (default .sitelooper/procedures.json).
sessionNoBrowser session name (default "default"). Each session is its own browser and daemon.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only declare destructiveHint=false, so the description carries most of the load and does so well: it discloses the three side effects (session stopped, browser closed, bundle file written) and names the default output location. The notable gap is overwrite behavior — nothing says whether an existing flow or bundle of the same name is replaced.

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?

Three short sentences with zero filler, sequenced in execution order with the destructive side effect and the follow-up call both front-loaded rather than buried.

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 four-parameter mutation with no output schema, the description covers side effects, default paths, and the required next call, which is most of what an agent needs. The remaining hole is the overwrite/collision case, which is material for a 'save as name' operation.

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 100%, so all four parameters (name, bundle, cwd, session) are already documented in the schema. The description restates the default bundle path and cwd context but adds no new semantics such as whether the name must be unique or how session scoping affects the saved flow.

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 gives a concrete ordered verb chain (stop session → save recorded flow under a name → export bundle) against a specific resource, and the final sentence distinguishes it from build_start by assigning that tool the follow-up role. An agent can tell this apart from list_flows or rerecord without opening any schema.

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 implies the precondition (a learn session in progress) and explicitly prescribes the next step: 'Then call build_start with the flow name.' What's missing is any when-not guidance — e.g. what to do if the recording is bad (rerecord) or if a flow of that name already exists.

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