Skip to main content
Glama
famtong8-dev

w3-mcp-server-qdrant

by famtong8-dev

qdrant_search

Read-onlyIdempotent

Search for similar documents in Qdrant by embedding text with Ollama. Optionally enhance results with query expansion, HyDE, and reranking.

Instructions

Search for similar documents in Qdrant.

Embeds the query text using Ollama, then searches for similar vectors in the specified Qdrant collection. Returns matching documents with similarity scores.

Supports advanced features:

  • Query expansion: generates multiple query variations and merges results

  • HyDE: generates hypothetical documents for semantic enrichment

  • RRF: Reciprocal Rank Fusion for merging multiple result sets

  • Reranking: uses LLM to reorder results by relevance

Args: params (SearchInput): Validated parameters: - collection_name (str): Collection to search in - query_text (str): Text to search for (auto-embedded) - limit (int): Max results, 1-100 (default: 5) - score_threshold (float): Min similarity 0.0-1.0 (default: 0.0) - fields (str): Comma-separated metadata fields to return (optional) - response_format (str): 'markdown' or 'json' - expand_query (bool): Enable query expansion (default: False) - expand_query_count (int): Number of variations (default: 3) - use_hyde (bool): Enable HyDE (default: False) - hyde_combine_original (bool): Include original query with HyDE (default: True) - rerank (bool): Enable LLM reranking (default: False) - rerank_top_n (int): Candidates for reranking (default: 10)

Returns: str: Formatted search results with document IDs, texts, and scores

Errors: - Collection not found: "Collection 'xyz' does not exist" - Embedding failed: "Failed to embed query text" - Connection error: "Cannot connect to Qdrant at {url}"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true. Description adds significant behavioral context: uses Ollama for embedding, Qdrant for search, lists specific error messages (collection not found, embedding failed, connection error), and details advanced processing steps like RRF and LLM reranking.

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

Conciseness4/5

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

Well-structured with clear sections (general description, advanced features, Args, Returns, Errors) and front-loaded purpose. While somewhat verbose, each sentence adds necessary context for a complex tool.

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?

Comprehensively covers all aspects: purpose, all parameters (including advanced ones), return format (formatted string with similarity scores), and specific error cases. No gaps given the tool's complexity.

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 descriptions cover all parameters, but description adds value by explaining advanced behavior (e.g., 'auto-embedded', 'generates hypothetical document'), default values, and constraints like 'max 100 results', which goes beyond the basic schema descriptions.

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?

Description clearly states 'Search for similar documents in Qdrant' with specific verb 'search' and resource 'Qdrant vector database'. Distinguishes from sibling qdrant_list_collections by focusing on searching within a collection.

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?

Provides detailed usage context including advanced features like query expansion, HyDE, and reranking. Though no explicit when-not-to-use, the single sibling makes intent clear: this is for searching, not listing collections.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/famtong8-dev/w3-mcp-server-qdrant'

If you have feedback or need assistance with the MCP directory API, please join our Discord server