Skip to main content
Glama
Zilliz MCP Server

Zilliz MCP Server

Official
by zilliztech

insert_entities

Insert one or more entities into an existing collection, with keys matching its schema, to add data for later semantic search and retrieval.

Instructions

Insert data into a specific collection.

Args:
    cluster_id: ID of the cluster
    region_id: ID of the cloud region hosting the cluster
    collection_name: The name of an existing collection
    data: An entity object or an array of entity objects. Note that the keys in an entity object should match the collection schema
    db_name: The name of the target database. Pass explicit dbName or leave empty when cluster is free or serverless
Returns:
    Dict containing the response with insert count and insert IDs
    Example:
    {
        "code": 0,
        "data": {
            "insertCount": 10,
            "insertIds": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
        }
    }

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

Input Schema

NameRequiredDescriptionDefault
dataYes
db_nameNo
region_idYes
cluster_idYes
collection_nameYes

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

TDQS

A3.7/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 disclosure burden. It does add genuinely useful behavior: keys must match the collection schema, and the return payload shape with insertCount/insertIds is shown by example. It omits auth/permission requirements, batching or size limits, duplicate-key/overwrite semantics, and error behavior, which matter for a write tool with no annotation coverage.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the one-line purpose, then a compact per-argument list and a concrete return example. The Args block duplicates schema titles but earns its place given the schema carries zero descriptions; no filler sentences.

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?

With no output schema and no annotations, the description supplies the missing return shape and the key-schema-matching constraint. What remains thin is failure-mode and precondition coverage — nothing tells an agent what happens if the collection does not exist or the entity violates the schema.

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 does document all five parameters meaningfully — including that data accepts a single object or array and that db_name is optional for free/serverless clusters. Formats for cluster_id and region_id are still left implicit, which keeps it short of a 5.

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 first line states a specific verb and resource: 'Insert data into a specific collection.' That is unambiguous about the operation, though it never references the counterpart delete_entities or explains how it differs from a query/search tool that might also touch collections.

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

Usage Guidelines3/5

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

Usage is only implied by the operation itself. The description notes the collection must already exist and that db_name should be left empty for free/serverless clusters, which is a real conditional hint, but there is no explicit when-to-use versus when-not guidance and no mention of prerequisites like cluster state or schema readiness.

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