Skip to main content
Glama

list_components

Lists Compass components from normalized Storybook metadata, returning up to 50 results so AI assistants can discover available UI building blocks for catalog queries and UX planning.

Instructions

Lists Compass components from normalized Storybook metadata.

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
limitNoMaximum components to return. Defaults to 50 when omitted; capped at 50.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It discloses only the provenance of the data (normalized Storybook metadata); it says nothing about ordering, whether the result is truncated when the catalog exceeds the limit, whether a cache refresh is needed for fresh data, or what a returned component contains.

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?

One short sentence, front-loaded with the verb and resource, with no filler. It is efficient, though its brevity is achieved partly by omitting information that matters rather than by tight editing.

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?

For a single-parameter listing tool with no output schema and no annotations, the description is minimally adequate. It leaves open what a component entry looks like in the response and whether hitting the 50 cap implies additional pages, which an agent would need to know to use results 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 coverage is 100%, and the single 'limit' parameter is already fully documented in the schema (min 1, max 50, default 50, capped). The description adds no meaning beyond that, so the baseline 3 applies.

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 states a specific verb ('Lists') and resource ('Compass components') and even names the data source ('normalized Storybook metadata'). It does not explicitly distinguish itself from the sibling search_components, so an agent must infer that this is a browse/enumerate operation rather than a filtered search.

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

Usage Guidelines2/5

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

There is no when-to-use guidance at all: no statement about when to browse this list versus calling search_components, no prerequisites, and no note about when the metadata might be stale (which would point at refresh_metadata_cache). Usage is only implied by the verb 'Lists'.

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