Skip to main content
Glama

cocos_add_page_view

Add swipeable page navigation to Cocos Creator scenes. Configure horizontal or vertical scrolling direction, page turning speed, and scroll threshold for interactive UI components.

Instructions

Attach cc.PageView (swipeable pages). direction: 0=H, 1=V.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scene_pathYes
node_idYes
content_idNo
directionNo
scroll_thresholdNo
page_turning_speedNo

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 the full burden. It mentions the tool attaches a PageView component but doesn't disclose behavioral traits like whether it modifies existing nodes, requires specific permissions, handles errors, or what the output contains. The description adds minimal context beyond the basic action.

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 concise with two short sentences that directly state the tool's function and clarify one parameter. There is no wasted text, and it is front-loaded with the core purpose.

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 6 parameters with 0% schema coverage, no annotations, and an output schema (which reduces need to describe returns), the description is incomplete. It fails to explain most parameters, lacks behavioral context, and provides no usage guidelines, making it inadequate for effective tool selection and invocation.

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. It only explains the 'direction' parameter (0=H, 1=V), leaving the other 5 parameters (scene_path, node_id, content_id, scroll_threshold, page_turning_speed) undocumented. This partial coverage is insufficient for a tool with 6 parameters.

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 states a specific action ('Attach cc.PageView') and resource ('swipeable pages'), making the purpose clear. It distinguishes from siblings by specifying a unique UI component (PageView), though it doesn't explicitly contrast with similar tools like 'cocos_add_scroll_view'.

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 provided on when to use this tool versus alternatives, such as 'cocos_add_scroll_view' or 'cocos_add_page_view_indicator'. The description lacks context about prerequisites, typical use cases, or exclusions, leaving the agent to infer usage from the tool name alone.

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