Skip to main content
Glama

get_specification

Retrieve comprehensive UI component specification documentation to understand modern component-building philosophy, patterns, and best practices for creating accessible, framework-agnostic interfaces.

Instructions

Get the FULL components.build specification documentation. This is the complete guide to building modern UI components by Hayden Bleasel and shadcn. Use this to understand the complete philosophy, patterns, and best practices.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sectionNoSpecific section to retrieve (optional). Available sections: overview, definitions, principles, composition, accessibility, designTokens, state, styling, types, polymorphism, asChild, dataAttributes, docs, registry, marketplaces, npm

Implementation Reference

  • The handler function that implements the core logic of the 'get_specification' tool. It processes input arguments to retrieve either a specific section or the full specification using imported utility functions and formats the response as a ToolResult.
    function handleGetSpecification(args: Record<string, unknown>): ToolResult { const section = args.section as string | undefined; if (section) { const content = getSection(section); if (!content) { return { content: [ { type: 'text', text: `Section not found: ${section}\n\nAvailable sections:\n${getSectionNames() .map((s) => `- ${s}`) .join('\n')}`, }, ], isError: true, }; } return { content: [{ type: 'text', text: content }], }; } // Return the full specification return { content: [{ type: 'text', text: getFullSpecification() }], }; }
  • The tool definition including name, description, and input schema for validating parameters (optional 'section' string). Part of the getToolDefinitions() array used for tool registration.
    { name: 'get_specification', description: 'Get the FULL components.build specification documentation. This is the complete guide to building modern UI components by Hayden Bleasel and shadcn. Use this to understand the complete philosophy, patterns, and best practices.', inputSchema: { type: 'object', properties: { section: { type: 'string', description: 'Specific section to retrieve (optional). Available sections: overview, definitions, principles, composition, accessibility, designTokens, state, styling, types, polymorphism, asChild, dataAttributes, docs, registry, marketplaces, npm', }, }, }, },
  • The dispatch case in the executeTool switch statement that routes calls to the 'get_specification' handler.
    case 'get_specification': return handleGetSpecification(args);

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/audreyui/components-build-mcp'

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