Skip to main content
Glama
beckettlab

Beckett — MCP for Godot

by beckettlab

write_script

Destructive

Write GDScript files to res:// with compile validation, rejecting invalid scripts before they are saved. Non-GDScript files are written as-is, and validation can be disabled if needed.

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)
Behavior5/5

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

Beyond the destructiveHint annotation, it discloses that GDScript is validated by default and refuses non-compiling code, non-.gd files are written as-is, and validate=false forces writing. These are concrete behavioral traits not inferable from 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?

Three sentences, front-loaded with the main purpose, then relevant caveats and an alternative. Every sentence adds value with no filler.

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 3-parameter write tool with annotations and no output schema, this description covers purpose, validation semantics, file-type handling, and an alternative tool. The destructiveHint annotation covers overwrite behavior, leaving no major gaps.

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?

The description supplements the schema by explaining the effect of validate (default true, refusal of invalid GDScript) and the distinction between .gd and other file types. Path is documented with an example, and content is self-evident, so coverage is adequate.

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 opens with 'Write a GDScript (or other text, e.g. .cs) file under res://', clearly stating the action, target, and scope. It differentiates from siblings like write_file (generic) and attach_script (node attachment).

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 names build_csharp as the alternative for compile-checking C#, and explains when to set validate=false. It provides context but doesn't explicitly contrast with write_file or attach_script, though the scope 'under res://' helps.

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/beckettlab/beckett-godot-mcp'

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