Skip to main content
Glama

Layro

Get a Layro component's code

get_component_code
Read-onlyIdempotent

The complete source for one component and every file it imports, ready to save at the paths given. Free components need a free Layro account's token; Pro components need the caller's Layro lifetime access. Install with the shadcn CLI instead when you can run commands (see get_installation).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
slugYesA component slug, like "data-table".
include_dependenciesNoAlso return every file it imports (the theme, foundations, sibling components). Default true. Set false only if those are already in the project.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover the read-only, idempotent, non-destructive safety profile, and the description adds real value beyond them: the Free-token vs Pro-lifetime-access auth split and the fact that output is files keyed to paths ready to save. It does not mention rate limits or failure modes for missing/invalid tokens.

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?

Two sentences, front-loaded with what is returned, followed by access conditions and the alternative route. No filler, every clause carries load-bearing information.

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 no output schema, the description carries the burden of describing the return value — source files ready to save at given paths — and it does so. Combined with the auth prerequisites and the CLI alternative, an agent has everything needed to call it 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 description coverage is 100%, so both slug and include_dependencies are already documented in the schema. The description's mention of 'every file it imports' echoes include_dependencies but adds no format or edge-case detail beyond the schema, so the baseline 3 applies.

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?

States a specific verb and resource — returns the complete source for one component plus every file it imports, ready to save at given paths. This distinguishes it from get_component (metadata) and get_installation (CLI setup) without the agent needing to open a schema.

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?

Explicitly routes the agent to the alternative: use the shadcn CLI when commands can be run, referencing get_installation by name. It also states the access precondition for Free vs Pro components, so the agent knows whether the call can even succeed.

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.