Skip to main content
Glama

animtree

Manage AnimationTree graphs in the active Godot runtime: create nodes, add states and transitions, set blend values, play states, and edit properties.

Instructions

查询、控制和编辑 AnimationTree。支持创建节点、添加状态、添加转换、设置混合参数、播放状态、编辑状态属性。运行时操作,仅影响当前执行上下文。如需持久化,请编辑 .tscn 文件。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoAnimationTree 节点名称(animtree_create 时使用)
valueNo参数值(float 用于 blends,{x,y} 用于 blend spaces)
actionYes操作类型:animtree_create 创建 AnimationTree 节点;animtree_add_state 添加状态;animtree_add_transition 添加转换;animtree_set_blend 设置混合参数;animtree_play 播放状态;animtree_state_edit 编辑状态属性
parentNo父节点路径(animtree_create 时使用,默认 root)
positionNo位置 {x, y}
to_stateNo目标状态名称(animtree_add_transition 时使用)
animationNo关联的 Animation 名称(animtree_add_state 时使用)
node_pathNoAnimationTree 节点路径
conditionsNo转换条件列表(animtree_add_transition 时使用)
from_stateNo源状态名称(animtree_add_transition 时使用)
state_nameNo状态名称
sub_actionNoanimtree_state_edit 的子操作:set_position 设置状态位置(需 state_name + position);set_blend 设置混合参数(需 parameter_name + value)
xfade_timeNo交叉淡入淡出时间(秒,animtree_add_transition 时使用)
project_pathNoGodot 项目目录路径(可选,默认使用 GODOT_PROJECT_PATH 环境变量或当前目录)
load_autoloadsNo是否加载 Autoload 上下文(默认 true)
parameter_nameNo参数名称
tree_root_typeNo根节点类型(animtree_create 时使用,默认 AnimationNodeStateMachine)
animation_player_pathNoAnimationPlayer 的 NodePath(animtree_create 时使用)
Behavior4/5

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

With annotations that only show readOnlyHint=false, idempotentHint=false, and destructiveHint=false, the description adds meaningful behavioral context: operations are runtime-only and do not persist unless the user separately edits .tscn files. This prevents the agent from assuming scene changes are permanent. It does not disclose every side effect, but the persistence boundary is the most important behavior and is clearly stated.

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 compact and front-loaded with the core purpose, followed by a concise list of supported operations and then the key scoping note about runtime-only behavior and persistence. The list of operations overlaps with the action enum in the schema, but remains a helpful summary without excessive redundancy.

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?

Despite 18 parameters and action-dependent field usage, the description does not explain which parameters are required or how they combine for each action. It identifies broad capabilities and runtime scope, but the agent must rely entirely on schema parameter descriptions and enums to construct correct calls. There is also no output schema or return behavior description, which is a notable gap for a complex orchestration tool.

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 the schema already documents all parameters. The description mostly restates operation names and general capabilities, providing little beyond the parameter descriptions themselves. It does not add new semantics such as default behaviors, required parameter clusters, or validation rules.

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 set ('查询、控制和编辑') with an explicit resource (AnimationTree) and enumerates concrete capabilities: creating nodes, adding states and transitions, setting blend parameters, playing states, and editing state properties. This distinguishes it from generic 'animation' or 'scene' tools by scoping it to AnimationTree runtime manipulation and explicitly separating persistence to .tscn files.

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 explicitly states that this is a runtime operation that only affects the current execution context, which tells the agent when to use it. It also gives a clear when-not/alternative: if persistence is needed, edit the .tscn file instead. This is actionable guidance beyond the input schema.

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/wgt19861219/godot-mcp-enhanced'

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