Skip to main content
Glama

启动 Creator 构建

cocos_build_start
Destructive

Start a build for a registered Cocos Creator project via Creator CLI and return a task ID; requires local GUI and installed platform tools.

Instructions

使用 Creator CLI 构建已注册工程并返回任务 ID;构建需要本机 GUI 和已安装的平台工具

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "projectId": "<projectId>",
      "creatorPath": "<creatorPath>",
      "platform": "<platform>"
    },
    "name": "cocos_build_start"
  }
}

Input Schema

NameRequiredDescriptionDefault
optionsNo
platformYes
projectIdYes
creatorPathYes
operationIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.1
    • addedInput schema / properties / operationId
      Added value: +{
      +  "maxLength": 128,
      +  "minLength": 1,
      +  "type": "string"
      +}
  2. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, openWorldHint=true, and readOnlyHint=false, so the safety profile is covered. The description adds genuinely new context: the operation is asynchronous (returns a task ID) and depends on a local GUI plus installed platform toolchains. It does not explain what the destructive flag actually affects, such as overwriting prior build output, which would have been valuable.

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?

A single compact sentence with the action front-loaded followed by prerequisites; no filler. Brevity is appropriate for the surface text, though the compactness is partly the cause of the semantic gaps.

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 destructive, open-world, asynchronous mutation with five undocumented parameters (including a nested free-form options object) and no output schema, the description is far too thin. It should at minimum explain what `options` accepts, what `operationId` is for, and how the returned task ID feeds cocos_build_status.

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% across five parameters, including a free-form `options` object with additionalProperties, so the schema provides no semantics at all. The description only hints obliquely at projectId ('已注册工程'), creatorPath ('Creator CLI'), and platform ('已安装的平台工具'), and says nothing about `options` or `operationId`.

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 names a specific verb and resource: build a registered project via Creator CLI and return a task ID. The returned task ID implicitly distinguishes it from siblings like cocos_build_status or cocos_build_cancel, though no sibling is named explicitly. An agent can tell what it does without opening the schema.

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?

Usage is only implied by the verb 'build' plus a stated prerequisite (local GUI and installed platform tools must exist). There is no explicit when-to-use vs when-not guidance and no pointer to cocos_build_status, cocos_build_cancel, or cocos_build_recover for follow-up actions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.