Skip to main content
Glama

New project, script or shader from a template

godot_new

Creates Godot 4.7 projects, typed GDScript or C# scripts, and shaders in the expected structure, with templates and options for C#, renderers, and input actions; existing files are preserved.

Instructions

Starts things the way Godot 4.7 expects them. op project: a new project in an empty folder (project.godot, a main scene with a typed root and its script, an icon, .gitignore and .gitattributes; kind 2d, 3d or ui; renderer forward_plus, mobile or gl_compatibility). dotnet: true makes it a C# project: it also writes .csproj (Godot.NET.Sdk, net8.0) and .sln as Godot generates them, and sets the assembly name. op script: a typed GDScript from a template that passes the review with no errors or warnings: node, character_2d, character_3d, area_trigger, state_machine, autoload, resource, ui_control, test_gut, test_gdunit4; the input actions a template reads (move_left, jump, ...) are added to project.godot with a default key when it lacks them, in the same godot_undo entry (input_actions: false leaves project.godot alone and lists them instead). A file that ends in .cs gets the C# form instead (a partial class named after the file, with [Export] and [Signal] where they fit): node, character_2d, character_3d, area_trigger, autoload, resource, ui_control. op shader: canvas_item, spatial, particles, sky or fog (default: spatial when the main scene is 3D, else canvas_item). Nothing that exists is overwritten. Scripts and shaders are written unless write is false; godot_undo takes them back.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "op": "<op>"
    },
    "name": "godot_new"
  }
}

Input Schema

NameRequiredDescriptionDefault
opYeswhat to make
dirNoproject: the folder for the new project (created when missing)
mcpNoproject: also write a .mcp.json that starts Godotwright
baseNoscript: the class it extends, when the template allows another
fileNoscript or shader: the res:// path of the new file (.gd, or .cs for a C# script)
kindNoproject: the root of the main scene (default 2d)
nameNoproject: the game's name (default: the folder's name)
pathNoproject folder, or a file or folder inside it (relative to the server's folder; default: the current project)
writeNoscript or shader: false shows the file without writing it (default true)
dotnetNoproject: a C# (.NET) project, with <Name>.csproj and <Name>.sln
shaderNoshader: the shader type (default: spatial when the main scene is 3D, else canvas_item)
rendererNoproject: the rendering method (default forward_plus)
templateNoscript: the template (default node); for a .cs file: node, character_2d, character_3d, area_trigger, autoload, resource or ui_control
class_nameNoscript: a class_name for it (a C# class always has the name of its file)
merge_driverNoproject: also set up .gitattributes for godot_merge
input_actionsNoscript: add the input actions the template reads to project.godot when missing (default true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.0

TDQS

A4.5/5.0
Behavior5/5

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

Far beyond annotations, which only say non-read-only, non-destructive, non-idempotent. It enumerates the exact files written (project.godot, main scene, icon, .gitignore, .gitattributes), the .csproj/.sln and assembly name under `dotnet`, that input actions land in project.godot in the same godot_undo entry, and that godot_undo reverses file creation — all consistent with destructiveHint=false.

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?

Front-loaded with the op enumeration and every clause carries specification, but it is one long semicolon-chained paragraph that restates schema defaults verbatim (the shader default rule appears in both). A few sentences, such as the Godot 4.7 framing, are flavor rather than 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?

For a 16-parameter, three-operation creation tool with no output schema, the description is unusually complete on side effects and undo semantics. The minor gaps are that `base` and `merge_driver` are never mentioned and it is unstated whether write:false still registers a godot_undo entry.

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?

Schema coverage is 100%, so 3 is the baseline, but the description adds real meaning: the `.cs` path silently restricts the template list to C# variants, `input_actions: false` leaves project.godot alone and lists actions instead, and `write: false` is a dry-run. `base` and `merge_driver` are left entirely to the schema, which keeps it from a 5.

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 uses a specific verb (creates/starts) and names three resources — project, script, shader — and expands each `op` value into exactly what gets produced. The 'Nothing that exists is overwritten' line implicitly separates it from editing siblings such as godot_project_edit or godot_shader without opening any schema.

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 clearly says which `op` to pick and what each produces, plus conditional guidance ('a file that ends in .cs gets the C# form', 'write is false shows the file without writing it'). What it never states is the negative case — for example, editing an existing shader should go to godot_shader rather than here — so an agent must infer the boundary from 'nothing that exists is overwritten'.

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