Skip to main content
Glama
Zilliz MCP Server

Zilliz MCP Server

Official
by zilliztech

hybrid_search

Search vector collections using similarity and scalar filters, then rerank combined results with a chosen strategy to return relevant entities.

Instructions

Search for entities based on vector similarity and scalar filtering and rerank the results using a specified strategy.

Args:
    cluster_id: ID of the cluster
    region_id: ID of the cloud region hosting the cluster
    collection_name: The name of the collection to which this operation applies
    search_requests: List of search parameters for different vector fields. Each search request should contain:
        - data: A list of vector embeddings
        - annsField: The name of the vector field
        - filter: A boolean expression filter (optional)
        - groupingField: The name of the field that serve as the aggregation criteria (optional)
        - metricType: The metric type (L2, IP, COSINE) (optional)
        - limit: The number of entities to return
        - offset: The number of entities to skip (optional, default: 0)
        - ignoreGrowing: Whether to ignore entities in growing segments (optional, default: false)
        - params: Extra search parameters with radius and range_filter (optional)
    rerank_strategy: The name of the reranking strategy (rrf, weighted)
    rerank_params: Parameters related to the specified strategy (e.g., {"k": 10} for rrf)
    limit: The total number of entities to return. The sum of this value and offset should be less than 16,384
    db_name: The name of the database. Pass explicit dbName or leave empty when cluster is free or serverless
    partition_names: The name of the partitions to which this operation applies
    output_fields: An array of fields to return along with the search results
    consistency_level: The consistency level of the search operation (Strong, Eventually, Bounded)
Returns:
    Dict containing the hybrid search results
    Example:
    {
        "code": 0,
        "cost": 0,
        "data": [
            {
                "book_describe": "book_105",
                "distance": 0.09090909,
                "id": 450519760774180800,
                "user_id": 5,
                "word_count": 105
            }
        ]
    }

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": {
      "cluster_id": "<cluster_id>",
      "region_id": "<region_id>",
      "collection_name": "<collection_name>",
      "search_requests": "<search_requests>",
      "rerank_strategy": "<rerank_strategy>",
      "rerank_params": "<rerank_params>",
      "limit": "<limit>"
    },
    "name": "hybrid_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitYes
db_nameNo
region_idYes
cluster_idYes
output_fieldsNo
rerank_paramsYes
collection_nameYes
partition_namesNo
rerank_strategyYes
search_requestsYes
consistency_levelNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.0.1
    • removedInput schema / properties / endpoint
      Removed value: -{
      -  "title": "Endpoint",
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "cluster_id",
      -  "region_id",
      -  "endpoint",
      -  "collection_name",
      -  "search_requests",
      -  "rerank_strategy",
      -  "rerank_params",
      -  "limit"
      -]New value: +[
      +  "cluster_id",
      +  "region_id",
      +  "collection_name",
      +  "search_requests",
      +  "rerank_strategy",
      +  "rerank_params",
      +  "limit"
      +]
  2. First observed

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It discloses the hard cap ('sum of this value and offset should be less than 16,384'), enumerates allowed metric and consistency values, and shows a concrete return payload with code/cost/data, but it never states permissions, whether the operation is read-only, or pagination behavior across pages.

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?

The one-sentence purpose is front-loaded, and the Args/Returns layout is easy to scan. The verbosity is largely justified by the 0% schema coverage, though the limit entry mixes a top-level constraint with a nested offset parameter, which is confusing.

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?

For an 11-parameter nested tool with no output schema and no annotations, the description covers all parameters, nested sub-fields, enums, defaults, the result cap, and an example return shape. The remaining gaps (auth requirements, behavior on invalid strategy/param combinations) are secondary to correct invocation.

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?

With 0% schema description coverage across 11 params (including a nested object), the description does substantial work: it documents every search_requests sub-field with defaults, lists enum values for metricType (L2, IP, COSINE), rerank_strategy (rrf, weighted), and consistency_level (Strong, Eventually, Bounded), and explains db_name's conditional semantics. Minor ambiguity remains around the top-level limit referencing an 'offset' that only exists inside search_requests.

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 ('Search for entities based on vector similarity and scalar filtering') plus the distinguishing mechanism ('rerank the results using a specified strategy'). It does not name or contrast with the sibling 'search' tool, so an agent must infer that this is the multi-vector/reranked variant.

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

Usage Guidelines2/5

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

There is no explicit when-to-use guidance, no prerequisites, and no mention of when to prefer this over the sibling 'search' or 'query' tools. The only implicit signal is the presence of reranking, which the agent must reason about on its own.

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