Skip to main content
Glama

load_sprite

Set a sprite's texture by loading a texture resource from a path onto a specified Sprite2D or TextureRect node in a Godot scene.

Instructions

Load a texture onto a Sprite2D node.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
node_pathYesNode path (Sprite2D or TextureRect)
scene_pathYesPath to .tscn file
texture_pathYesTexture resource path (e.g. "res://icon.svg")
Behavior2/5

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

With no annotations, the description carries the full burden of disclosing side effects. It only states the core operation; it does not mention whether the scene file is saved, whether existing textures are overwritten, or any error behavior. This is a significant gap for a mutating tool.

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 a single short sentence that conveys the essential action without redundancy. It is front-loaded and appropriately brief for a simple tool.

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?

The tool lacks annotations and an output schema, yet the description does not mention return values or side effects. It also fails to note the TextureRect compatibility from the schema, making the overall context incomplete for an agent to understand the full effect.

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?

All three parameters are fully described in the schema (100% coverage), so the description adds minimal value beyond the schema. The parameter names and schema descriptions are self-explanatory, and the description does not clarify any additional semantics.

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 action ('Load a texture') and the target resource ('Sprite2D node'), using a specific verb. However, it omits that the node can also be a TextureRect as shown in the schema, so it's not fully precise.

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 guidance is given on when to use this tool vs alternatives like create_image_texture or editor_set_*_param tools. The verb 'load' implies usage in texture assignment contexts, but no explicit context, exclusions, or alternatives are provided.

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/yanhuifair/Godot-MCP'

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