Skip to main content
Glama

rerecord

Start a background job to re-record one flow step with the agent, optionally using a new instruction, then verify it across multiple runs and re-pin it.

Instructions

Start a background job that re-records one step of a flow with the agent (optionally with a new instruction), then verifies it over several runs and re-pins it. Needs a model API key. Credentials: write each secret as one {{env:NAME}} marker ({{totp:NAME}} for a one-time code), exactly as written: the marker alone, never the value and never $NAME. NAME must be set in the environment the MCP server was started with. Never ask the user for a secret value. Returns a job_id: poll job_status.

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": {
      "flow": "<flow>",
      "step_id": "<step_id>"
    },
    "name": "rerecord"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoProject directory (absolute) the command runs in; sitelooper.config.json is found from here. Default: the server's working directory.
flowYesFlow name, bundle or .flow.ts path.
runsNoVerification runs (--runs, default 2).
varsNoFlow variables, passed as repeated --var k=v. "{n}" in a value is replaced per run with a fresh value. Never a secret: use {{env:NAME}} markers in instructions instead.
step_idYesStep id, e.g. "03-create".
instructionNoReplacement instruction for the step (sent on stdin). Omit to keep the recorded one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With only openWorldHint=true supplied, the description carries the burden well: it discloses that the operation is asynchronous (background job, poll job_status), requires a model API key, persistently re-pins the step after verification, and lays out strict secret-marker handling. It stops short of describing failure behavior, cost/duration of the verification runs, or what happens if verification fails.

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 core action and outcome, followed by prerequisites and credential rules, then the return/polling contract — a sensible order. The credential block is lengthy and partly restates schema guidance, but every clause is actionable and there is no 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 six-parameter mutation tool with a nested vars object and no output schema, the definition covers prerequisites, async return handling, and secret conventions adequately. The remaining gap is what a failed verification or re-pin means for the existing recorded step, which an agent would want before committing.

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 the baseline is 3. The description clarifies that instruction is optional and that omitting it keeps the recorded one, but the schema already states this, and the vars/secret-marker guidance largely duplicates the vars description — little genuinely new semantic content is added.

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 resource — re-record one step of a flow with the agent, then verify over several runs and re-pin it — which is far more precise than the bare name. An agent can distinguish this from sibling tools like do, assert, or repair_apply because the scope (single step, agent-driven re-record plus verification) is spelled out.

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 establishes the trigger context (re-recording a step, optionally with a replacement instruction) and explicitly routes follow-up to job_status after the job_id is returned. It does not name when to prefer this over adjacent tools such as repair_propose or do, nor state any exclusion, so it falls short of full when/when-not guidance.

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