Skip to main content
Glama

script_create

Create a new GDScript file in your Godot project. Overwrites existing files and triggers a filesystem scan.

Instructions

Create a new GDScript source file (.gd) on disk.

Writes content to a .gd file in the project. Overwrites if it exists. Triggers a filesystem scan. New files include data.cleanup.rm listing the .gd + .gd.uid sidecar; overwrite omits it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesres:// path (e.g. "res://scripts/player.gd").
contentNoGDScript source. Empty creates a blank file.
session_idNoOptional Godot session to target. Empty = active session.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations, the description carries full burden. It discloses key behaviors: writes to disk, overwrites existing files, triggers a filesystem scan, and details sidecar file handling (cleanup.rm listing for new files, omission for overwrites). It does not cover permission requirements or error impacts, but provides solid transparency.

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 three sentences, each serving a distinct purpose: stating core action, specifying write behavior, and detailing sidecar nuances. It is front-loaded with the primary goal and efficient, with no extraneous information.

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?

Given 3 parameters and an output schema, the description covers creation, overwriting, filesystem scan, and sidecar behavior comprehensively. It omits error handling or return value details, but the output schema likely handles those. Overall adequate for a write tool with moderate complexity.

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 baseline is 3. The description adds minor value: clarifies path format ('res://'), explains that empty content creates a blank file, and notes session_id targets a Godot session. This matches or slightly extends schema descriptions but does not significantly compensate beyond baseline.

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 clearly states the tool creates a new GDScript source file (.gd) on disk, with a specific verb ('Create') and resource. It includes details about writing content, overwriting, and triggering a filesystem scan, distinguishing it from sibling tools like script_patch or script_manage.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for creating .gd files and mentions overwriting behavior, but it lacks explicit guidance on when not to use this tool or alternatives (e.g., script_patch for modifications). No exclusions or context for choosing between siblings.

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/hi-godot/godot-ai'

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