Skip to main content
Glama
YasiruRF
by YasiruRF

editor_add_node

Add a node to the scene open in the Godot editor. The node appears live and selected, supports undo with Ctrl+Z, and leaves the scene unsaved until you save it.

Instructions

Adds a node to the scene open in the Godot editor. It appears live and is selected; undo with Ctrl+Z. The scene is not saved until editor_save_scene (or the user saves). Prefer this over add_node while the editor is open.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
typeYesGodot Node class, e.g. "Sprite2D"
propertiesNoGodot-syntax values, e.g. { "position": "Vector2(10, 20)", "shape": "RectangleShape2D.new()", "shape:size": "Vector2(32, 48)" }. Strings need quotes ("\"hi\""); ClassName.new() creates a Resource; "prop:subprop" reaches into a resource. Applied in order.
scene_pathNoOptional safety check: fail unless this is the scene currently open in the editor
parent_pathYesPath of the parent node in the open scene, e.g. "." or "Player"
script_pathNoAttach this script, e.g. res://scripts/coin.gd

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the burden of behavioral disclosure. It covers live appearance, selection, undo via Ctrl+Z, and non-persistence until save. It does not mention failure modes or editor availability, so it is not exhaustive, but it is unusually informative.

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?

Three short sentences, each containing essential information: the core purpose, immediate behavioral effects, and save/alternative guidance. There is no filler.

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 mutation tool with no annotations or output schema, the description covers the most important operational facts: live update, selection, undo, non-save, and sibling distinction. It omits return values and edge cases like 'editor not open', but the essentials for correct invocation are present.

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 83%, so the schema already documents most parameters in detail. The description adds no parameter-specific meaning beyond what the schema provides, which is acceptable but not additive.

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 states a specific verb and resource: 'Adds a node to the scene open in the Godot editor.' It also explicitly differentiates itself from the sibling add_node by saying 'Prefer this over add_node while the editor is open.'

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

Usage Guidelines5/5

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

The description gives clear usage context: use this when the editor is open, prefer it over add_node under those conditions, and understand that the scene isn't saved until editor_save_scene. This effectively routes the agent between competing tools.

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