Skip to main content
Glama

Apply one tested fix to a shot plan

shoot_plan_apply_fix
Read-only

Applies one fix, taken from a shoot_plan_check result, to a plan and checks the revised plan again. Some fixes trade one thing for another (each says its trade_off): tell your human before applying one that does. Input: plan; finding_id and fix_id (a finding's id, and the id of one of its suggestions, both from shoot_plan_check); and optionally findings, the check result you already have, which saves recomputing it. Output: {plan, findings}, the revised plan and its new findings. Nothing is stored, here or by us: keep the revised plan yourself. A wrong finding_id or fix_id is refused with the ids that exist. No AI model runs. Needs an agent key from a Shoot Plan account. Free, and it does not count towards the account's 3 free projects a month. Plans up to 8 MB and 120 calls a minute (5,000 a day).

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": {
      "plan": "<plan>",
      "finding_id": "<finding_id>",
      "fix_id": "<fix_id>"
    },
    "name": "shoot_plan_apply_fix"
  }
}

Input Schema

NameRequiredDescriptionDefault
planYesThe plan itself: a dpl.plan/1 JSON object (not text inside a string). Call shoot_plan_format for the schema links and an example.
fix_idYesThe id of one of that finding's suggestions, for example fix-1 or restage.
findingsNoOptional: the dpl.findings/1 document shoot_plan_check returned for this same plan, exactly as returned.
finding_idYesThe id of a finding in the shoot_plan_check result, for example f-3a9c51d02b7e.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the readOnlyHint/openWorldHint annotations: it discloses that nothing is persisted anywhere ('keep the revised plan yourself'), that invalid ids are refused with the valid ids listed, that no AI model runs, that an agent key is required, and the concrete limits (8 MB plans, 120 calls/min, 5,000/day, free and not counted against the 3 free projects). The 'applies a fix' language is consistent with readOnlyHint because the operation is a pure transformation with no stored side effect.

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-loads the action and its follow-on check, then moves through inputs, output, storage, errors, and limits in a logical order with no filler. The clipped telegraphic sentences ('No AI model runs.', 'Free, and it does not count towards...') are efficient but slightly fragmentary.

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

Completeness5/5

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

For a 4-parameter tool with nested objects and an output schema, everything an agent needs is present: input provenance, the returned shape ({plan, findings}), the no-storage caveat, error behavior, auth, and rate/size limits. Return values are summarized rather than re-specified, which is appropriate given the output schema.

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 adds provenance that the schema alone does not carry — that finding_id and fix_id must originate from a shoot_plan_check result, and that passing findings is an optional optimization that saves recomputation. The trade_off note also hints at how fix_id semantics differ between suggestions.

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 one fix ... to a plan') plus the follow-on effect ('checks the revised plan again'), and ties the inputs to their origin in shoot_plan_check. This distinguishes it clearly from shoot_plan_check (which only diagnoses) and from a general revise tool.

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?

Gives the precondition (finding_id and fix_id must come from a shoot_plan_check result), an explicit caution to consult the human before applying a fix that carries a trade_off, and a shortcut (pass findings to avoid recomputing). It does not contrast itself against a sibling like shoot_plan_revise for broader edits, but the workflow context is unambiguous.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources