Skip to main content
Glama
sterion66

io.github.sterion66/godot

by sterion66

Create Code Template

godot_create_code_template

Create GDScript code from predefined templates for CharacterBody2D, CharacterBody3D, node, resource, or state machine scripts. Specify template type and class name to generate ready-to-use Godot scripts.

Instructions

Create code from a template.

Template types:

  • character_body_2d: CharacterBody2D script

  • character_body_3d: CharacterBody3D script

  • node: Basic node script

  • resource: Custom resource script

  • state_machine: State machine script

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesName for the class
project_pathNoOptional project root
template_typeYesType of template

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

Annotations provide only the title and no behavioral hints. The description says 'Create code from a template' but does not disclose whether the tool writes a file, returns code in the output, overwrites existing files, or how project_path affects behavior. For a creation tool with no annotation coverage, this leaves important behavioral traits undisclosed.

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 compact, front-loaded with the core action, and uses a clean list for the template types. Every sentence or list item contributes information without fluff.

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?

The tool is simple and has an output schema, so return-value documentation is not required from the description. Still, gaps remain around whether code is written to disk or returned, what happens with project_path, and when to choose this over godot_create_script. It is minimally viable but not fully complete.

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 schema already describes all three parameters at 100% coverage, so the baseline is 3. The description adds real value by enumerating the allowed template_type values and mapping them to concrete script types, which is essential for correctly invoking the tool.

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 action and resource: 'Create code from a template,' and the template-type list clarifies variants. However, it does not explicitly distinguish itself from sibling tools like godot_create_script or godot_create_resource, so it stops short of full differentiation.

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?

The template-type list implies when the tool is appropriate, but the description provides no explicit 'use this when' guidance, no exclusions, and no mention of alternatives. With many sibling creation tools present, an agent still has to infer how this differs from godot_create_script or godot_create_scene.

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/sterion66/godot-mcp-server'

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