Skip to main content
Glama

shadcn_get_composition

Get the component composition for a page type, with rationale per section. Converts design templates into concrete shadcn/ui implementation.

Instructions

Get shadcn/ui component composition for a specific page type. Returns which components to combine per section with rationale. This is the bridge from designer's page templates to concrete implementation. Use after designer_get_page_template.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
page_typeYesPage type: landing, dashboard, auth, settings, checkout, blog, docs, admin, profile, pricing, onboarding, ai-chat
Behavior2/5

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

No annotations provided, so description must carry full burden. It only describes output (returns composition with rationale) with no mention of safety, permissions, side effects, or error states. The read-only nature is implied but not explicit.

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?

Three concise sentences, each adding value: purpose, output description, workflow context. No fluff, front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema, description should detail return structure more. It says 'which components to combine per section with rationale' but no example or format. Adequate for a simple tool but could be more explicit.

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 has 100% coverage with enum description, so baseline is 3. Description adds little beyond 'specific page type', but that is sufficient since the schema already defines the parameter well.

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 clearly states the tool gets shadcn/ui component composition for a page type, distinguishes it from siblings like shadcn_get_component and shadcn_get_rules by focusing on composition of multiple components per section.

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

Usage Guidelines4/5

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

Explicitly says 'Use after designer_get_page_template', providing clear workflow context. Does not list when not to use or alternatives, but the sequential guidance is helpful.

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/orkait/hyperstack'

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