Skip to main content
Glama

Decode Godot binary exports

re_decode
Read-onlyIdempotent

Converts compiled GDScript, binary resources and project.binary from Godot exports back into editable .gd, .tscn, .tres and project.godot files with exact names and structure.

Instructions

Turns what a Godot export leaves into editable text: compiled GDScript (.gdc: Godot 3 bytecode v10–13 and Godot 4.3+ binary tokens v100/v101, zstd-compressed or not) back to .gd with indentation, binary resources and scenes (RSRC/RSCC .scn/.res, also under .godot/exported with their .remap targets) to .tscn/.tres with ext/sub resources, node tree, groups, instances and signal connections, and project.binary to project.godot. Give the folder re_archive extracted from the .pck. Names, constants and structure are exact; comments and the original formatting are not in the export. Encrypted scripts (.gde) are reported, never decrypted.

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

Input Schema

NameRequiredDescriptionDefault
outNoOutput folder (default workspace/decoded/<name>).
pathYesA .gdc/.scn/.res/project.binary file or an extracted pack folder.
limitNoMax files (default 2000).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.25.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/idempotent/non-destructive, yet the description still adds substantive behavior: names/constants/structure are exact, comments and original formatting are lost in the export, and encrypted scripts are never decrypted. That lossiness and encryption caveat are exactly the kind of detail the annotations cannot convey. Minor gap: it doesn't say what happens on unsupported files or partial failures.

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 action verb and conversion mapping are front-loaded in the first sentence, with caveats (lossiness, encryption) trailing in a logical order. The parenthetical version/extension lists are dense but each clause carries real decoding scope information; only the format enumeration is slightly overpacked.

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, annotation-rich tool with no output schema, the description covers input scope, what output artifacts look like, fidelity limits, and encryption handling — enough to invoke it correctly. It stops short of describing failure modes or how a mix of file types in one folder is handled.

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 schema already documents path, out and limit. The description only adds the provenance hint that path should be the re_archive output folder, plus inline format examples that duplicate the schema's file-extension list. Baseline 3 is appropriate since the schema carries the parameter burden.

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?

Uses a concrete verb ("Turns ... into editable text") and then enumerates exactly which resources are converted: .gdc bytecode (v10–13, v100/v101) to .gd, RSRC/RSCC .scn/.res to .tscn/.tres, and project.binary to project.godot. An agent can distinguish this from re_binary, re_archive or re_extract purely from the description.

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 a direct precondition/workflow cue — "Give the folder re_archive extracted from the .pck" — which tells the agent to chain it after extraction. It also carves out .gde files as out of scope (reported, never decrypted), though it names no alternative tool for those and states no explicit when-not conditions beyond that.

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