Skip to main content
Glama
Zilliz MCP Server

Zilliz MCP Server

Official
by zilliztech

search

Find the most similar vector embeddings in a Zilliz Cloud collection, using optional scalar filters and output fields to retrieve relevant records.

Instructions

Conduct a vector similarity search with an optional scalar filtering expression.

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
    data: A list of vector embeddings. Zilliz Cloud searches for the most similar vector embeddings to the specified ones
    anns_field: The name of the vector field
    limit: The total number of entities to return (default: 10). The sum of this value and offset should be less than 100
    db_name: The name of the database. Pass explicit dbName or leave empty when cluster is free or serverless
    filter: The filter used to find matches for the search
    offset: The number of records to skip in the search result. The sum of this value and limit should be less than 16,384
    grouping_field: The name of the field that serves as the aggregation criteria
    output_fields: An array of fields to return along with the search results
    metric_type: The name of the metric type that applies to the current search (L2, IP, COSINE)
    search_params: Extra search parameters including radius and range_filter
    partition_names: The name of the partitions to which this operation applies
    consistency_level: The consistency level of the search operation (Strong, Eventually, Bounded)
Returns:
    Dict containing the search results
    Example:
    {
        "code": 0,
        "data": [
            {
                "color": "orange_6781",
                "distance": 1,
                "id": 448300048035776800
            },
            {
                "color": "red_4794", 
                "distance": 0.9353201,
                "id": 448300048035776800
            }
        ]
    }

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>",
      "data": "<data>",
      "anns_field": "<anns_field>"
    },
    "name": "search"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYes
limitNo
filterNo
offsetNo
db_nameNo
region_idYes
anns_fieldYes
cluster_idYes
metric_typeNo
output_fieldsNo
search_paramsNo
grouping_fieldNo
collection_nameYes
partition_namesNo
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",
      -  "data",
      -  "anns_field"
      -]New value: +[
      +  "cluster_id",
      +  "region_id",
      +  "collection_name",
      +  "data",
      +  "anns_field"
      +]
  2. First observed

TDQS

B3.2/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 does disclose two useful behavioral facts (the offset+limit caps and a concrete return-value example, which substitutes for a missing output schema), but it gives no permission/auth requirements, and the caps it states conflict: limit says the sum must stay under 100 while offset says under 16,384.

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 front-loaded in one sentence and the Args block is scannable, but it is a raw docstring with redundant restatements and an example block that consumes substantial space for two rows. The contradictory bounds should have been reconciled rather than both left in.

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?

For a 15-parameter tool with no annotations and no output schema, the definition does cover the essentials: every parameter, the return shape via example, and pagination caps. It is still incomplete on sibling disambiguation and on resolving the conflicting limit/offset limits, which an agent could easily trip over.

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 description coverage is 0%, so the description must carry all 15 parameters, and it does annotate every one, including enumerating metric_type (L2, IP, COSINE) and consistency_level (Strong, Eventually, Bounded). It loses a point because several entries are tautological (filter is 'The filter used to find matches', data is simply 'A list of vector embeddings') and the limit/offset constraints contradict each other.

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?

The opening sentence names a specific verb and resource ('Conduct a vector similarity search') and adds the optional scalar-filter capability. It never distinguishes this from the sibling hybrid_search or query, which is the only thing separating it from a 5.

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 statement of when to use this versus hybrid_search, query, or a plain collection read, and no prerequisites or exclusions. The parameter list implies a vector-search context but gives the agent nothing to route on.

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