Skip to main content
Glama

cocos_add_tiled_layer

Attach a TiledMap layer to a node in Cocos Creator scenes for game development automation.

Instructions

Attach cc.TiledLayer (usually auto-created by TiledMap).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scene_pathYes
node_idYes
layer_nameNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations are provided, so the description carries full burden. It states 'Attach' which implies a mutation operation, but doesn't disclose whether this requires specific permissions, what happens if the layer already exists, whether it's reversible, or any rate limits. The mention of 'usually auto-created by TiledMap' adds some context but insufficient for a mutation tool with zero annotation coverage.

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, efficient sentence that communicates the core purpose without unnecessary words. It's appropriately sized for a simple tool and front-loads the essential action ('Attach cc.TiledLayer'). Every word earns its place.

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 a mutation tool with 3 parameters (0% schema coverage), no annotations, but with an output schema, the description is incomplete. It explains what the tool does at a high level but lacks parameter explanations, behavioral details, and usage context. The output schema existence means return values are covered, but other gaps remain significant.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate for three undocumented parameters. It provides no information about what 'scene_path', 'node_id', or 'layer_name' represent, their expected formats, or how they relate to attaching a TiledLayer. The description adds no parameter semantics beyond what's in the bare schema.

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 verb ('Attach') and resource ('cc.TiledLayer'), and provides context about its typical creation source ('usually auto-created by TiledMap'). It distinguishes from sibling tools like 'cocos_add_tiled_map' by focusing on layer attachment rather than map creation. However, it doesn't explicitly differentiate from other 'add' tools in the sibling list.

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?

The description provides no guidance on when to use this tool versus alternatives. It mentions TiledMap as the typical source but doesn't specify prerequisites, constraints, or when other tools (like 'cocos_add_tiled_map' or general 'cocos_add_component') would be more appropriate. Usage context is implied but not explicit.

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