Skip to main content
Glama

create_script

Generate a GDScript file in a Godot 4 project with support for specifying base class, class name, method stubs, or full source code.

Instructions

Create a GDScript file from a template

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourceNoFull source code (overrides template)
extendsNoBase class to extend. Default: Node
methodsNoMethod stubs to include
classNameNoOptional class_name
scriptPathYesScript file path (relative to project)
projectPathYesGodot project path
Behavior2/5

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

With no annotations, the description must carry the full burden. It fails to disclose critical behaviors: whether the file is created immediately, overwrites existing files, what template is used, how parameters like 'extends' or 'methods' affect the output, and any side effects. This is inadequate for a creation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single 6-word sentence, which is concise and to the point. It avoids unnecessary verbiage. However, it could be slightly expanded with key behavioral cues without losing conciseness.

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

Completeness2/5

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

Given 6 parameters, no output schema, and no annotations, the description is insufficient. It does not explain return values, error handling, or the difference between template and custom source. For a tool creating files, users need to know success indicators and potential issues.

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 the baseline is 3. The description adds no extra meaning beyond the structured definitions; it only mentions 'from a template' but does not clarify how the template interacts with parameters like 'source' or 'extends'. Thus, it meets but does not exceed the baseline.

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 clearly states the tool's purpose: 'Create a GDScript file from a template.' The verb 'Create' and resource 'GDScript file' are specific. However, it does not explicitly differentiate from sibling tools like 'write_file' or 'attach_script', but the specialization to GDScript from template provides distinction.

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 guidelines are provided on when to use this tool versus alternatives (e.g., write_file for arbitrary files, attach_script for attaching to nodes). The description lacks any context about prerequisites, when to use template vs custom source, or when not to use it.

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/beremaran/godot-agent-loop'

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