Skip to main content
Glama

Get paste-ready component code

get_component_code
Read-only

Retrieve production-ready component code for the requested framework, including ARIA-wired HTML, token-based CSS, or typed wrappers that forward required accessibility attributes.

Instructions

Production code for a component in the requested framework. HTML returns reference markup with the required ARIA wiring; CSS returns the production stylesheet written against semantic tokens; framework options return typed wrappers that forward the accessibility attributes the spec requires.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesComponent id.
frameworkYeshtml: Reference markup with the required ARIA wiring in place. | css: The production stylesheet for this component, written against semantic tokens. | react: TypeScript React component with forwardRef and typed variant props. | vue: Vue 3 single-file component using the composition API. | svelte: Svelte 5 component using runes. | angular: Angular standalone component. | blazor: Blazor Razor component with typed parameters. | web-component: Framework-free custom element wrapping the same classes.
Behavior4/5

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

Annotations already indicate readOnlyHint=true, so the description is not required to disclose mutation. It adds valuable behavioral context by explaining what each framework returns (reference markup with ARIA, stylesheet with tokens, typed wrappers with forwarded accessibility attributes). This goes beyond the annotations and gives the agent a clear picture of the output nature.

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?

The description is exactly two sentences, front-loaded with the core purpose, then expanding into framework-specific behavior. There is no redundancy or filler; every sentence earns its place. This is a model of conciseness.

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?

For a simple read-only tool with two well-documented parameters and no output schema, the description fully covers what the tool does and what to expect from each framework variant. It is complete for an agent to select and invoke correctly without additional context.

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 coverage is 100%, so the schema already documents both parameters ($id and framework) and even provides per-enum descriptions for framework. The description reiterates the framework distinctions in prose but adds no new information beyond the schema. As per the rubric, a baseline of 3 is appropriate when the schema is thorough.

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 states a specific verb+resource: 'Production code for a component in the requested framework.' It also clarifies the expected output type for each framework option, which distinguishes it from sibling tools like get_component (which likely returns component metadata/overview) and get_stylesheet (which likely returns only the stylesheet). This is more specific than the title alone.

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 description implies usage: if you need production component code in a particular framework, use this tool. However, it does not explicitly mention when not to use it or name alternatives such as get_stylesheet for stylesheet-only needs. With many sibling tools listed, the lack of explicit differentiation leaves some ambiguity for an agent.

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/mictsi/SekuraDesignMCP'

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