Skip to main content
Glama

Validate scripts

script_validate

Validate GDScript syntax across a single file or entire project, reporting errors with file and line. Check scripts after editing to catch problems before running the game, without slowing down your workflow.

Instructions

Parse-check GDScript — one file or the whole project — and report errors with file and line. Run this after editing scripts and before running the game; it is much faster than launching.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNoSingle script to check. Omit to check every .gd in the project.
projectNoGodot project folder (the one with project.godot). Optional if the server was started with --project.
Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses the tool's action (parse-check), scope (one file or whole project), and a key performance characteristic (faster than launching). It implies read-only behavior via 'parse-check', which is sufficient for a simple validation tool.

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

Conciseness5/5

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

Two sentences, front-loaded with the core action and resource. Every word earns its place, with no filler or redundancy.

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?

The tool is simple (2 optional parameters, no output schema). The description covers the main action, scope, and recommended usage scenario. Combined with the schema, it provides everything an agent needs to invoke the tool correctly.

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 baseline is 3. The description adds minimal semantic meaning beyond the schema, only slightly clarifying the path/project relationship ('one file or the whole project'), which is already covered by the schema's own descriptions.

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 uses a specific verb 'Parse-check' with a resource 'GDScript' and states the outcome 'report errors with file and line'. It clearly distinguishes itself from sibling tools like script_create (creation) and run_project (execution).

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 explicitly recommends running after editing scripts and before running the game, and notes it is faster than launching. This provides strong contextual guidance, though it does not explicitly name alternative tools or when-not-to-use scenarios.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jmsansan/godot-assistant'

If you have feedback or need assistance with the MCP directory API, please join our Discord server