Skip to main content
Glama

okfindex

Public search collection

public_search_collection
Read-onlyIdempotent

Search the published references of a public collection. Collections store references, not copied content. They start private. Owner search reads current files in owned bases and published files in other bases. Publication includes only references to currently public bases; private bases and later additions stay out. Every public read checks base publication again. Private or withdrawn collections return 404. Responses use private, no-store.

Input Schema

NameRequiredDescriptionDefault
qYes3–160 characters. Uses the existing MySQL FULLTEXT phrase search in document bodies.
afterNoDocument cursor from the next-page URL. Do not construct it.
collection_idYesThe 64-character ID returned by this API.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover readOnly/idempotent/non-destructive, and the description goes further by disclosing the 404 outcome for private or withdrawn collections and the 'private, no-store' response caching. It adds real behavioral context beyond the structured fields, though some of it describes the publication pipeline rather than this call's runtime behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening sentence is front-loaded and useful, but several middle sentences explain collection publication semantics and visibility rules that an agent does not need in order to invoke a search. Roughly half the text is background rather than actionable instruction.

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?

For a read-only search with no output schema and fully documented parameters, the description covers the important edge cases — private/withdrawn collections returning 404 and the no-store response policy. It stops short of describing result or pagination shape, but the schema's 'after' cursor hints at pagination.

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 q (3–160 chars, MySQL FULLTEXT phrase search), after (opaque cursor, do not construct), and collection_id are already fully documented in the schema. The description adds nothing parameter-specific, so the baseline of 3 applies.

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 — searching the published references of a public collection — which is clearly distinct from the base-oriented siblings like public_search_base and public_get_base_document. It never explicitly names those alternatives, so the differentiation is implicit rather than stated.

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?

It contrasts owner search vs public read behavior ('Owner search reads current files in owned bases and published files in other bases'), which implies a context of use, but there is no explicit when-to-use-this-vs-another-tool guidance and no prerequisites or exclusions beyond 404 semantics.

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.