Skip to main content
Glama

cocos_set_design_resolution

Configure screen resolution settings for multi-screen game adaptation in Cocos Creator projects, adjusting width, height, and scaling options to ensure consistent display across different devices.

Instructions

Set design resolution for multi-screen adaptation.

fit_width+fit_height=SHOW_ALL; only fit_width=FIT_WIDTH; only fit_height=FIT_HEIGHT.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_pathYes
widthNo
heightNo
fit_widthNo
fit_heightNo
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 of behavioral disclosure. While 'Set' implies a mutation operation, the description doesn't clarify what 'design resolution' affects, whether changes are reversible, what permissions are needed, or what happens to existing settings. The fit mode explanation adds some context but doesn't cover important behavioral aspects like side effects or error conditions.

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 brief and front-loaded with the main purpose. The second sentence efficiently explains the fit mode combinations. There's no wasted text, though the fit mode explanation could be slightly clearer. The structure is appropriate for the tool's complexity.

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?

For a mutation tool with 5 parameters, 0% schema description coverage, no annotations, and no output schema, the description is inadequate. It explains the basic purpose and fit modes but doesn't cover parameter meanings, behavioral implications, error handling, or what the tool returns. Given the complexity and lack of structured documentation, the description should provide much more context.

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?

With 0% schema description coverage and 5 parameters (1 required), the description provides minimal parameter information. It mentions fit_width and fit_height with their interaction modes, but doesn't explain project_path, width, height, or the practical meaning of these parameters. The description doesn't compensate for the schema's lack of descriptions, leaving most parameters semantically unclear.

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 tool's purpose: 'Set design resolution for multi-screen adaptation.' It specifies the verb ('Set') and resource ('design resolution') with a clear context ('multi-screen adaptation'). However, it doesn't explicitly distinguish this tool from its many siblings, which all appear to be Cocos-related operations but have different functions.

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 fit modes (SHOW_ALL, FIT_WIDTH, FIT_HEIGHT) but doesn't explain when to choose one over another or reference any sibling tools as alternatives. There's no context about prerequisites or typical use cases.

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