Skip to main content
Glama

cocos_set_native_build_config

Configure iOS or Android native build settings in Cocos Creator projects by setting orientation, icons, signing credentials, and API levels in builder.json.

Instructions

Configure iOS or Android native build settings in builder.json.

platform: 'ios' or 'android'. orientation: 'portrait' / 'landscape' / 'auto'. icon_path / splash_path: paths to PNG files (relative to project). ios_team_id: Apple Developer Team ID (10-char string). android_min_api / android_target_api: Android API levels (e.g. 21 / 30). android_use_debug_keystore=True for dev builds; set False + provide keystore_path/password/alias/alias_password for release signing. android_app_bundle: True to produce .aab instead of .apk.

All fields are optional — None leaves existing values unchanged.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_pathYes
platformYes
package_nameNo
orientationNo
icon_pathNo
splash_pathNo
ios_team_idNo
android_min_apiNo
android_target_apiNo
android_use_debug_keystoreNo
android_keystore_pathNo
android_keystore_passwordNo
android_keystore_aliasNo
android_keystore_alias_passwordNo
android_app_bundleNo
Behavior3/5

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

With no annotations provided, the description carries the full burden. It discloses that the tool modifies configuration files ('Configure... in builder.json') and that fields are optional with None preserving existing values, which is useful behavioral context. However, it doesn't mention whether this requires specific permissions, if changes are reversible, or what happens on success/failure.

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 efficiently structured: first sentence states the core purpose, followed by bullet-like explanations of each parameter group, ending with the important optionality rule. Every sentence adds essential information with zero waste, making it easy to scan and understand.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex configuration tool with 15 parameters, no annotations, and no output schema, the description does remarkably well by explaining parameter semantics thoroughly and clarifying the optional/merge behavior. The main gap is lack of information about return values or error conditions, but given the parameter-heavy nature, it's mostly complete.

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

Parameters5/5

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

With 0% schema description coverage and 15 parameters, the description compensates excellently by explaining the meaning and format of nearly all parameters: platform values ('ios' or 'android'), orientation options, path requirements, iOS team ID format, Android API level examples, keystore usage logic, and app bundle purpose. It adds significant value beyond the bare schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the specific action ('Configure'), target resource ('iOS or Android native build settings in builder.json'), and scope (all optional fields). It distinguishes itself from sibling tools by focusing on native build configuration rather than scene/node manipulation or other build-related tasks like 'cocos_set_bundle_config' or 'cocos_build'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage when configuring native build settings for iOS or Android platforms, but provides no explicit guidance on when to use this tool versus alternatives like 'cocos_set_bundle_config' or 'cocos_build'. It mentions platform-specific parameters but doesn't clarify prerequisites or exclusions.

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