Skip to main content
Glama

Fix instructions

yof_fix_prompt
Read-onlyIdempotent

Write step-by-step instructions to fix one finding (pass finding_id) or one kind of problem (pass rule_id), with any secret shown only as a prefix plus REDACTED. Use it after yof_findings; use yof_explain for background on a rule, and yof_verify after the fix. With finding_id it reads that stored finding (file, line, app address) to make the steps specific; one of the two ids is required. Returns rule and instructions, plus finding_id when one was passed.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "yof_fix_prompt"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoLanguage of the rule titles and plain-word text, as a two-letter code. Default en.
builderNoThe tool the code is built with, so the steps fit it: lovable, cursor, v0, bolt, replit or generic. Default generic.
rule_idNoA rule id, for general steps when there is no finding id.
finding_idNoA finding id from yof_findings. Takes priority over rule_id.

Output Schema

NameRequiredDescriptionDefault
ruleNoRule id.
errorNoOnly on a failed call (isError true): what went wrong.
finding_idNoThe finding id, when one was passed.
instructionsNoThe fix instructions, ready to follow.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • changedInput schema / properties / builder / description
      Previous value: -"Where the code is built, for the right hints."New value: +"The tool the code is built with, so the steps fit it: lovable, cursor, v0, bolt, replit or generic. Default generic."
    • changedInput schema / properties / finding_id / description
      Previous value: -"A finding id from yof_findings."New value: +"A finding id from yof_findings. Takes priority over rule_id."
    • changedInput schema / properties / lang / description
      Previous value: -"The language of the plain words (default en)."New value: +"Language of the rule titles and plain-word text, as a two-letter code. Default en."
    • changedInput schema / properties / rule_id / description
      Previous value: -"A rule id, when there is no finding id."New value: +"A rule id, for general steps when there is no finding id."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "error": {
      +      "description": "Only on a failed call (isError true): what went wrong.",
      +      "type": "string"
      +    },
      +    "finding_id": {
      +      "description": "The finding id, when one was passed.",
      +      "type": "string"
      +    },
      +    "instructions": {
      +      "description": "The fix instructions, ready to follow.",
      +      "type": "string"
      +    },
      +    "rule": {
      +      "description": "Rule id.",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), but the description adds real behavioral context: secrets are surfaced only as a prefix plus REDACTED, and passing finding_id causes the tool to read the stored finding (file, line, app address) so steps are specific. It also states the return shape (rule and instructions, plus finding_id). Not a 5 only because it doesn't discuss limits such as what happens with an unknown or stale id.

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 sentences, front-loaded with the action and the two-mode choice, then sequencing, then the output shape. Dense but every clause carries information; the parenthetical id guidance is slightly crammed into one sentence.

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 read-only generation tool with full schema coverage and an output schema, this covers purpose, mode selection, sibling routing, redaction behavior and return contents. Complete enough for correct invocation; only edge-case behavior with invalid ids is unstated.

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 the enum values for lang and builder and the id formats are already documented, including 'takes priority over rule_id'. The description's only genuine addition is the constraint that one of the two ids is required, which the schema does not express (required is empty); that is useful but limited against an already-rich 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 ('Write step-by-step instructions to fix...') and immediately distinguishes the two modes: one finding via finding_id, or one kind of problem via rule_id. An agent can tell this apart from yof_explain, yof_findings and yof_verify 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 Guidelines5/5

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

Gives explicit ordering: use after yof_findings, and yof_verify after the fix, with yof_explain named as the alternative for rule background. The when-to-use and which-sibling conditions are both spelled out rather than implied.

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.