Skip to main content
Glama

Check code against a real engine API

re_apicheck
Read-onlyIdempotent

Validates GDScript, C# and shader API names against real Godot version snapshots to flag renamed, unknown or too-new classes, methods and members before running Godot.

Instructions

Checks GDScript (and class names in C#, names in shaders) against name-only snapshots of the real Godot API (godot@3, godot@4.3, godot@4.7) plus the official 3→4 rename table. Reports: renamed-class/function/member/pattern (Godot 3 names in Godot 4 code with the Godot 4 replacement: KinematicBody2D, instance(), yield, deg2rad, string connect, export/onready without @), unknown-class/method/member (not in that version: a model-invented or misspelled API, with the closest real name), too-new (exists only in a newer version, or Godot 4 names in a Godot 3 project). Members are checked only where the receiver type is known (extends, typed vars, Class.new(), singletons, parameters with type hints); untyped receivers are skipped, not guessed. The Godot version comes from engine, else from project.godot, else the newest snapshot. Run it on every file an agent wrote before opening Godot.

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

Input Schema

NameRequiredDescriptionDefault
pathNoA .gd/.cs/.gdshader file or a project folder.
limitNoMax files in the result (default 300).
engineNoTarget: godot@4.7, godot@4.3, godot@3 (or just 4 / 3). Default: project.godot, else newest.
contentNoCode to check instead of path.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.25.0

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only cover the safety profile (readOnly/idempotent/closed-world), and the description adds substantial non-obvious behavior: members are checked only where the receiver type is known (extends, typed vars, Class.new(), singletons, typed params) and untyped receivers are skipped rather than guessed. That scoping rule and the version-resolution precedence are exactly the behavioral context an agent cannot infer from the schema.

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?

Purpose and the report taxonomy are front-loaded, and nearly every clause carries information (rename examples, skip rule, version fallback). It is a dense single block that could be split into a purpose line plus a report-category list for faster scanning, but there is little filler.

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?

With no output schema, the description carries the return-value burden and does so by enumerating the report categories and what each means. The remaining gap is invocation ambiguity: all four parameters are optional, yet the description never says what happens if neither path nor content is supplied, nor whether the two are mutually exclusive.

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 coverage is 100%, so each parameter is already documented, and the description's version-precedence note largely restates the engine parameter's own default. It adds nothing about limit or about the interaction between path and content, so the baseline 3 applies.

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 ("Checks") and a precisely bounded resource: GDScript/C# names/shaders against name-only snapshots of godot@3, godot@4.3, godot@4.7 plus the 3→4 rename table. It even enumerates the report categories it emits (renamed-*, unknown-*, too-new), so an agent knows exactly what class of tool this is and that it is not one of the reverse-engineering siblings.

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 an explicit trigger: "Run it on every file an agent wrote before opening Godot." It also defines the version-selection fallback chain, which is the main decision an agent must make before calling. No explicit when-not condition or named alternative is given, but the prescriptive trigger is unusually clear.

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