Skip to main content
Glama

Delete knowledge source

delete_knowledge_source
Destructive

Removes a website or document from the knowledge the AI uses, including all its stored text chunks. Only websites and documents can be removed here; social channels are managed in the app.

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": {
      "brand": "<brand>",
      "sourceId": "<sourceId>"
    },
    "name": "delete_knowledge_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
brandYes
sourceIdYesId of the website or document, from list_knowledge_sources.
confirmationTokenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, so the safety profile is covered. The description adds genuinely new behavioral context by disclosing the cascade ("all its stored text chunks"), which tells the agent that related data is destroyed along with the source. It stops short of stating irreversibility or how the confirmationToken affects the call.

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 tight sentences: the destructive effect and its cascade come first, followed by the exclusion constraint. There is no filler, hedging, or restatement of the title.

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?

The description covers the effect and the resource boundary well enough to act, and there is no output schema to explain. However, a destructive tool with an undocumented confirmationToken and no statement about irreversibility or behavior on a missing/invalid source leaves real gaps an agent would want closed before invoking it.

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

Parameters2/5

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

Schema coverage is only 33%: sourceId is documented in the schema, but brand and confirmationToken have no descriptions anywhere. For a destructive operation, the presence of an unexplained confirmationToken parameter is a significant blind spot the description should have compensated for, and the scope sentence about websites/documents only loosely implies sourceId's domain.

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?

The description names a specific verb and resource ("Removes a website or document from the knowledge the AI uses") and adds scope ("including all its stored text chunks"), so an agent knows exactly what is being deleted. It also carves out what this tool does NOT cover (social channels), which separates it from the other delete_* siblings at a glance.

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?

There is clear when-to-use framing (websites/documents) and an explicit when-not-to-use clause pointing social channel removal to the app. The gap is that no sibling tool is named as the alternative for finding or listing sources, so routing must be inferred, and no prerequisite about obtaining a confirmation token or valid ID is stated.

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.

Resources