Skip to main content
Glama

repair_propose

Replay a compiled .flow.ts against the app to repair drifted steps, staging a checked proposal JSON for review without rewriting the spec. Poll job_status, then apply with repair_apply.

Instructions

Start a background job that replays a compiled .flow.ts against the app, repairs drifted steps and stages a checked candidate as a proposal file for review (repair --propose); never rewrites the spec. Returns a job_id: poll job_status. Apply a good proposal with repair_apply.

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_file": "<flow_file>",
      "proposal_file": "<proposal_file>"
    },
    "name": "repair_propose"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoProject directory (absolute) the command runs in; sitelooper.config.json is found from here. Default: the server's working directory.
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.
flow_fileYesPath to the .flow.ts file.
proposal_fileYesWhere to write the proposal JSON (must not exist yet).

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 supply openWorldHint=true, so the description must add behavioral detail, and it does: the operation is asynchronous and returns a job_id, it stages a checked candidate rather than mutating the spec, and follow-up is via job_status. It does not describe failure behavior or what happens if the replay cannot repair a step, and openWorldHint already covers the external-app interaction.

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 tight sentences with the core action front-loaded, followed by the return-value contract and the routing advice. The '(repair --propose)' parenthetical is the only slightly extraneous element and it aids identification.

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 tool with no output schema, the description covers the essentials: async job semantics, the returned job_id, the non-destructive staging behavior, and the apply path. Only edge cases such as repair failures or the contents of the proposal file are left unaddressed.

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 are already documented, including the proposal_file must-not-exist constraint and the vars env-marker rule. The description only adds the notion that flow_file is a 'compiled' flow and that the candidate is 'checked', which is marginal beyond the schema, so the baseline 3 applies.

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: it starts a background job that replays a compiled .flow.ts, repairs drifted steps, and stages a proposal file. It also explicitly distinguishes itself from sibling tools, noting the spec is never rewritten and pointing at repair_apply for applying the result, so an agent can separate it from repair_apply and job_status without opening schemas.

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 gives clear usage context: this is the propose-only path that never rewrites the spec, and the agent is told to poll job_status for the returned job_id and to use repair_apply once a proposal is good. It lacks an explicit inverse condition (e.g., when to run repair_apply directly instead of proposing), but the alternative and follow-up path are named.

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