Skip to main content
Glama

repair_apply

Applies a staged repair proposal to a flow file exactly as validated, without running a browser.

Instructions

Apply a proposal staged by repair_propose to its flow file exactly as checked (no browser run).

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

Input Schema

NameRequiredDescriptionDefault
cwdNoProject directory (absolute) the command runs in; sitelooper.config.json is found from here. Default: the server's working directory.
proposal_fileYesThe proposal JSON path.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose the two most important traits: it writes to the flow file and performs no browser run. It does not say whether the flow file is overwritten or merged, whether the change is reversible, or what happens on a malformed or stale proposal.

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?

One sentence, front-loaded with the action, with the two qualifying facts (exactly as checked, no browser run) appended where they matter. Nothing is wasted.

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

Completeness3/5

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

For a simple two-parameter tool this covers the essentials: input origin, target, and the absence of a browser run. Without annotations or an output schema, the missing pieces are error behavior and what the caller gets back after a successful apply.

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 both parameters are already documented, including cwd resolution of sitelooper.config.json. The description adds only the provenance of proposal_file (output of repair_propose) and the implicit link from proposal to target flow file, which is modest value beyond the schema.

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: applies a proposal to its flow file. It also names the sibling that produces the input (repair_propose) and distinguishes itself from browser-executing tools with '(no browser run)', so an agent can place it 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?

The prerequisite is explicit: the proposal must have been staged by repair_propose, and the parenthetical makes clear this is not the execution path. It stops short of stating what to do if no proposal exists or when to prefer re-proposing over applying.

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