Skip to main content
Glama
beckettlab

Beckett — MCP for Godot

by beckettlab

write_script

Destructive

Write GDScript files to res:// with automatic compile validation, preventing invalid code from being saved. Supports other text files like C# by writing them as-is.

Instructions

Write a GDScript (or other text, e.g. .cs) file under res://. GDScript is validated first by default — refuses code that doesn't compile; non-.gd files (C#, config…) are written as-is (use build_csharp to compile-check C#). Set validate=false to force.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesres:// path, e.g. res://player.gd
contentYes
validateNovalidate before writing (default true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.12.1
  2. Removedv1.10.0
  3. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

The description goes beyond the destructiveHint by explaining the validation-before-write behavior, refusal of non-compiling GDscript, and the as-is handling of non-.gd files. No contradiction with annotations.

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 dense sentences with no wasted words. The validation caveat is front-loaded, and the sibling routing is placed in the same breath.

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 write tool with no output schema, the description plus schema sufficiently covers the invocation: path, content, validation behavior, and the build_csharp alternative. It doesn't state overwrite semantics, but the destructiveHint already signals that risk.

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 covers path and validate, but not content. The description adds meaning by clarifying that content is GDscript or arbitrary text, and that validate controls compilation checking. This compensates for the 67% schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb ('Write'), a resource ('GDscript or other text file under res://'), and the destination. It distinguishes itself from compile-checking via build_csharp, though it doesn't explicitly contrast against write_file.

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 provides clear usage context: GDscript is validated by default, non-.gd files are written as-is, C# should be handled with build_csharp, and validate=false forces the write. This is actionable guidance, though it doesn't enumerate all sibling alternatives like write_file.

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