Skip to main content
Glama

Delete a search index

search_delete_index
DestructiveIdempotent

Delete an index and all its documents. Use when the user asks to remove an index for good. Before: confirm with the user: this cannot be undone. Returns deleted true. Scope: search:write. Cost: priced at get_pricing; any price is reserved on the prepaid balance before the call. Refused for balance or a limit: follow next_action.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "name": "products"
    },
    "name": "search_delete_index"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesIndex name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already flag destructive and idempotent, and the description adds substantive context beyond them: irreversibility requiring user confirmation, the required search:write scope, the returned field (deleted true), the pricing/reservation model, and what to do when refused for balance or limits (follow next_action). That is a full behavioral picture for a destructive operation.

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 action statement followed by labeled clauses (Before, Returns, Scope, Cost, Refused) with no filler. The telegraphic style is dense but every clause carries operational information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter destructive tool with no output schema, the description covers effect, confirmation requirement, auth scope, cost model, return value, and failure handling. Nothing an agent needs in order to invoke it safely is missing.

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?

Only one parameter (name), and schema description coverage is 100% including a regex pattern, so the schema carries the semantics. The description adds nothing about the identifier beyond the tool's overall scope, which is the expected baseline for a fully documented single-parameter schema.

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?

"Delete an index and all its documents" gives a specific verb plus resource and clarifies scope (the whole index, not just documents), which distinguishes it from document-level deletion siblings. It stops short of naming the sibling that deletes documents only, leaving that inference to the agent.

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

Usage Guidelines4/5

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

"Use when the user asks to remove an index for good" plus the explicit precondition "confirm with the user: this cannot be undone" gives clear when-to-use and prerequisite guidance. No named alternative or when-not case is stated, so it falls short of a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.