Skip to main content
Glama
Zilliz MCP Server

Zilliz MCP Server

Official
by zilliztech

create_collection

Create a vector collection in a specified Zilliz Cloud cluster using Quick Setup, defining dimension, metric type, and primary and vector field settings for semantic search.

Instructions

Create a collection in a specified cluster using Quick Setup.

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 create
    dimension: The number of dimensions a vector value should have
    db_name: The name of the database. Pass explicit dbName or leave empty when cluster is free or serverless
    metric_type: The metric type (default: "COSINE", options: "L2", "IP", "COSINE") Ask the user to select the metric type, if user does not select, use default value "COSINE"
    id_type: The data type of the primary field (default: "Int64", options: "Int64", "VarChar")
    auto_id: Whether the primary field automatically increments (default: True)
    primary_field_name: The name of the primary field (default: "id")
    vector_field_name: The name of the vector field (default: "vector")
Returns:
    Dict containing the response
    Example:
    {
        "code": 0,
        "data": {}
    }

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>",
      "dimension": "<dimension>"
    },
    "name": "create_collection"
  }
}

Input Schema

NameRequiredDescriptionDefault
auto_idNo
db_nameNo
id_typeNoInt64
dimensionYes
region_idYes
cluster_idYes
metric_typeNoCOSINE
collection_nameYes
vector_field_nameNovector
primary_field_nameNoid

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

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It says "Create" (a mutation) and shows a response envelope example, but never states permission requirements, idempotency, failure modes, or what an existing collection name does — significant gaps for an unannotated write tool.

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?

Front-loads the purpose in one sentence, then a compact Args list with defaults and a short Returns example; almost every line earns its place. Structure is a plain docstring rather than task-oriented prose, but it is efficient.

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 10-parameter write tool with no annotations and no output schema, the description covers parameters well and includes a return example, but omits prerequisites (cluster state/existence), uniqueness/error behavior, and any indication of side effects. Adequate but with clear gaps.

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%, yet the description documents all ten parameters with defaults and, crucially, supplies enum values the schema lacks (metric_type L2/IP/COSINE, id_type Int64/VarChar). It also explains conditional behavior for db_name and gives an instruction to ask the user for metric_type, adding real meaning beyond the bare property names.

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+resource ("Create a collection") and scope ("in a specified cluster using Quick Setup"), which clearly separates it from siblings like list_collections or describe_collection. It stops short of explicitly naming an alternative or a precondition, so it is clear but not maximally differentiated.

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 when-to-use/when-not guidance at the tool level: nothing says the cluster must already exist or be resumed, or what happens if the collection name is taken. The only guidance is parameter-level (db_name on free/serverless clusters, asking the user for metric_type), which does not help the agent choose this tool over siblings.

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