Skip to main content
Glama

Search pieces

search_pieces
Read-onlyIdempotent

Search the whole collection by title, author or tags (English or Spanish). Use it when you look for a topic or an artist and have no room id. Returns short results (id, title, author, date, rooms, URLs); open one with get_piece.

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_pieces"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax results (default 10).
queryYesWords to look for, e.g. 'blue spiral' or 'copa de coco'.
visitor_nameNoYour name as a visitor (max 40 chars). The same name always gives the same avatar, stamps and badges. Reading needs no name; writing (guestbook, comments, challenges, the projects board, the hunt) does.

Output Schema

NameRequiredDescriptionDefault
queryNoThe words that were searched.
resultsNoMatching pieces: id, titulo, autor, fecha, salas, url, json.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "query": {
      +      "description": "The words that were searched.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "results": {
      +      "description": "Matching pieces: id, titulo, autor, fecha, salas, url, json.",
      +      "type": [
      +        "array",
      +        "null"
      +      ]
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety needs no restating. The description adds real context beyond that: bilingual matching (English or Spanish) and the deliberately shallow result shape with a pointer to get_piece for full detail.

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 tight sentences: capability and scope first, then the routing condition, then the return shape and next step. Every clause carries information and none repeats the annotations.

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 an output schema present and annotations covering the safety profile, the definition is nearly complete: it covers scope, language, and result depth. It leaves matching semantics (exact vs substring, ranking) and empty-result behavior unstated, which is a small but real gap for a search tool.

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 above it by clarifying that the query string is matched against title, author, or tags rather than free text, which the schema's 'Words to look for' does not explain. It adds nothing on limit or visitor_name, but the schema covers those.

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?

States a specific verb (search) and scope (the whole collection) plus the searchable fields: title, author, tags. It also names the follow-up sibling get_piece, so an agent can place it in a workflow without opening another schema.

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?

Gives a clear selection condition: use it for a topic or artist when you have no room id, which implicitly points at room-scoped retrieval instead. It stops short of naming an explicit alternative to use when a room id is known, so the routing is inferred rather than stated.

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