Skip to main content
Glama
Zilliz MCP Server

Zilliz MCP Server

Official
by zilliztech

delete_entities

Deletes matching entities from a Zilliz/Milvus collection using a scalar filter, optionally scoped to a database or partition.

Instructions

Delete entities from a collection by filtering conditions or primary keys.

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
    filter: A scalar filtering condition to filter matching entities. You can set this parameter to an empty string to skip scalar filtering. To build a scalar filtering condition, refer to Reference on Scalar Filters
    db_name: The name of the target database. Pass explicit dbName or leave empty when cluster is free or serverless
    partition_name: The name of a partition in the current collection. If specified, the data is to be deleted from the specified partition
Returns:
    Dict containing the response
    Example:
    {
        "code": 0,
        "cost": 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>",
      "filter": "<filter>"
    },
    "name": "delete_entities"
  }
}

Input Schema

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

TDQS

C2.9/5.0
Behavior2/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 never states that deletion is irreversible, what happens when the filter matches nothing, whether an empty filter (which it says skips scalar filtering) deletes all entities in the collection, or what permissions are required — the most consequential behaviors for a destructive tool.

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 Args-style layout is scannable and the purpose sentence is front-loaded. The Returns block adds little value, since the example payload is a near-empty dict with code/cost/data fields that conveys no realistic response shape, and several argument descriptions restate the parameter name.

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 destructive six-parameter tool with no annotations and no output schema, the definition covers the parameter inventory and includes a return example, which partially substitutes for the missing output schema. It still omits irreversible-deletion semantics, the full-delete risk of an empty filter, and any usable filter syntax, leaving real gaps at this complexity level.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/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 parameter meaning, and it does name and gloss all six parameters. But most glosses are near-tautological ("cluster_id: ID of the cluster", "collection_name: The name of an existing collection") and the filter guidance is deferred to an external reference rather than stating a syntax.

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 sentence gives a specific verb and resource ("Delete entities from a collection") plus the two supported selection modes, which clearly separates it from insert_entities. However, it advertises deletion "by primary keys" while the schema exposes no primary-key parameter, only a string filter, leaving a small ambiguity about how key-based deletion is expressed.

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 guidance on when to choose this tool over insert_entities or query-driven alternatives, and no mention of prerequisites such as collection existing or cluster state. Nothing warns the agent that this is a destructive operation or when it should decline to call it.

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