Skip to main content
Glama
MCP Design System Extractor

MCP Design System Extractor

list_components

Lists all UI components in a design system or Storybook with names, categories, and variant counts, plus category filtering and pagination to explore large component libraries.

Instructions

List all UI components available in your design system/Storybook. Returns components like modals, dialogs, buttons, forms, cards, etc. with their names, categories, and variant count. Use this to explore what components are available for building UI features. Use category="all" or omit category parameter to list all components. Supports pagination to handle large component libraries.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_components"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number (1-based). Default is 1.
compactNoIf true (default), returns compact format with only id, name, title, and variantCount. If false, returns full component data including all stories.
categoryNoFilter components by category path (e.g., "Components/Buttons", "Layout"). Use "all" or omit to list all components.
pageSizeNoNumber of components per page (1-100). Default is 20.

Output Schema

NameRequiredDescriptionDefault
componentsYes
paginationYesWhere the returned slice sits in the full result set.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.3.0
  2. Removedv1.2.0
  3. First observed

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden. It discloses pagination support and the general shape of results, which is useful, but never states that this is a non-mutating read, nor mentions any permission, rate-limit, or ordering behavior.

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?

Four short sentences, front-loaded with the core purpose and output content. The enumeration of example component types ('modals, dialogs, buttons, forms, cards') is slightly expendable but helps an agent recognize the domain.

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?

An output schema exists, so return-value detail is not required, and the description still covers filtering, pagination, and the compact/full distinction adequately for a four-parameter list tool. Only the read-only nature and relationship to sibling lookup tools remain unstated.

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 the schema already documents page, compact, category, and pageSize with defaults and ranges. The description only restates the category='all' shortcut and the existence of pagination, adding no format or edge-case meaning beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb and resource ('List all UI components available in your design system/Storybook') and describes the returned payload (names, categories, variant count), which clearly separates it from get_component_html or search_components. It stops short of naming those siblings explicitly, so the differentiation is inferable rather than stated.

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?

It gives clear context for use ('Use this to explore what components are available for building UI features') and explains how to get the unfiltered list ('category="all" or omit category'). There is no explicit exclusion clause telling the agent when to prefer search_components or get_component_html instead.

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