Skip to main content
Glama

okfindex

Search collection

search_collection
Read-onlyIdempotent

Search documents across bases in your 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
  2. Removed
  3. Added

TDQS

A3.7/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent annotations by disclosing what the search actually covers (owned current files vs. published files in other bases), that publication is re-validated on every public read, that private or withdrawn collections return 404, and that responses are private/no-store. These are non-obvious operational traits an agent could not infer from structured fields.

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 purpose is correctly front-loaded in the first sentence, but the bulk of the text is publication/permission semantics with some redundancy ('Publication includes only references to currently public bases' followed by 'Every public read checks base publication again'). Useful but not tight; two of the six sentences could be merged.

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

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description bears responsibility for describing returns, and it does not — nothing about result shape, pagination beyond the cursor hint in the schema, or whether snippets are included. The permission, error, and caching behavior is well covered, which offsets the missing return-value detail but leaves a real gap for a search endpoint.

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%: q's length and FULLTEXT semantics, after's cursor warning, and collection_id's 64-character format are all documented in the schema itself. The description adds no parameter-level detail (e.g., how multiple terms are matched or how q interacts with collection scope), so baseline 3 is appropriate.

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 with scope: 'Search documents across bases in your collection.' It also clarifies the underlying model ('Collections store references, not copied content'), which helps an agent distinguish it from search_base. It never names alternative siblings (public_search_collection, team_search_collection) explicitly, so sibling differentiation is implied 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?

Usage context is implied through scope statements ('Owner search reads current files in owned bases and published files in other bases'), which tells the agent what this tool will and won't surface. However, there is no explicit when-to-use framing, no mention of when to prefer search_base or the public/team variants, and no prerequisite guidance beyond the 404 note.

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.