Skip to main content
Glama

delete

Remove stale or incorrect documents or collections from local search storage before re-ingesting content; returns a background task ID rather than immediate confirmation.

Instructions

Use to remove stale or wrong content before re-ingesting it.

Returns immediately — the daemon removes chunks in the background.

Args: name: Document filename or collection name to delete. kind: What to delete — "document" or "collection". collection: Optional collection scope (only for kind="document").

Returns: A deletion task identifier, not confirmation that the data is gone. Input refusals, daemon errors, and unexpected failures return Error: ... text. Connection failures include recovery guidance.

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

Input Schema

NameRequiredDescriptionDefault
kindNodocument
nameYes
collectionNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

A4/5.0
Behavior4/5

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

With zero annotations the description carries the full burden, and it delivers the non-obvious parts: the call returns immediately, the daemon deletes chunks in the background, and the return value is a task id rather than confirmation of deletion. It also documents error text formats and connection-failure recovery guidance. It does not state whether deletion is irreversible or what permissions are needed, which keeps it short of a 5.

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-loaded lead sentence followed by clearly labelled Args and Returns blocks; each line carries information. The Returns block is slightly padded with the three-way error taxonomy, but it is structured rather than rambling.

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?

For an unannotated destructive tool the description covers the async execution model, the non-confirming return, and error behavior, and an output schema exists for return shape. The main remaining gap is that irreversibility and permission requirements are never stated, which matters for a delete operation.

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

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% and the schema supplies no enum for 'kind', yet the description documents all three parameters, names the meaning of 'name' for each kind, enumerates the allowed 'kind' values ('document' or 'collection'), and explains that 'collection' is an optional scope valid only when kind="document". This is meaning the schema alone cannot provide.

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 lead sentence gives a specific verb (remove) plus the resource and the motivating scenario ('stale or wrong content before re-ingesting'), and the Args block clarifies that the removal targets documents or collections. It never names a sibling it is not, so differentiation is left to the reader's knowledge of 'list', 'deregister_directory', etc.

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?

There is a stated use case ('remove stale or wrong content before re-ingesting it'), which implies when to reach for this tool, but no alternatives, prerequisites, or when-not guidance. An agent that wants to unregister a directory rather than delete content gets no routing help from this text.

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