Skip to main content
Glama

get_component_syntax

Read-onlyIdempotent

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

Instructions

[STAGE 3: SYNTAX & STACKS] Alias of basecoat_component_syntax. Retrieve copy-pasteable Basecoat component markup with FSM state variants.

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 readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds that output is 'copy-pasteable' markup with FSM state variants bound in, which is useful context, but says nothing about permissions, limits, or fallback behavior.

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 short, front-loaded sentences that waste no words. The bracketed stage tag is slightly noisy but does front-load workflow placement.

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 read-only single-resource retrieval tool with no output schema and fully documented parameters, the description covers purpose, source of truth, and output nature. Only the relationship to sibling retrieval tools remains unstated.

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 all 9 parameters, including 4 enums, are documented in the schema itself. The description adds no syntax, default, or interaction guidance beyond that, so the baseline 3 applies.

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 (Retrieve) and resource (Basecoat component markup) plus the key qualifier that it is an alias of basecoat_component_syntax. It also names the scope ('with FSM state variants'), which distinguishes it from a plain markup lookup, though it never contrasts itself with siblings like get_component_html or get_component_details.

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]' prefix implies where this fits in a workflow, and the alias note implies equivalence with basecoat_component_syntax, but there is no explicit when-to-use vs when-to-use-an-alternative guidance against the many sibling retrieval tools.

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