Skip to main content
Glama
MCP Server RAG

MCP Server RAG

by atengk

rag_delete_kb

Permanently deletes a specified knowledge base along with its document metadata and vector index collections, enabling clean removal of obsolete or unwanted RAG data.

Instructions

物理销毁指定知识库及其关联的所有文档元数据与向量索引集合。

Args:
    name: 待删除的知识库名称

Returns:
    dict[str, Any]: 删除结果与状态说明

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": "rag_delete_kb"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the important behavioral fact that destruction is physical and cascades to all document metadata and vector index collections. It stops short of saying whether the operation is irreversible, whether it requires confirmation or elevated permissions, or what happens if the named KB does not exist.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core sentence is front-loaded and earns its place. The 'Args' and 'Returns' boilerplate is largely padding, since the single parameter is already in the schema and the returns section duplicates the existing output schema.

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 return value is covered by an output schema, so the 'Returns' note is redundant rather than compensating for a gap. For a destructive, unannotated mutation tool, the definition should still address irreversibility and failure behavior, which are absent.

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 0% for the single parameter, and the description only restates it as '待删除的知识库名称', adding little beyond the schema's 'Name' title. It omits whether the value must be an exact existing KB name or whether IDs are accepted, which is the meaningful semantic gap here.

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?

States a specific verb and resource ('物理销毁指定知识库') plus scope ('及其关联的所有文档元数据与向量索引集合'), which is far more informative than the bare name. It does not, however, explicitly distinguish itself from the sibling rag_clear_kb, so an agent must still guess how 'destroy' differs from 'clear'.

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

Usage Guidelines2/5

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

No when-to-use or when-not-to-use guidance is given. With siblings rag_clear_kb and rag_delete_document present, the definition should say how this differs from clearing a KB or deleting a single document, but it offers no routing signal at all.

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