Skip to main content
Glama

get_component_code_usage

Get real code usage examples for components, covering import statements, props patterns, and compound component assembly.

Instructions

특정 컴포넌트의 실제 코드 사용법만 반환합니다. import, props 기반 flat pattern, 조립형 compound pattern 예시가 필요할 때 사용하세요.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesFigma에서 확인된 컴포넌트 이름
Behavior4/5

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

With no annotations, the description carries the burden of behavioral disclosure. It discloses that the tool returns only code usage examples, not general component documentation, and specifies the categories of examples. It does not address error cases or return format, but for a read-only lookup this is sufficient.

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 two concise, front-loaded sentences with no filler. The main purpose is stated immediately, followed by a specific usage condition. Every word earns its place.

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 tool with no output schema, the description provides essential purpose and usage context. It could mention the return format explicitly, but the listed example types give a sufficient sense of what the output contains.

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 fully describes the sole parameter 'name' as a Figma-verified component name, giving 100% schema coverage. The description adds no additional parameter semantics beyond the schema, so the baseline score 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 clearly states the tool returns only actual code usage examples for a specific component, listing specific example types (import, props-based flat pattern, compound pattern). This distinguishes it from the sibling tool get_component_usage, which likely provides broader usage documentation.

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?

Explicitly states when to use this tool: when the agent needs import, props-based flat pattern, or compound pattern examples. This gives clear contextual guidance, though it does not explicitly name alternative tools or state when not to use it.

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/supin-kim-ilevit-com/GDS-MCP'

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