Skip to main content
Glama

Search shadcn/ui blocks

search_blocks
Read-onlyIdempotent

Search the shadcn/ui blocks listed on shadcn.exchange: ready-made sections of a page, such as heroes, pricing tables, login forms, dashboards, footers and FAQs, from every public shadcn registry, free and paid. Use it when the user is building a page or a screen with shadcn/ui and wants a section to start from, or asks what blocks exist for something. Results come best first. Each has its id (for get_block), its description, its install command if it is free or where to buy it if it is paid, and its page with a live preview. Every word of the query has to be in a block's name, title, description or registry, so use one or two words, and the category for the kind of section.

Input Schema

NameRequiredDescriptionDefault
limitNoHow many results to return, up to 50.
priceNofree: blocks that install now with one command. paid: blocks their registries sell. any: both.any
queryNoOne or two words to find, such as "pricing", "sign in", "testimonials" or "bento". Leave it out to list a category or a registry.
offsetNoHow many results to skip, for the next page.
categoryNoThe kind of section, from list_categories, such as hero, pricing, login, dashboard or footer.
registryNoOnly this registry's blocks: its id from list_registries, such as efferd or shadcnblocks.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already establish this as a safe, idempotent read. The description adds real context: results are relevance-ordered ('best first'), and each result carries an id, description, install command or purchase location, and a live-preview page. The key matching rule ('every word of the query has to be in a block's name, title, description or registry') is behavior an agent cannot infer elsewhere.

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 paragraph is dense and front-loaded: what it searches, then when to use, then result shape, then query constraints. The enumerated section examples (heroes, pricing tables, login forms, dashboards, footers, FAQs) partly duplicate the category enum, which is the one stretch that does not fully earn its place.

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

Completeness5/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 takes on the burden of describing return contents, and it does: ordering, id, description, install command versus where to buy, and preview page. Combined with the explicit query-matching rule and the six fully documented parameters, an agent can call this correctly on the first try.

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 still contributes the AND-matching semantics of query and the advice to use 'one or two words, and the category for the kind of section', which meaningfully changes how an agent should combine query with category.

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?

A specific verb plus resource, with the resource itself defined: 'ready-made sections of a page' from 'every public shadcn registry, free and paid'. It also implicitly distinguishes itself from siblings by naming the block id '(for get_block)' and pointing to the category/registry fields.

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?

'Use it when the user is building a page or a screen with shadcn/ui and wants a section to start from, or asks what blocks exist for something' gives a clear trigger condition. The split from get_block (detail lookup) and list_categories/list_registries (enumeration) is only implied through field references rather than stated as an alternative, so it falls short of a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources