Skip to main content
Glama
andreperez

AnythingLLM MCP Server

by andreperez

anythingllm_remove_documents

Destructive

Permanently delete documents from AnythingLLM storage and remove them from all workspaces. Specify document names to purge them completely from the system.

Instructions

Permanently delete one or more documents from the system.

This removes the documents from AnythingLLM storage entirely. They will also be removed from any workspaces that had them embedded.

Args: names: List of document names/paths as returned by list_documents (e.g. ['custom-documents/myfile.pdf-abc123.json']).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
namesYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations already include destructiveHint=true, and the description adds valuable context: documents are removed from storage entirely and also from any workspaces that had them embedded. This goes beyond the annotation by detailing secondary effects.

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?

The description is compact, front-loaded with purpose, then adds behavioral detail and a structured Args block. Every sentence earns its place without redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple destructive tool with one parameter and an output schema, the description covers purpose, effects (including workspace impact), and parameter format. It doesn't mention error cases or prerequisites, but those are not critical given the output schema exists.

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

Parameters5/5

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

Schema coverage is 0% (only 'names' as array of strings), but the description compensates fully with an Args section that explains names are from list_documents and provides a concrete example. This is clear, actionable guidance.

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 clearly states 'Permanently delete one or more documents from the system' with a specific verb (delete) and resource (documents). It distinguishes from siblings like anythingllm_remove_folder (folders) and anythingllm_get_document (read operation).

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?

The description implies usage: when you need to permanently delete documents and notes they are removed from workspaces. It does not explicitly name alternatives or exclusions, but the context of sibling tools makes the intended use clear.

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/andreperez/anythingllm-mcp'

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