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
| Name | Required | Description | Default |
|---|---|---|---|
| auto_id | No | ||
| db_name | No | ||
| id_type | No | Int64 | |
| dimension | Yes | ||
| region_id | Yes | ||
| cluster_id | Yes | ||
| metric_type | No | COSINE | |
| collection_name | Yes | ||
| vector_field_name | No | vector | |
| primary_field_name | No | id |