Skip to main content
Glama

review_and_fix

Destructive

Reviews code, automatically edits files to fix verified findings, and reruns requested checks after each edit until clean or the round limit is reached.

Instructions

Run up to three review rounds and automatically edit files to fix verified findings, rerunning requested checks after each edit. Executes shell checks with user permissions. Stops on incomplete review, failed checks, or round limit. This changes project files.

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

Input Schema

NameRequiredDescriptionDefault
cwdYes
baseNoHEAD
modeNostandard
intentNo
maxRoundsNo
autoChecksNo
checkCommandsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.0

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, openWorldHint=true, and idempotentHint=false, so the safety profile is covered. The description adds real value beyond that: the three-round cap, the rerun-after-edit loop, the concrete stop conditions (incomplete review, failed checks, round limit), and the fact that shell commands run under user permissions. It does not say whether partial edits are rolled back when a later round fails, which is the one behavioral gap left.

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?

Four short sentences, front-loaded with the core action and ending on the mutation warning. Nearly every sentence earns its place. 'This changes project files' partially restates the destructive annotation, but as a final safeguard it is a defensible inclusion.

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 destructive, multi-round mutation tool this covers the loop mechanics and stop conditions well, and the safety hints are already in the annotations. However, with no output schema and no schema descriptions, the description never explains how findings or applied edits are reported back, nor the semantics of most inputs. It is adequate but leaves real gaps for a tool this consequential.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across seven parameters, so the description must carry the burden and it largely does not. It alludes to maxRounds ('up to three review rounds') and to checks ('requested checks'), but gives no meaning for cwd, base, mode (quick/standard/deep), intent, or the distinction between autoChecks and checkCommands. Most parameters remain guesswork.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives specific verbs and resources: run review rounds, auto-edit files to fix verified findings, rerun checks. The mutating nature clearly separates it from the read-only sounding sibling review_changes, though the sibling is never named. An agent can tell what the tool does, but must infer the contrast itself.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: 'Run up to three review rounds and automatically edit files to fix verified findings' suggests this is the fix phase of a review workflow. There is no explicit statement of when to prefer this over review_changes, no prerequisites, and no guidance on whether a prior review must exist. 'Stops on incomplete review' hints at a precondition but never states it plainly.

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