Skip to main content
Glama

Get Component Variant

get_component_variant
Read-only

Retrieves the complete HTML markup for a named variant of a design component, using variant names obtained from get_component to access both BSI and Dev Kit story variants.

Instructions

Returns the full HTML markup of a specific variant by name. Use variantsAvailable from get_component to find variant names. Searches BSI markup variants and Dev Kit story variants transparently. Dev Kit variant names with numeric suffixes (-2, -3) are multiple examples of the same variant.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesComponent name or slug (e.g. "accordion", "card")
variantNameYesVariant name (e.g. "Base", "Tabella base")

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
metaYes
resultsYes
componentYes
variantNameYes
Behavior4/5

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

Annotations declare readOnlyHint=true, consistent with a read operation. The description adds transparency about searching two sources (BSI and Dev Kit) and explains numeric suffixes in Dev Kit variant names.

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?

Three sentences, front-loaded with main purpose, no redundancy, every sentence adds value.

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

Completeness5/5

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

With full schema coverage, output schema, and annotations, the description provides necessary context on variant naming and source transparency, making it complete.

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 description adds extra meaning: clarifying variant name patterns (e.g., base, -2 suffix) 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 it returns the full HTML markup of a specific variant by name, distinguishing it from siblings like get_component which returns component metadata.

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?

It instructs to use variantsAvailable from get_component to find variant names, providing contextual guidance. It does not explicitly state when not to use the tool.

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/Fupete/design-system-italia-mcp'

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