Skip to main content
Glama

Fix review findings mechanically

godot_fix
Destructive

Apply mechanical Godot 4 review fixes line by line instead of editing findings manually. Shows changes by default, writes safe or check-labelled fixes when enabled, then re-reviews the result.

Instructions

Apply the mechanical fixes for review findings instead of editing them one by one: api/coroutine-without-await, api/freed-check-order, api/get-meta-null-default, api/image-unit-bool, api/infer-variant, api/multimesh-format-after-count, api/packed-element-write, api/shader-removed-builtin, api/shader-renamed, api/timer-start-outside-tree, api/upgrade-area-mask, api/upgrade-mesh-skeleton, quality/mojibake, quality/packed-setter-skipped, quality/standalone-ternary, quality/string-signal, structure/duplicate-uid, structure/invalid-uid, structure/locked-instance-edit, structure/uid-path-mismatch, structure/unknown-uid, structure/unused-resource. Each fix rewrites only the line a finding points to, only when it looks exactly as expected, and is labelled safe (it only removes the problem, e.g. a freed check put first, emit_signal() as signal.emit(), Timer.start() after add_child(), a stale uid set from its path, a lost .uid restored, an unused resource section removed) or check (it changes more: an await that makes the caller a coroutine, a guessed type, a uid that named another file, [editable] added, a setter that runs again). Without write it shows the changes; with write: true it applies them and reviews the changed files again, returning what is left. Only safe fixes unless include_check: true. Lines it cannot fix are listed with the reason. Run godot_review first and godot_check after writing.

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": "godot_fix"
  }
}

Input Schema

NameRequiredDescriptionDefault
fromNorelease the project comes from, as in godot_review
pathNoproject folder, or a file or folder inside it (relative to the server's folder; default: the current project)
filesNoonly these res:// files
rulesNoonly these rules (the fixable ones are listed above)
writeNowrite the fixes (default false: show them only)
detailNobrief (capped lists) or full (everything); default full
stamp_uidsNoalso give scenes, resources, scripts and shaders without a uid a new one (header or .uid file)
include_checkNoalso apply fixes labelled check (default false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.6.0
    • changedInput schema / properties / detail / description
      Previous value: -"brief: short output with capped lists; full: everything (default for this premium profile: full)."New value: +"brief (capped lists) or full (everything); default full"
    • addedInput schema / properties / from
      Added value: +{
      +  "description": "release the project comes from, as in godot_review",
      +  "type": "string"
      +}
    • changedInput schema / properties / path / description
      Previous value: -"The project folder, or any file or folder inside it (Godotwright walks up to project.godot). Relative paths start at the server's folder. Default: the current project."New value: +"project folder, or a file or folder inside it (relative to the server's folder; default: the current project)"
    • changedInput schema / properties / rules / description
      Previous value: -"only these rules (fixable: api/coroutine-without-await, api/freed-check-order, api/get-meta-null-default, api/infer-variant, api/multimesh-format-after-count, api/timer-start-outside-tree, quality/mojibake, quality/standalone-ternary, quality/string-signal)"New value: +"only these rules (the fixable ones are listed above)"
    • addedInput schema / properties / stamp_uids
      Added value: +{
      +  "description": "also give scenes, resources, scripts and shaders without a uid a new one (header or .uid file)",
      +  "type": "boolean"
      +}
  2. Addedv0.2.2

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, but the description adds substantial context beyond them: each fix is line-scoped and applies 'only when it looks exactly as expected', fixes are classified as 'safe' versus 'check' with concrete examples of each, and with write:true it 'reviews the changed files again, returning what is left'. It also discloses failure handling ('Lines it cannot fix are listed with the reason'), which is exactly the kind of behavioral detail annotations cannot carry.

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?

The purpose and the write/safety semantics are front-loaded, and the long rule enumeration is justified because the `rules` schema refers back to it ('the fixable ones are listed above'). The middle section is a dense run-on, but no sentence is filler; tighter sentence breaks would improve it without changing content.

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 an 8-parameter mutation tool with no output schema, the description covers the essentials: default dry-run, write behavior including post-write re-review, safe-versus-check gating, and how unfixable lines are reported. Only the return shape of the dry-run preview and the stamp_uids effect are left to the schema, which is a minor residual gap.

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 still adds real meaning to specific parameters. It explains that write also triggers a re-review and reports leftovers, that include_check enables the riskier 'check' class, and that the rule IDs the `rules` array accepts are the list given in the description itself.

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?

The first clause states a specific verb and resource: 'Apply the mechanical fixes for review findings'. It immediately distinguishes the tool from manual editing ('instead of editing them one by one') and enumerates the exact rule IDs it can fix, so an agent knows precisely what class of work this covers versus godot_review or godot_code.

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?

The description gives an explicit workflow: 'Run godot_review first and godot_check after writing', which names the prerequisite and the follow-up sibling tools. It also states the default gating behavior ('Only safe fixes unless include_check: true') and that a dry run happens without write, so the agent knows when the tool is appropriate and in what sequence.

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