Skip to main content
Glama
Zilliz MCP Server

Zilliz MCP Server

Official
by zilliztech

query

Filter a Zilliz Cloud collection by a boolean expression on scalar fields, returning matching entities and selected output fields with pagination and optional partition scope.

Instructions

Conduct a filtering on the scalar field with a specified boolean 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
    filter: The filter used to find matches for the search
    db_name: The name of the database. Pass explicit dbName or leave empty when cluster is free or serverless
    output_fields: An array of fields to return along with the query results
    partition_names: The name of the partitions to which this operation applies. If not set, the operation applies to all partitions in the collection
    limit: The total number of entities to return (default: 100). The sum of this value and offset should be less than 16,384
    offset: The number of records to skip in the search result. The sum of this value and limit should be less than 16,384
Returns:
    Dict containing the query results
    Example:
    {
        "code": 0,
        "cost": 0,
        "data": [
            {
                "color": "red_7025",
                "id": 1
            },
            {
                "color": "red_4794",
                "id": 4
            },
            {
                "color": "red_9392",
                "id": 6
            }
        ]
    }

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>",
      "filter": "<filter>"
    },
    "name": "query"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
filterYes
offsetNo
db_nameNo
region_idYes
cluster_idYes
output_fieldsNo
collection_nameYes
partition_namesNo

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",
      -  "filter"
      -]New value: +[
      +  "cluster_id",
      +  "region_id",
      +  "collection_name",
      +  "filter"
      +]
  2. First observed

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden, and it does disclose real constraints: default limit of 100, the rule that limit + offset must stay under 16,384, partition scoping defaults to all partitions, and the db_name rule for free/serverless clusters. It does not state that this is a read-only operation, nor anything about permissions, error codes other than the success example, or rate limits.

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 single-sentence purpose is front-loaded, followed by a compact Args block and a return example. Structure is predictable and scannable. The wording is slightly awkward ('Conduct a filtering on'), and the multi-line JSON bloat could be trimmed, but nothing is redundant.

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

Completeness4/5

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

For a 9-parameter tool with no annotations and no output schema, the description supplies parameter documentation plus a concrete return structure with code/cost/data, which is exactly the gap the missing output schema leaves. Remaining gaps — filter syntax, error semantics for non-zero codes — are meaningful but secondary for a query tool of this shape.

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 compensate, and it largely does — all nine parameters are explained, including defaults (limit 100, offset 0, empty db_name), the 16,384 ceiling on limit + offset, and the semantics of omitted partition_names. What it lacks is detail on the filter expression syntax and the output_fields array format, which are the two most error-prone inputs.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific action ('Conduct a filtering on the scalar field with a specified boolean expression'), which conveys scalar/boolean filtering rather than vector search. However, the resource is never named in the purpose sentence — the collection only appears in the args list — and nothing distinguishes it from siblings like 'search' or 'hybrid_search'. An agent must infer the tool's niche from the argument list rather than from a stated scope.

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 or when-not-to-use guidance, and no named alternative. The phrase 'filtering on the scalar field' hints that this is the non-vector path versus 'search'/'hybrid_search', but that routing decision is left entirely to the agent's inference. No prerequisites or preconditions for calling it are given.

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