Skip to main content
Glama

cocos_set_skybox

Configure a Cocos Creator scene's skybox by setting environment lighting type, HDR usage, and cube map textures to create realistic backgrounds for 3D games.

Instructions

Configure the scene's cc.SkyboxInfo.

env_lighting_type: 0=HEMISPHERE_DIFFUSE (cheap default), 1=AUTOGEN_HEMISPHERE_DIFFUSE, 2=DIFFUSEMAP_WITH_REFLECTION (PBR, needs envmap).

envmap_uuid points at a cc.TextureCube asset. Pass empty string "" to clear. Pass None to leave fields unchanged.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scene_pathYes
enabledNo
envmap_uuidNo
use_hdrNo
env_lighting_typeNo
Behavior3/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 discloses behavioral traits such as the meaning of 'env_lighting_type' values and how to clear or leave 'envmap_uuid' unchanged, which adds useful context. However, it does not cover other parameters like 'enabled' or 'use_hdr', and lacks details on permissions, side effects, or response format, leaving gaps in behavioral understanding.

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 description is appropriately sized and front-loaded, starting with the main purpose and then detailing specific parameters. Each sentence adds value without redundancy, though it could be slightly more structured (e.g., bullet points) for clarity.

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 the complexity (5 parameters, no annotations, no output schema), the description is partially complete. It explains some parameter semantics but omits others like 'enabled' and 'use_hdr', and does not describe the return value or error handling. It meets a minimum viable level but has clear gaps in coverage.

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, the description compensates by explaining the semantics of 'env_lighting_type' (with enum-like details) and 'envmap_uuid' (clear vs. leave unchanged). It does not cover 'scene_path', 'enabled', or 'use_hdr', but adds significant value for two key parameters, justifying a score above the baseline.

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 ('Configure') and target resource ('scene's cc.SkyboxInfo'), making the purpose specific and understandable. However, it does not explicitly differentiate from sibling tools like 'cocos_set_ambient' or 'cocos_set_fog', which also configure scene properties, so it lacks sibling differentiation.

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 some implied context by explaining the 'env_lighting_type' options and 'envmap_uuid' behavior, but it does not explicitly state when to use this tool versus alternatives (e.g., other skybox-related tools if any) or any prerequisites. There is no guidance on exclusions or specific scenarios for usage.

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