Skip to main content
Glama

get_component

Retrieve HTML code for a specific Basecoat component by name to build accessible interfaces. Optionally include a category prefix for precise lookup.

Instructions

Get HTML code for a specific Basecoat component

Input Schema

NameRequiredDescriptionDefault
nameYesComponent name (e.g., "button-primary", "card-basic", "field"), optionally prefixed with its category (e.g., "layout/pagination")

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.0.1
    • changedInput schema / properties / name / description
      Previous value: -"Component name (e.g., \"button-primary\", \"card-basic\", \"input-with-label\")"New value: +"Component name (e.g., \"button-primary\", \"card-basic\", \"field\"), optionally prefixed with its category (e.g., \"layout/pagination\")"
  2. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose that the return value is HTML code, which is genuinely useful behavioral information. However, it says nothing about whether that is a full file or a fragment, whether dependencies/markup context are included, or how a missing component is reported.

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?

A single sentence with the action and resource front-loaded and zero filler. Nothing could be cut without losing information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple one-parameter read tool with no output schema, the essentials are present. Gaps remain around name discovery (how to obtain a valid component name) and the shape of the returned HTML, which an agent would need to use the result confidently.

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% and the schema itself gives format examples including the optional category prefix, so the parameter is already fully documented. The description adds nothing beyond that, which is the baseline 3 case for high coverage.

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?

States a specific verb and payload ("Get HTML code") plus the resource ("a specific Basecoat component"), which clearly separates it from list_components and search_components. It does not explicitly name those siblings as alternatives, so it stops short of a 5.

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?

The word "specific" implies this is a known-name lookup rather than a discovery tool, but the description never says when to use it instead of search_components/list_components, nor what to do if the name is unknown. Usage is inferable but not stated.

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