Skip to main content
Glama

cocos_add_slide_in

Animate UI elements or game objects by sliding them into view from specified directions at scene start. Set the final position first, then apply entrance animation.

Instructions

Slide a node in from off-screen at scene start.

from_side: "left" / "right" / "top" / "bottom". The end pose is the node's CURRENT _lpos — set the final position first, then call this to animate the entrance.

Returns {clip_uuid, clip_path, anim_component_id}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scene_pathYes
node_idYes
from_sideNobottom
distanceNo
durationNo
delayNo
rel_dirNo
Behavior3/5

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

With no annotations provided, the description carries full burden. It discloses that this creates an animation ('animate the entrance') and returns specific identifiers, but doesn't mention whether this modifies scene state permanently, requires specific permissions, has side effects, or any rate limits. The behavioral disclosure is adequate but lacks depth for a mutation 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 extremely efficient with three focused sentences: purpose statement, parameter guidance, and return value specification. Every sentence adds essential information with zero wasted words, and key information is front-loaded.

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?

Given 7 parameters with 0% schema coverage, no annotations, and no output schema, the description provides good coverage for the animation behavior and one parameter, but leaves most parameters unexplained. For a tool that likely modifies scene state (animation creation), more behavioral context would be helpful, though the return value specification partially compensates.

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?

With 0% schema description coverage and 7 parameters, the description adds significant value by explaining 'from_side' parameter semantics (enum values and purpose) and clarifying the relationship between node position and animation. However, it doesn't cover the other 6 parameters (scene_path, node_id, distance, duration, delay, rel_dir), leaving them undocumented.

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 specific action ('Slide a node in from off-screen at scene start') and identifies the resource ('node'). It distinguishes from siblings by specifying this is for slide-in animation, unlike other animation tools like 'cocos_add_fade_in' or 'cocos_add_bounce_in'.

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?

The description provides clear context for when to use it ('at scene start') and includes a crucial prerequisite ('set the final position first, then call this to animate the entrance'). However, it doesn't explicitly state when not to use it or name alternative tools for different animation types.

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/chenShengBiao/cocos-mcp'

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