Skip to main content
Glama

plan_fixes

Builds a read-only fix plan for a review run, showing before → after, risk level and fix type per finding, then waits for the user to choose which items to apply.

Instructions

Fix plan for a review run — read-only. For each item: "before → after", risk (safe, behavior, breaking, destructive) and kind: patch (value from the server), proposal (value from the model — pass it in proposals, the server checks it with the same rule), multi_step (steps done with tools one at a time) and manual (the user decides). Show the plan to the user and wait for an answer: numbers, "all", "all except …" or "none". apply_fixes — only in the next response, after the user's words.

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": {
      "reviewId": "<reviewId>"
    },
    "name": "plan_fixes"
  }
}

Input Schema

NameRequiredDescriptionDefault
findingsNoFinding ids (f1…); defaults to all that have a patch
reviewIdYesreviewId from review_version
proposalsNoModel values for proposal items: [{findingId, body}] — body has the same shape as the finding's patch.body, with values filled in

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the whole burden and does well: it declares read-only, describes the four risk levels, explains that proposals are model-supplied values re-validated server-side by the same rule, and that multi_step items are executed one tool at a time. It does not cover failure modes (invalid finding ids, missing proposals) or permissions, so it is not exhaustive.

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?

Content is front-loaded with the read-only scope and the item anatomy before the workflow instruction, and every clause carries information (risk taxonomy, kind taxonomy, confirmation vocabulary, apply_fixes sequencing). The telegraphic fragment style and colon-chained clauses make it denser than it needs to be, but there is little genuine padding.

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 three-parameter, read-only tool with no annotations and no output schema, the description compensates by describing what the returned plan contains and how to present it, which effectively substitutes for an output schema. Remaining gaps are edge-case behavior (unsupported finding ids, requirement that proposals match proposal-kind items) rather than anything an agent needs to invoke it correctly.

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

Parameters4/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 exceeds it by explaining the semantics behind the proposals parameter (the server checks model-supplied bodies with the same rule used for patches) and by tying the 'kind' taxonomy to the parameters. It does not add format detail beyond the schema for findings or reviewId.

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 identifies the resource (a fix plan for a review run) and its nature (read-only), and enumerates what each plan item contains (before→after, risk, kind). The producing verb is only implied by 'Fix plan', so an agent must infer that this tool generates/previews rather than mutates, but 'read-only' plus the explicit pointer to apply_fixes makes the distinction from its sibling unambiguous.

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?

Strong workflow guidance: it instructs the agent to show the plan to the user, wait for an answer in a specified vocabulary (numbers, 'all', 'all except …', 'none'), and to call apply_fixes only in the next response after the user's words. What is absent is guidance on when in the review pipeline to call it (e.g., after review_version) and any exclusion beyond apply_fixes.

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