Skip to main content
Glama

Delete knowledge base

delete_knowledge_base
Destructive

Delete a knowledge base: its index and documents go, its Vault folder and files stay. Cannot be undone: the first call previews it, with the workflows and agents that use it, and gives a confirm_token.

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_base": "<knowledge_base>"
    },
    "name": "delete_knowledge_base"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirm_tokenNoLeave out at first: the answer previews what this would do and gives a token. Call again with the same arguments and that token to do it.
knowledge_baseYesThe knowledge base's name (or its id).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, but the description goes further by specifying exactly what is removed (index, documents) versus retained (Vault folder, files), that it is irreversible, and that the preview surfaces dependent workflows and agents. That dependent-usage disclosure is context an agent could not get from the annotations.

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?

Two sentences, no filler. The retention boundary and the irreversibility/confirmation flow are front-loaded in that order, which is exactly the order an agent needs them before acting.

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 two-parameter destructive tool with no output schema, the definition covers action, scope of destruction, what survives, irreversibility, and the confirmation handshake. There is no meaningful gap an agent would need filled before invoking it correctly.

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%, with confirm_token already documented as 'leave out at first… call again with that token' and knowledge_base as name or id. The description adds the token's provenance (returned by the preview call) but largely restates what the schema already carries, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb and resource ('Delete a knowledge base') and immediately bounds the scope: 'its index and documents go, its Vault folder and files stay.' That scope statement distinguishes it from the sibling document-level delete and makes the blast radius legible without opening the schema.

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?

Clearly states the two-step protocol: the first call previews what would happen, and you call again with the returned confirm_token to actually execute it. It also warns the action cannot be undone. What is missing is explicit routing guidance for when to prefer this over siblings such as delete_knowledge_document for individual documents.

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.