Skip to main content
Glama

Search pieces

search_pieces
Read-only

Search 600+ piece briefs by words (job, component, style, tag) and filters. Returns ids, summaries, and demo links. Then get_piece for the brief.

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": "search_pieces"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryNoSuch as "pricing toggle", "sticky mobile cta", "kanban", "footer wordmark"
styleNo
imagesNoAttach thumbnails of the first six, to compare them by eye
categoryNobrowse_library what=categories lists them
platformNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description usefully adds the return payload (ids, summaries, demo links) in the absence of an output schema, but says nothing about result ordering/relevance, how the limit interacts with 600+ items, or that images=true attaches thumbnails (that lives only in the schema).

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?

Three short, front-loaded sentences: what it searches, what it returns, what to do next. No filler or repetition.

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 carries and delivers the return-value burden, and it supplies the follow-up path via get_piece. What's missing is modest: default/cap behavior for limit, relevance ordering, and the fact that all six params are optional (empty query behavior).

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 50% (limit, style, platform undocumented), and the description clarifies that free-text matches multiple fields while other criteria are filters — a genuine addition. However it also blurs the distinction between 'style' as a searchable word and the separate style filter parameter, and adds nothing for limit or platform.

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?

States a specific verb and resource plus scale ('Search 600+ piece briefs') and enumerates what the query text matches against (job, component, style, tag) versus filters. It routes to get_piece for follow-up and browse_library appears via the category param, so an agent can mostly place it among siblings, though the boundary with browse_library/search_wada is only implied.

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?

'Then get_piece for the brief' gives a useful two-step workflow hint, and the category param points at browse_library for the value list. But there is no explicit when-to-use-this-instead-of guidance against browse_library, search_wada, or audit_search, and no note on what happens with an empty query (browse-all vs. empty result).

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.