Skip to main content
Glama

Search UI components

search_components
Read-only

Search indexed UI components across shadcn, 21st.dev, and UIverse by keyword, then get install or copy instructions instead of building from scratch.

Instructions

Searches the index for components whose row holds every query word, in any case and order. Results come per source: those with more of the words in their name (a UIverse element's type) first, then the most bookmarked (21st.dev) or favorited (UIverse); each says how to install or open it.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "search_components"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoOnly items whose kind contains this: shadcn's registry:block, registry:ui, registry:component, registry:hook…; 21st.dev's ui, blocks, hooks, icons; UIverse's button, loader, card, switch, checkbox, input, pattern, radio, tooltip
limitNoResults per source, 10 when unset
queryYesWhat the component is or does, a library or an author, e.g. "date range picker", "file upload", "motion carousel"
sourceNoOne source only: shadcn (the partner registries), 21st (21st.dev) or uiverse (UIverse.io)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, openWorldHint=false), so the description's job is to add behavior, which it does: results are grouped per source, ranked first by name-word overlap then by bookmark/favorite counts, and each result carries install or open instructions. It does not mention the default per-source limit of 10 or how large a result set can get, which is a small remaining gap.

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?

Two sentences, front-loaded with the matching rule and followed by the ranking and return-shape summary. Every clause carries information an agent would otherwise have to guess.

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?

With no output schema, the description must convey what comes back, and it does at a high level: per-source groupings, ordering, and the presence of install/open guidance. It stops short of describing result fields or how many sources can appear at once, but for a read-only search tool this is close to complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description earns a step up by clarifying that query words are matched conjunctively and case-insensitively, which is behavior the schema's example strings never state. It adds nothing about the type, source, or limit parameters, but those are fully documented in the schema.

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 opens with a specific verb and resource ('Searches the index for components') and immediately specifies matching semantics: every query word must appear in the row, case- and order-insensitive. That level of precision lets an agent predict result sets without reading the schema.

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?

Usage is implied by the search framing and the query examples in the schema, but the description never states when to reach for this tool versus browsing or fetching a specific component. With no sibling tools listed, there is no alternative to route away from, so the gap is minor but real.

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

Deploy Server

Other Tools