Skip to main content
Glama
beckettlab

Beckett — MCP for Godot

by beckettlab

validate_script

Read-only

Validate GDScript syntax and API usage before writing, catching hallucinated calls and class_name conflicts. Pass source content or res:// path; include path for existing files to detect real duplicates.

Instructions

Parse/compile GDScript WITHOUT writing it. Pass 'content' (source) or 'path' (res://). Returns whether it compiles — use before write_script to catch hallucinated APIs. Scripts whose class_name is already registered validate correctly (v1.9; the old false 'hides a global class' error is fixed); when validating 'content' destined for an existing file, ALSO pass its 'path' so a real cross-file class_name duplicate is still reported as the error it is.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNores:// path — the file to validate, or (with content) the file the content is destined for
contentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.14.0
    • changedInput schema / properties / path / description
      Previous value: -"res:// path — the file to validate, or (with content) the file the content is destined for"New value: +"res:// path — the file to validate, or (with content) the file the content is destined for"
  2. Addedv1.12.1
  3. Removedv1.10.1
  4. Changed1 schema field changedv1.9.1
    • changedInput schema / properties / path / description
      Previous value: -"res:// path to validate an existing file"New value: +"res:// path — the file to validate, or (with content) the file the content is destined for"
  5. First observedv1.0.0

TDQS

A5/5.0
Behavior5/5

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

Annotations already mark the tool as read-only, but the description adds meaningful behavior: it validates without writing, returns compile status, handles already-registered class_name correctly, and explains the v1.9 fix for the old false positive. This gives an agent important expectations about edge cases and version-specific behavior.

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?

The description is information-dense with no filler. The core fact that this tool does not write is front-loaded, followed by parameter usage and then a necessary edge-case caveat. Every clause earns its place without being verbose.

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 two-parameter tool with read-only annotations, the description covers what the tool returns, when to use it, how to use both parameters independently and together, and a notable behavioral quirk. Nothing needed to invoke it correctly appears to be missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 50% because content has no description, but the description compensates fully. It explains that content is the source to validate, path is the res:// file to validate or the destination when content is supplied, and that passing both catches cross-file class_name duplicates. This adds meaning the schema lacks.

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 states a specific verb and resource: parse/compile GDScript without writing it. It clearly distinguishes itself from write_script by emphasizing that this is a pre-write validation step, and 'Returns whether it compiles' makes the core purpose unmistakable.

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?

The description explicitly says to use this tool before write_script to catch hallucinated APIs, giving a concrete usage condition. It also explains the special case where content is destined for an existing file and path must be passed, which is actionable guidance beyond the schema.

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