Skip to main content
Glama
korean-docs-mcp

korean-docs-mcp

Remove documents from the index

remove_document
DestructiveIdempotent

Removes a document or every indexed document under a folder from the search index, leaving files on disk untouched.

Instructions

Remove a document, or every document under a folder, from the search index.

Use this when a document should no longer appear in search results, for example a file that was moved out of an indexed folder or a folder that should not be searched any more. It deletes index entries only: the files on disk are never touched, and running index_documents on the folder again adds them back. Returns the paths that were removed.

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": {
      "path": "<path>"
    },
    "name": "remove_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesPath of an indexed document, or of a folder to remove every indexed document under it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the description's real value is scoping that destruction: it deletes index entries only, never touches files on disk, and can be undone by re-running index_documents. That is exactly the context an agent needs before a destructive call, though it does not describe partial-failure behavior or how many paths come back for large folders.

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 short sentences, front-loaded with the action and scope, then usage, then the critical non-destructive-to-files caveat. Every sentence carries information an agent needs and none repeats structured fields verbatim.

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?

For a one-parameter destructive tool with full annotation coverage and no output schema, the description supplies everything needed: what is removed, how to select it, what is not affected, how to reverse it, and what is returned (the removed paths). No meaningful gap remains.

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 description coverage is 100% and the single 'path' parameter is already documented as accepting either a document path or a folder path. The description restates the same dual-mode semantics without adding format details, path syntax, or error conditions, so it adds marginal value on top of the 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?

The opening sentence states a specific verb (remove), a specific resource (documents in the search index), and both operating modes (single document or an entire folder subtree). This distinguishes it cleanly from search, read_document, and list_documents, and pairs it implicitly with index_documents.

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

Usage Guidelines5/5

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

It gives an explicit when-to-use trigger ('when a document should no longer appear in search results') backed by two concrete examples (moved file, folder that should not be searched). It also names the inverse operation (index_documents re-adds them) so the agent understands the action is reversible, and it rules out the wrong interpretation that files are deleted.

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