Skip to main content
Glama

get_component

Retrieve one component's overview, usage, accessibility guidance, and HTML/CSS/React code by English slug, Japanese name, or React component name.

Instructions

コンポーネント 1 つのガイドライン(概要・使い方・アクセシビリティ)と HTML / CSS / React のコードを返します。name は英語の slug、日本語名、React のコンポーネント名のどれでも指定できます。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "name": "<name>"
    },
    "name": "get_component"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes例: button、ボタン、Breadcrumbs
partsNo返す部分。省略時は overview, usage, accessibility, html

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden, and it discloses the returned content sections, which is useful. However, it says nothing about error behaviour for unknown names, whether the response is truncated, or permission/auth requirements. For a read-only lookup the risk is low, but the disclosure is incomplete.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the return payload and then the input flexibility; nothing is padded. It is efficient, though it could be slightly tighter by noting the parts default that exists in the schema.

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 simple, non-destructive lookup with no output schema, the description covers what the tool returns and how to identify the target. Missing only edge-case behaviour, such as unknown-name errors, which is minor for this complexity level.

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%, so the baseline is 3; the description additionally states that name accepts an English slug, a Japanese name, or a React component name, which is a clearer statement of accepted identifier forms than the schema's examples alone. This adds real value beyond the schema, though the parts parameter is left entirely to the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: it returns the guidelines (overview, usage, accessibility) plus HTML/CSS/React code for a single component. The phrase '1 つ' (a single one) implicitly separates this from list_components, though no sibling is named explicitly.

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

Usage Guidelines3/5

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

Usage is only implied: fetch detail for one component. The description never says when to prefer this over list_components or search, nor does it state what happens when the name is unknown. An agent can infer the use case, but there is no explicit guidance or exclusion.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.