Skip to main content
Glama

执行鸿蒙开发能力

capability_run

Execute a HarmonyOS development capability by its ID with the required arguments, enabling build, run, debug, and documentation tasks.

Instructions

使用前请先加载 deveco-unified-mcp SKILL(仓库 SKILL.md 为操作手册:工作流与使用规范)。按能力 ID 执行(参数校验 → 调 devecocli 或技能市场 API)。能力 ID 通过 capability_search 或 capability_list 获取。构建/运行等操作耗时长,请耐心等待;失败信息通常已含解决提示。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
argsNo能力参数(键名见能力卡的"参数"字段,如 { product: "oversea", buildMode: "release" })
capability_idYes能力 ID,如 build.project、docs.search、skills.find
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses that operations may be long-running, failure messages usually contain solution hints, and internally it performs parameter validation before calling devecocli or the skill marketplace API. However, it does not address side effects, permissions, or whether operations are reversible/ cancellable.

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?

Three sentences, each earning its place: prerequisite, execution mechanism, and operational caveats. Information is front-loaded and there is no fluff.

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 generic executor with only 2 parameters and no output schema, the description covers the essential context: prerequisite, ID sourcing, internal flow, time expectations, and failure behavior. It lacks explicit output/return format, but that is reasonable given the absence of an output schema and the tool's generic nature.

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

Parameters3/5

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

The schema already provides complete descriptions for both parameters (capability_id with examples, args with key-name guidance). The description adds minor context about sourcing capability IDs from list/search tools and the existence of parameter validation, but these are incremental over the rich 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 identifies the tool as an executor of HarmonyOS development capabilities by ID, with a specific mechanism (parameter validation → devecocli or skill marketplace API). It distinguishes itself from sibling tools by explaining that capability IDs come from capability_search or capability_list, positioning itself as the execution counterpart.

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

Usage Guidelines4/5

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

Provides explicit workflow guidance: load the SKILL first, obtain capability IDs via capability_search or capability_list, and warns about long-running build/run operations. However, it does not explicitly state when not to use this tool or name specific alternative tools beyond the ID-acquisition ones.

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/kelai141/devecocli-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server