Skip to main content
Glama
stevebrownlee

storybook-mcp

storybook_create_component

Scaffold a new component and its Storybook story from a natural-language description. Automatically generate component and story files with optional props and category.

Instructions

Scaffold a new component with Storybook story from a natural-language description.

Generates a component file and a corresponding .stories. file based on the configured framework (React/Vue/Svelte), language (TS/JS), and styling approach. Files are written into the configured STORYBOOK_COMPONENTS_DIR.

Args: params (CreateComponentInput): Validated input containing: - name (str): PascalCase component name - description (str): Natural-language description of the component - category (Optional[str]): Storybook hierarchy category - props (Optional[List[PropDefinition]]): Explicit prop definitions

Returns: str: Summary of the generated files with their full contents.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

Annotations indicate destructiveHint=false, but the description does not clarify potential overwrite behavior if a component with the same name exists. It adds that files are written to a configured directory, but lacks details on permissions, side effects, or error handling.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is about 150 words and front-loaded with a clear one-liner. The Args section is somewhat redundant with the schema but still concise. Minor redundancy keeps it from a 5.

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

Completeness4/5

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

Given the detailed input schema and output schema, the description adequately explains the tool's purpose and output. It mentions the generated files and directory, but lacks information on overwriting behavior and error scenarios.

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?

The description repeats parameter details in an Args section, but the input schema already has comprehensive descriptions for each property (name, description, category, props). Since schema coverage is high, the description adds minimal new meaning beyond summarizing.

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 scaffolds a new component with a Storybook story from a natural-language description. It specifies the generated files (component and story) and differentiates from siblings (compose, get, list).

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 the tool is for creating new components, but it doesn't explicitly state when to use it versus alternatives like storybook_get_component or storybook_list_components. No when-not-to-use guidance is provided.

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/stevebrownlee/storybook-mcp'

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