Skip to main content
Glama
yinxianwei

Element Plus Docs MCP

by yinxianwei

获取 Element Plus 组件文档

get_component_doc

Retrieve Element Plus component docs in Chinese Markdown format. Query by component name or slug, optionally filter by section, and control response length.

Instructions

根据组件中英文名或 slug 获取中文官网文档,结果为适合模型阅读的 Markdown。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sectionNo只返回匹配的小节,例如“属性”“事件”或“基础用法”
componentYes组件名,例如 button、Button、按钮、date-picker
force_refreshNo是否跳过缓存并重新读取官网
max_charactersNo返回正文的最大字符数
Behavior3/5

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

The description discloses that the result is Chinese official documentation in Markdown format, which is useful behavioral context. However, with no annotations, it does not mention caching, network calls, or potential side effects, even though the force_refresh parameter implies caching behavior. The description adds some value but not comprehensive transparency.

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, focused sentence that is front-loaded with the verb '获取' (get). It conveys purpose and output format without any filler or redundancy.

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?

The tool is simple and the description adequately covers the core functionality and output format, which is helpful given no output schema exists. It could be more complete by referencing sibling tools or edge cases, but overall it is sufficient for this low-complexity tool.

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?

Schema description coverage is 100%, so the baseline is 3. The description mentions '中英文名或 slug' but the schema's parameter description already provides examples like 'button, Button, 按钮, date-picker', covering this. No additional parameter meaning is added beyond the 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 tool retrieves the Chinese official Element Plus documentation based on a component's Chinese/English name or slug, with output formatted as Markdown suitable for models. This specific verb-resource-scope pairing distinguishes it from siblings like list_components and search_component_docs.

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 conveys that this tool is for fetching a specific component's documentation by name/slug, giving clear context. However, it does not explicitly mention alternatives or exclusion criteria, such as using search_component_docs when the exact name is unknown.

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/yinxianwei/element-plus-mcp'

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