Skip to main content
Glama
lightblink

Cocos Creator Local MCP

by lightblink

Create Sprite Node

cocos_local_create_sprite_node

Creates or ensures a sprite node in a Cocos Creator scene by attaching a Sprite component and assigning a specified SpriteFrame asset, optionally saving the scene.

Instructions

Ensure a scene node exists, attach a Sprite component, resolve a SpriteFrame asset, assign it, and optionally save the scene.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
portNo
spriteYes
openSceneNo
saveSceneNo
scenePathNoassets/scenes/Main.scene
timeoutMsNo
projectRootYes
openSceneDelayMsNo
Behavior3/5

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

With no annotations, the description carries full burden. It outlines key steps (ensure node, attach, resolve, assign, save) but omits behavior on conflicts (e.g., node already exists), error handling, or side effects. The description is adequate but lacks depth.

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 single-sentence description is concise and front-loaded with key actions. It efficiently communicates the main purpose, though it could be slightly expanded for clarity on optional steps. No wasted words.

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?

Given 8 parameters, nested objects, no output schema, and no annotations, the description is too brief. It fails to explain parameters like port, timeout, openSceneDelayMs, or what happens on success. The tool's complexity demands more detail.

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 low (~25%). The description adds meaning to 'sprite.assetPath' by specifying it resolves a SpriteFrame. However, other parameters (e.g., port, timeout, saveScene) lack explanation. The description only partially compensates for low coverage.

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 clearly states the verb 'create/ensure' and the resource 'sprite node', detailing multiple steps: ensure node exists, attach Sprite component, resolve asset, assign, optionally save. It distinguishes from siblings like 'cocos_local_assign_sprite_frame' which presumably only assigns.

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

Usage Guidelines3/5

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

The description implies the tool is for creating a sprite node within a scene but provides no explicit guidance on when to use versus alternatives (e.g., 'cocos_local_place_sprite_assets') or when not to use. No exclusions or conditions are stated.

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/lightblink/cocos-creator-local-mcp'

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