Skip to main content
Glama

查询组件示例

get_component_examples

Returns code examples with title and HTML template for a given component tag, showing real usage patterns.

Instructions

按 tag(如 see-button)返回该组件的可用代码示例(标题 + HTML 模板片段)。用于参考真实用法。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagYes组件标签,见 list_components,如 see-button、see-input
Behavior3/5

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

No annotations are provided, so the description carries full burden. It discloses the return format (title + HTML snippet) but does not mention read-only nature, error conditions, or potential side effects. Adequate but not rich.

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?

Two terse sentences: first states functionality, second states purpose. Every word earns its place. Front-loaded with key information.

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 single-parameter lookup tool without output schema, the description adequately explains what is returned and how to find valid tags. Lacks details on error handling or example count but sufficient for typical use.

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

Parameters4/5

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

Schema coverage is 100% with parameter description including examples. The tool description adds value by demonstrating usage with '如 see-button' and stating the return structure, but baseline is 3 due to high schema coverage.

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 specifies the verb '返回' (returns) and the resource '可用代码示例(标题 + HTML 模板片段)' for a given component tag. It distinguishes from siblings 'get_component_api' and 'list_components' by focusing on code examples.

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 clear context by linking to 'list_components' for valid tags and giving example 'see-button'. Does not explicitly state when not to use or alternatives, but the sibling names imply differentiation.

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/seeyouui/see-u-ui-mcp'

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