Skip to main content
Glama

Get component in a brand style

get_component_styled
Read-onlyIdempotent

Returns one component's source together with the tokens of a brand style, step-by-step instructions for mapping the component's colours, fonts and radii onto that style, and the colour values the component uses today. Use it instead of get_component when the result should match a specific brand. The server does not rewrite the code; you apply the mapping. Same premium rule as get_component.

Input Schema

NameRequiredDescriptionDefault
nameYesComponent name as listed by list_components, e.g. 'GradientHeroSection'.
styleYesStyle slug exactly as listed by list_styles.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / name / description
      Previous value: -"Component name, e.g. 'GradientHeroSection'."New value: +"Component name as listed by list_components, e.g. 'GradientHeroSection'."
    • changedInput schema / properties / style / description
      Previous value: -"Style slug from list_styles."New value: +"Style slug exactly as listed by list_styles."
  2. Changed2 schema fields changed
    • changedInput schema / properties / name / description
      Previous value: -"Komponentenname, z. B. 'GradientHeroSection'."New value: +"Component name, e.g. 'GradientHeroSection'."
    • changedInput schema / properties / style / description
      Previous value: -"Style-Slug aus list_styles."New value: +"Style slug from list_styles."
  3. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description adds valuable behavioral context—it returns source, style tokens, mapping instructions, and current colour values, and explicitly says the server does not rewrite code—but the phrase 'Same premium rule as get_component' is an opaque cross-reference that is not self-contained.

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 front-loaded with the return contents and the usage decision, and every sentence adds useful information: what is returned, when to use it, what the server does not do, and a shared rule reference.

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?

There is no output schema, but the description enumerates what the tool returns (source, tokens, mapping instructions, current colour values), which is sufficient. Combined with full schema coverage for both parameters, an agent has what it needs to invoke the tool correctly.

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% and both parameters are fully documented in the schema, so the baseline is 3. The description does not add syntax or format details beyond what the schema already provides.

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 and resource ('Returns one component's source together with the tokens of a brand style') and explicitly distinguishes itself from the sibling get_component by naming the alternative and the condition that selects it.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit routing guidance: 'Use it instead of get_component when the result should match a specific brand.' The alternative and its selection condition are named directly, leaving no inference needed.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.