Skip to main content
Glama
nobitalqs

Modular RAG MCP Server

by nobitalqs

delete_document

Preview what will be removed (chunks, images) from the RAG knowledge base, then confirm to delete the document and all associated data.

Instructions

Delete a document and its associated data from the RAG knowledge base.

First call without confirm_delete_data (or with confirm_delete_data=false) to preview what will be deleted (chunk count, image count). Then call again with confirm_delete_data=true to execute the deletion.

This removes all associated data: vector embeddings, BM25 index entries, extracted images, and the ingestion history record.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
source_pathYesPath to the document to delete.
collectionNoCollection the document belongs to.default
confirm_delete_dataNoSet to true to execute deletion. When false (default), returns a preview of what will be deleted.
Behavior5/5

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

Discloses destructive behavior by listing all removed data (vector embeddings, BM25 index entries, extracted images, ingestion history) and preview mechanism. No annotations, so description carries full burden and does so thoroughly.

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 paragraphs with front-loaded purpose. Every sentence adds value; no redundancy or filler. Efficient and clear.

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?

Comprehensive for a destructive tool: covers preview return details (chunk count, image count), what gets deleted, and the two-step workflow. No output schema, but description suffices.

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

Parameters4/5

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

Schema covers all parameters with descriptions. Description adds value by explaining the role of confirm_delete_data in preview vs execution, which goes beyond schema.

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?

Clearly states the tool deletes a document and associated data from RAG knowledge base, with a specific verb and resource. Distinguishes from sibling tools like ingest_document or get_document_summary.

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?

Provides explicit two-step process: first call for preview, second call to execute. However, does not explicitly state when not to use this tool or compare with alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nobitalqs/MODULAR-RAG-MCP-SERVER'

If you have feedback or need assistance with the MCP directory API, please join our Discord server