Skip to main content
Glama

Check with real Godot

godot_check
Idempotent

Run a Godot project headless to import, load every script and scene, compile all shaders, and optionally run frames; returns errors and warnings as res://file:line with printed output.

Instructions

Run Godot 4.7 headless on the project: import, load and instantiate every script and scene, compile every .gdshader, and optionally run the main scene (or scene) for run_frames frames and return what it printed (put print() calls in the code you test). Returns the errors and warnings as res://file:line, the totals and the printed output; an error result when Godot reports an error or is not installed. shaders: true also draws every shader on the GPU (needs a display or xvfb-run), for what only the driver rejects. Scenes and scripts are not changed: Godot updates its cache in .godot/, where the checker script also goes. Sends progress when the client asks for it; cancelling the call stops Godot. Slower than godot_review, so review first. compare_godot (a second Godot binary, or next for $GODOT_NEXT) runs the same check on a temporary copy and returns only the errors and warnings that differ, e.g. what breaks in a 4.8 beta. To drive input use godot_play; for unit tests godot_test.

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_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoproject folder, or a file or folder inside it (relative to the server's folder; default: the current project)
sceneNorun this scene (a res:// path) instead of the main scene
shadersNoalso draw every shader on the Compatibility renderer, for what only the GPU driver rejects (needs a display or xvfb-run)
run_framesNoalso run the main scene for this many frames and return its output (default 0; 120 when scene is given)
compare_godotNosecond Godot binary to diff against, or "next" for $GODOT_NEXT
timeout_secondsNotimeout per Godot run (default 600)

Output Schema

NameRequiredDescriptionDefault
okYes
errorsYes
framesNo
scenesNo
scriptsNo
shadersNo
findingsYes
warningsYes
truncatedYes
shaderFilesNo
godotVersionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.6.0
    • addedInput schema / properties / compare_godot
      Added value: +{
      +  "description": "second Godot binary to diff against, or \"next\" for $GODOT_NEXT",
      +  "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)"
    • addedInput schema / properties / shaders
      Added value: +{
      +  "description": "also draw every shader on the Compatibility renderer, for what only the GPU driver rejects (needs a display or xvfb-run)",
      +  "type": "boolean"
      +}
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "errors": {
      +      "type": "number"
      +    },
      +    "findings": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "count": {
      +            "type": "number"
      +          },
      +          "file": {
      +            "type": "string"
      +          },
      +          "line": {
      +            "type": "number"
      +          },
      +          "message": {
      +            "type": "string"
      +          },
      +          "rule": {
      +            "type": "string"
      +          },
      +          "severity": {
      +            "enum": [
      +              "error",
      +              "warning",
      +              "info"
      +            ],
      +            "type": "string"
      +          },
      +          "source": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "severity",
      +          "message"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "frames": {
      +      "type": "number"
      +    },
      +    "godotVersion": {
      +      "type": "string"
      +    },
      +    "ok": {
      +      "type": "boolean"
      +    },
      +    "scenes": {
      +      "type": "number"
      +    },
      +    "scripts": {
      +      "type": "number"
      +    },
      +    "shaderFiles": {
      +      "type": "number"
      +    },
      +    "shaders": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "compiled": {
      +          "type": "number"
      +        },
      +        "errors": {
      +          "type": "number"
      +        },
      +        "notReached": {
      +          "type": "number"
      +        },
      +        "parsed": {
      +          "type": "number"
      +        },
      +        "renderer": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "compiled",
      +        "parsed",
      +        "notReached",
      +        "errors",
      +        "renderer"
      +      ],
      +      "type": "object"
      +    },
      +    "truncated": {
      +      "type": "number"
      +    },
      +    "warnings": {
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "ok",
      +    "errors",
      +    "warnings",
      +    "findings",
      +    "truncated"
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changedv0.1.1
    • changedInput schema / properties / path / description
      Previous value: -"Project directory or a path inside it (default: the current project)."New 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."
  3. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations declare readOnlyHint=false, and the description explains exactly why: 'Scenes and scripts are not changed: Godot updates its cache in .godot/, where the checker script also goes' — resolving the apparent write without contradicting the annotation. It further discloses progress reporting, cancellation semantics ('cancelling the call stops Godot'), error-result conditions (Godot error or not installed), and the xvfb/display prerequisite for GPU shader drawing. This is substantially more than the annotations 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 core action is front-loaded and every sentence carries information, but the paragraph is long and a few clauses restate schema content (the xvfb/display caveat for shaders, the run_frames defaults). A light trim of the duplicated parameter caveats would make it tighter without losing anything.

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 six-parameter tool that shells out to an external binary, the description covers the return shape (res://file:line, totals, printed output), failure behavior, filesystem side effects, prerequisites, progress/cancellation, and the differential mode. An output schema exists, yet the extra detail on result format and error results is still the right level for an agent deciding whether to call it.

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, but the description adds genuine meaning: run_frames is framed around putting print() calls in the tested code, and compare_godot is explained as running 'the same check on a temporary copy' returning only differing errors, 'e.g. what breaks in a 4.8 beta'. That is behavioral semantics the schema's one-line property descriptions do not convey.

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 opening sentence names the specific engine version, the execution mode (headless), and the exact operations: import, load/instantiate every script and scene, compile every .gdshader, optionally run the main scene. That is a concrete verb+resource+scope statement, and the closing sentences explicitly separate it from siblings (godot_review, godot_play, godot_test), so an agent can pick it without opening another 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?

It gives an explicit ordering rule ('Slower than godot_review, so review first'), names the alternative tools for adjacent jobs ('To drive input use godot_play; for unit tests godot_test'), and describes when the optional heavy mode applies ('for what only the driver rejects'). Both when-to-use and when-to-prefer-something-else are covered.

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