Skip to main content
Glama

cocos_set_node_scale

Adjust the scale of a node in Cocos Creator scenes by specifying X, Y, and Z scaling factors to resize game objects programmatically.

Instructions

Set a node's local scale.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scene_pathYes
node_idYes
sxYes
syYes
szNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the action ('Set') but doesn't clarify if this is a destructive mutation, requires specific permissions, has side effects, or details the response format. This is a significant gap 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, direct sentence with zero wasted words, making it highly efficient and front-loaded. Every word contributes to the core purpose, achieving optimal conciseness for such a simple statement.

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 the tool has an output schema (which helps), but with 5 parameters at 0% schema coverage and no annotations, the description is inadequate. It doesn't explain parameter meanings, behavioral traits, or usage context, leaving too much undefined for a mutation tool with multiple inputs.

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 parameters are undocumented in the schema. The description mentions 'node's local scale' but doesn't explain parameters like scene_path, node_id, sx, sy, or sz (e.g., that sx, sy, sz are scale factors, sz defaults to 1). It adds minimal value beyond the tool name, failing to compensate for the coverage gap.

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 'Set a node's local scale' clearly states the action (set) and target resource (node's local scale), making the purpose immediately understandable. It distinguishes from siblings like 'cocos_set_node_position' or 'cocos_set_node_rotation' by specifying scale, though it doesn't explicitly differentiate beyond the obvious parameter differences.

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, prerequisites, or context. It lacks any mention of related tools (e.g., other node transformation tools) or scenarios where setting scale is appropriate, leaving usage entirely implicit.

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