Skip to main content
Glama

Upgrade a Godot 3 project to Godot 4

port_upgrade

Converts a Godot 3.x project into a Godot 4 copy with API, scene, shader, and project-setting updates, while reporting items that need manual migration.

Instructions

Converts a Godot 3.x project to Godot 4 as a COPY (the source is never modified): the official rename table for classes, builtin types, functions, properties, signals, enums, colors, theme overrides, project settings and shader names; export/onready/tool → @annotations with typed hints; yield → await; instance → instantiate; string connect/disconnect/emit_signal → signal.connect(callable)/emit; PoolArray → PackedArray; OS time functions → Time; .shader → .gdshader (references updated); scenes to format 3 with renamed node types and properties; project.godot to config_version 5 with the input map keys. What cannot be converted mechanically is listed with file and line and how to do it: setget, funcref, move_and_slide with arguments, var velocity in CharacterBody scripts, Tween nodes, binds, RPC keywords, networking, SCREEN_TEXTURE, window functions. action:"check" only reports. Follow with re_apicheck on the copy and open it in Godot 4.

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": {
      "path": "<path>"
    },
    "name": "port_upgrade"
  }
}

Input Schema

NameRequiredDescriptionDefault
outNoapply: new or empty folder for the copy (default: workspace/upgrades/<name>-godot4).
pathYesGodot 3 project folder (has project.godot with config_version=4).
limitNoMax items per list (default 300).
actionNocheck (default): report what would change. apply: write the converted copy.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.25.0

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the annotations, it discloses the most important behavioral trait: the operation writes a new copy and leaves the source untouched, which is exactly the context needed given readOnlyHint=false and destructiveHint=false. It also proactively lists what cannot be converted mechanically (setget, funcref, move_and_slide with arguments, Tween nodes, RPC keywords, SCREEN_TEXTURE, window functions) and promises file-and-line reporting for those items.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The key constraint (converts as a COPY, source unmodified) is correctly front-loaded, but the middle is a long semicolon-chained enumeration of rename rules that an agent does not need in order to select or call the tool. The list of unmechanical cases is more valuable than the list of mechanical ones, which could have been compressed.

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 mutation tool with no output schema and no annotations carrying safety detail, the description covers what is produced (a converted copy at out or the default workspace path), what is reported (unconvertible items with file and line plus remediation), and the recommended verification step. Only the shape of the returned result (structured lists subject to limit) is left implicit.

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 path, out, limit and action are already documented inline. The description reinforces the copy-destination behavior and the check/apply distinction, but adds no new semantics such as path validation rules, what happens on a non-empty out folder, or how limit interacts with the reported change list.

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 description names a specific verb and resource (converts a Godot 3.x project to Godot 4) and immediately scopes it as a COPY that never modifies the source. It then enumerates the exact conversions covered (rename table, annotations, yield/await, Pool*Array → Packed*Array, .shader → .gdshader, format 3 scenes, config_version 5) and names the sibling re_apicheck as the follow-up step, so an agent can tell this apart from a generic conversion 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?

It gives explicit workflow guidance: action:"check" only reports, apply produces the copy, and the agent should follow with re_apicheck and open the result in Godot 4. It does not explicitly state when to prefer this over neighboring tools such as port_plan or port_draft, but the check-then-apply sequencing is clear enough to drive correct invocation.

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