Skip to main content
Glama

create_script

Generate a new GDScript file in a Godot project from a template or inline content, with optional overwrite support for existing scripts.

Instructions

Create a new GDScript file in the project from a template or inline content

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentNoOptional full file content (overrides template, max 100KB)
filePathYesScript path relative to project, e.g. scripts/player.gd
templateNoOptional template: empty|Node|Node2D|Node3D|CharacterBody2D|autoload (defaults to Node)
overwriteNoAllow overwriting an existing file (defaults to false)
projectPathYesPath to the Godot project directory

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does disclose the core write behavior (a new file is placed in the project), but says nothing about error handling when the file exists, return value, or interaction with the overwrite flag beyond what the schema already documents.

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?

A single front-loaded sentence with zero filler; every clause (verb, resource, location, input modes) earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a five-parameter mutation tool with no annotations and no output schema, the one-liner covers the basic action but omits error behavior, what is returned, and any prerequisite context. Adequate but with clear gaps given the absence of structured safety metadata.

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 all five parameters are already documented in the schema. The phrase 'from a template or inline content' summarizes the content/template distinction but adds no format, default, or constraint detail beyond the schema.

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?

States a specific verb (create) and resource (GDScript file) and even names the two input mechanisms (template or inline content). It is clear enough to separate from create_scene, though it never explicitly contrasts with close siblings like attach_script or check_script.

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

Usage Guidelines2/5

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

No statement of when to use this tool versus alternatives such as attach_script, and no prerequisites (e.g., whether the project must already exist). Usage is only loosely implied by the verb 'create'.

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