Skip to main content
Glama

Delete a RAG Source

rag_delete
DestructiveIdempotent

Removes all indexed chunks for a specific source from the RAG store, using the exact path from rag_list. Returns the count of deleted chunks and updated store totals.

Instructions

Remove all indexed chunks for a source from the RAG store. The source must match the path stored at index time (an absolute path) — use rag_list to find exact paths. The original file on disk is not touched.

Args:

  • source (string): Source path to delete, exactly as shown by rag_list.

Returns the number of chunks deleted and the updated store totals.

Example: { "source": "/tmp/ragcorpus/cooking.md" }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourceYesSource path to delete (as shown by rag_list)
Behavior5/5

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

Beyond annotations (destructiveHint=true), description clarifies that the original file on disk is not touched, returning number of chunks deleted and updated store totals. This adds critical behavioral context.

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?

Three-sentence main description, followed by clear Args, Returns, and Example. Front-loaded key action and prerequisite details with no unnecessary text.

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?

Completely covers the tool's purpose, input, output, side effects, and prerequisites. No missing information for a single-parameter tool with annotations.

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 100% of parameter description, but description adds value with an example and emphasis on exact match ('exactly as shown by rag_list').

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?

Description states specific action 'Remove all indexed chunks' for a resource (RAG source), and distinguishes from sibling by referencing rag_list for exact paths.

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?

Explicitly instructs to use rag_list to find exact paths before calling, providing clear usage context. Does not explicitly mention when not to use, but the guidance is sufficient for correct invocation.

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/highercomve/mcptools'

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