Skip to main content
Glama

Delete a chatbot knowledge source

delete_chatbot_knowledge
DestructiveIdempotent

IRREVERSIBLE: Delete a chatbot knowledge source

Removes one knowledge source from a chatbot: the entry is deleted and the chatbot no longer draws on the document. The indexed document is deleted from the voice engine as well, unless another entry or another agent still uses it. The chatbot must be one the key may use and the entry must belong to this chatbot, otherwise the request is rejected with 404, so a repeated call answers 404. A failure in the voice engine is logged and does not stop the local deletion. This endpoint takes no request body.

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": {
      "chatbotId": "<chatbotId>",
      "knowledgeId": "<knowledgeId>"
    },
    "name": "delete_chatbot_knowledge"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNoLeave out on the first call. EchoCall then answers with a confirmation value. Ask the user for a clear yes, then repeat the call with the same arguments and this value.
chatbotIdYesNumeric identifier of the chatbot.
knowledgeIdYesIdentifier of the knowledge entry to remove.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint, idempotentHint), it discloses the cascade: the indexed document is also deleted from the voice engine unless shared by another entry or agent. It also covers authorization scoping, the 404 on repeat calls, and the fact that a voice-engine failure is logged without blocking the local deletion — exactly the operational detail an agent needs and cannot get from structured fields.

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?

The irreversibility warning is correctly front-loaded, and each sentence adds distinct information (cascade, authorization, repeat behavior, failure handling). Slightly long and the closing 'This endpoint takes no request body' is mildly confusing next to a schema with three parameters, but no sentence is wasted.

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 destructive three-parameter tool with no output schema, the definition covers success semantics, error semantics (404), authorization scoping, and non-atomic failure behavior — everything needed to call it correctly and interpret the result.

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 coverage is 100%, including the full two-step confirm protocol, so the schema carries parameter meaning. The description adds only the ownership constraint that the entry must belong to the given chatbot; it contributes nothing else beyond the schema, so baseline 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?

States a precise verb and resource: 'Delete a chatbot knowledge source' / 'Removes one knowledge source from a chatbot'. The chatbot-scoped wording distinguishes it from the sibling delete_agent_knowledge, and the scope 'one knowledge source' is unambiguous.

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?

The description makes the destructive intent clear ('IRREVERSIBLE') and explains post-conditions, but never states when to choose this over a sibling such as delete_agent_knowledge or refresh/cancel alternatives, nor any prerequisite like confirming the entry belongs to the addressed chatbot before calling. Guidance is implied by the operation itself rather than spelled out.

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.