Skip to main content
Glama

Search Collection

collection.search
Read-onlyIdempotent

Semantic (vector) search across documents in a collection. Returns ranked text chunks with relevance scores. Free — no credits consumed. Use when you need raw matching chunks from a collection. For a synthesized cited answer from the same context, use collection.ask instead. PREREQUISITE: Collection must be populated via collection.add_document and async indexing must complete (poll job.status) before results appear. Returns: { results: [{ bundle_id, chunk_id, text, score: number (0–1), title? }] } Example prompts:

  • "Search my Q4 Contracts collection for mentions of liability cap."

  • "Find the clause about data retention in my due diligence docs."

  • "Search for revenue numbers across my quarterly reports."

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax chunks to return (default 10, max 50). Example: 5
queryYesNatural language search query. Example: "What were the revenue numbers for Q4?"
collection_idYesCollection ID (col_...) returned by collection.create. Example: "col_550e8400-e29b-41d4-a716-446655440000"

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultsYes

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, indicating a safe read operation. Description adds value by stating it's free, detailing the return structure (bundle_id, chunk_id, text, score, optional title), and explaining the async indexing prerequisite. No contradictions.

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?

Concise, well-structured description with clear sections: purpose, usage guidance, prerequisite, return format, and example prompts. Every sentence adds value.

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?

Given the tool complexity and the presence of an output schema, the description covers all necessary context: purpose, alternatives, prerequisites, return format, and examples. Sibling tools are listed for further reference.

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?

Input schema covers 100% of parameters with descriptions and examples. The description does not add parameter-level detail beyond the schema, but it provides context about when parameters are used. Baseline of 3 is appropriate.

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 clearly states 'Semantic (vector) search across documents in a collection' and specifies it returns 'ranked text chunks with relevance scores'. It distinguishes from sibling `collection.ask` by contrasting raw chunks vs synthesized answers.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states when to use this tool ('when you need raw matching chunks') and when to use the alternative ('collection.ask'). Also lists prerequisite (collection must be populated and indexing complete) and notes it's free.

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.

TDQS

A4.4/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose, with no overlap. The category prefixes (account, bundle, collection, document, job, receipt, url) and specific action names (get, notarize, verify, create, list, etc.) ensure that an agent can unambiguously select the correct tool for any task.

Naming Consistency5/5

All tools follow a consistent category.action or category.action_noun pattern using snake_case (e.g., bundle.get, collection.add_document, url.translate). No mixed conventions or irregular names, making the pattern predictable and easy to learn.

Tool Count4/5

With 22 tools, the set is somewhat large but each tool addresses a distinct need within a broad domain (evidence management, document AI, collections, URL processing, job tracking, receipts). The count is slightly above the typical well-scoped range but still reasonable given the scope.

Completeness2/5

The tool surface has notable gaps: there is no tool to create or delete an evidence bundle, nor to update collections or bundles. The core workflow of creating a bundle from a document is missing, and the lifecycle is incomplete, which would likely cause agent failures in typical use cases.

Resources