Skip to main content
Glama

检索官方文档

docs_search

Search the HarmonyOS documentation set to get accurate details on APIs, components, and concepts while coding ArkTS/ArkUI apps.

Instructions

使用前请先加载 deveco-unified-mcp SKILL(仓库 SKILL.md 为操作手册:工作流与使用规范)。全文检索本地 2000+ 万字 HarmonyOS 官方文档(开发指南/API参考/最佳实践/FAQ/版本说明/变更预告)。编写 ArkTS/ArkUI 代码前遇到不确定的 API、组件、概念时先查文档。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo返回条数
catalogNo文档分类all
keywordsYes搜索关键词数组,如 ["@State", "装饰器"] 或 ["List", "懒加载"]
Behavior3/5

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

With no annotations, the description carries the full transparency burden. It discloses the corpus scope and included document categories but does not describe result behavior (e.g., snippets, paths, relevance ordering) or any side effects. This is adequate but not more.

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 only three sentences: prerequisite, function, and usage context. Every sentence contributes meaningful operational guidance, and the most important prerequisite is front-loaded. No wasted words.

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 search tool with no output schema, the description covers the corpus, scope, and when to use it, and points to the SKILL manual for workflow standards. It does not explicitly mention how results should be consumed (e.g., via docs_read), but the schema and SKILL reference fill most gaps.

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 input schema covers 100% of parameters with descriptions, defaults, enums, and examples. The tool description adds general purpose and use-case context but no parameter-specific meaning beyond what the schema already provides. Baseline of 3 is appropriate.

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 uses a specific verb ('全文检索') and a clearly defined resource: local 2000+万字 HarmonyOS 官方文档 across enumerated categories. It distinguishes this search tool from sibling read/browse tools by positioning it as the pre-coding lookup step.

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?

The description gives explicit usage context: before writing ArkTS/ArkUI code, when unsure about an API, component, or concept. It also mandates loading the SKILL first as a prerequisite. However, it does not explicitly name sibling alternatives or state when not to use this tool.

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