Skip to main content
Glama

knowledge_delete_chunks

Deletes multiple chunks from a knowledge base datasource by passing knowledge and datasource IDs plus a JSON array of chunk IDs.

Instructions

Delete multiple chunks

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": {
      "knowledge_id": "<knowledge_id>",
      "datasource_id": "<datasource_id>",
      "chunk_ids_json": "<chunk_ids_json>"
    },
    "name": "knowledge_delete_chunks"
  }
}

Input Schema

NameRequiredDescriptionDefault
knowledge_idYesKnowledge base ID or key
datasource_idYesDatasource ID
chunk_ids_jsonYesJSON array of chunk IDs

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

C2.9/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 disclosure burden, yet it only restates that deletion happens. It says nothing about permanence, whether unknown chunk IDs cause a failure or are ignored, whether the operation is atomic, or what permissions are required.

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?

A single three-word sentence with the verb front-loaded and zero filler. It is efficiently sized, though brevity here borders on under-specification rather than tight structure.

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 three-required-parameter destructive tool with no annotations and no output schema, the definition is thinner than ideal: it omits partial-failure semantics and permission requirements. It is minimally sufficient to identify the operation but not to call it safely.

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 100%, so all three parameters are already documented, and the baseline is therefore 3. The description adds no meaning beyond the schema; the plural "chunks" implies multiple IDs but the schema already specifies a JSON array for chunk_ids_json.

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 and resource with scope: "Delete multiple chunks." The word "multiple" distinguishes it from the singular knowledge_delete_chunk sibling, but no sibling is named or explicitly contrasted, so it falls short of a 5.

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 use this batch variant instead of the single-chunk delete, no prerequisites, and no note that deletion is irreversible. The agent must infer the batch-vs-single tradeoff entirely from the tool name.

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

Deploy Server

Other Tools