Skip to main content
Glama

Get a shadcn/ui block

get_block
Read-onlyIdempotent

Get one block's details by its id from search_blocks: what it is, its install command, the npm packages and registry items it depends on, the files it adds, and its registry's notes on using it. Set include_source to also get its source code, for when the user wants to read or adapt the code rather than install it.

Input Schema

NameRequiredDescriptionDefault
idYesThe block's id from search_blocks, as registry/name, such as efferd/hero-1. Its page's address works too.
include_sourceNoAlso give the source of its files. It can be long, and installing the block adds the files anyway.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already establish that this is a safe, idempotent read operation. The description adds useful behavioral context beyond the annotations, including the returned information and the caveat that source can be long and that installing the block adds the files anyway.

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?

The description is two sentences and is front-loaded with the core purpose. Every sentence earns its place: the first defines the returned details, and the second explains the optional source behavior.

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?

For a simple read-only lookup tool with no output schema, the description is complete enough. It names the returned fields and explains the only optional behavior, giving an agent what it needs to call the tool 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 description coverage is 100%, so both parameters are already documented in the schema. The description reinforces the id source and gives a decision rationale for include_source, but adds only marginal semantic detail beyond what the schema already provides.

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 states a specific verb and resource: get one block's details by id. It also enumerates what those details include and explicitly ties the id source to search_blocks, making it distinguishable from the search/list siblings.

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 clearly indicates that this is used with an id obtained from search_blocks and explains when to set include_source: when the user wants to read or adapt code rather than install it. It does not explicitly state when not to use this tool versus search_blocks, keeping it just below 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