Skip to main content
Glama

basecoat_component_syntax

Read-onlyIdempotent

Retrieve copy-pasteable Basecoat component markup with pre-configured FSM state variants, dependencies, icons, and output for HTML, Astro, React, Vue, or Svelte.

Instructions

[STAGE 3: SYNTAX & STACKS] Retrieve copy-pasteable Basecoat component markup with pre-configured FSM state variants (default, active, loading, disabled, open, closed) and dependencies for any of the 57 Basecoat components. Next step: Call basecoat_quality_inspector to audit assembled markup.

Input Schema

NameRequiredDescriptionDefault
idNoAlternative identifier alias for the component (matches component argument).
iconNoVerified Lucide action icon to inject with canonical data-icon="inline-start|inline-end" positioning.
nameNoAlternative identifier alias for the component.
stateNoTarget interactive state variant to bind to markup: "default", "active", "loading", "disabled", "open", "closed", "invalid", or "open/closed".
variantNoVisual variant token (e.g. "outline", "ghost", "secondary", "destructive", "subcard", "horizontal", "inline", "error").
componentNoComponent name or alias to retrieve canonical FSM-bound syntax for (e.g. "dialog", "tabs", "button", "input", "select", "metric-card", "data-table", "sidebar-shell", "field", "field-group").
componentIdNoAlternative identifier alias for the component.
environmentNoTarget output environment: "html", "astro", "react", "vue", or "svelte". Defaults to "html".
orientationNoSpatial orientation: "vertical" (standard stacked), "horizontal" (grid 2-column for settings), or "inline" (checkbox/switch/radio).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.8.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and closed-world, so the safety profile is fully covered structurally. The description adds useful behavioral detail about the payload (pre-configured FSM state variants plus dependencies), but says nothing about return format, size, or limits.

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 stage tag and the core action, with no wasted clauses. It is appropriately sized for the tool, though the bracketed stage marker is meta-scaffolding rather than tool-specific content.

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?

With no output schema, the description does carry the burden of explaining the return value, and it does so ('copy-pasteable markup with state variants and dependencies'). Combined with annotations covering safety and a 100%-covered schema, the definition is nearly complete, with only the absence of sibling disambiguation as a gap.

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%, so all nine parameters are already documented in the schema, making 3 the baseline. The description echoes the state variants and dependencies but adds no syntax or format guidance beyond what the schema provides, and does not clarify the four alias parameters.

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 states a specific verb and resource ('Retrieve copy-pasteable Basecoat component markup') and adds scope (57 components, FSM state variants, dependencies). However, it never distinguishes itself from lookalike siblings such as get_component_html or get_component_syntax, so an agent still has to guess which retrieval tool to pick.

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 '[STAGE 3: SYNTAX & STACKS]' label and 'Next step: Call basecoat_quality_inspector' give workflow context, which implies when this tool fits. But there is no explicit when-not guidance and no comparison to the sibling retrieval tools that appear to do overlapping work.

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