Skip to main content
Glama
korean-docs-mcp

korean-docs-mcp

Index a folder of documents

index_documents
Idempotent

Index HWP, HWPX, PDF, DOCX, XLSX, PPTX, Markdown, and text files in a folder into a local SQLite search index. Run before searching and after changes to update modified files and remove deleted ones.

Instructions

Index the HWP, HWPX, PDF, DOCX, XLSX, PPTX, Markdown and text files in a folder.

Call this once before search can find anything in the folder, and again whenever its files may have changed: only new or modified files are parsed again, and files deleted from the folder are dropped from the index. It reads the files but never changes them; the index is a local SQLite file. The first run over many files takes a while (parsing, and embedding if the server runs with embeddings). Returns how many files were indexed, updated, unchanged or removed, and which files failed to parse and why.

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": {
      "folder": "<folder>"
    },
    "name": "index_documents"
  }
}

Input Schema

NameRequiredDescriptionDefault
folderYesAbsolute path of the folder to index; ~ is expanded.
recursiveNoAlso index subfolders.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.2.0
    • addedInput schema / properties / folder / description
      Added value: +"Absolute path of the folder to index; ~ is expanded."
    • addedInput schema / properties / recursive / description
      Added value: +"Also index subfolders."
  2. First observedv0.1.1

TDQS

A4.4/5.0
Behavior4/5

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

Adds real context beyond the annotations: it explains that readOnlyHint=false only reflects writing a local SQLite index file, not modifying the user's documents, which resolves the apparent tension in the annotations. It also discloses cost ('first run over many files takes a while') and the incremental/idempotent re-run behavior. Minor gap: no guidance on what happens if a run is interrupted or how long large folders take.

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

Conciseness4/5

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

Front-loaded with the action and its precondition, and every sentence carries information (file types, trigger timing, mutation semantics, cost, return values). The nested parenthetical about parsing and embedding is slightly run-on but not wasteful.

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?

There is no output schema, and the description compensates by stating exactly what is returned (indexed/updated/unchanged/removed counts plus parse failures with reasons). Combined with the trigger timing and mutation semantics, an agent has everything needed to call it correctly.

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 schema already documents both 'folder' (absolute path, ~ expansion) and 'recursive' (also index subfolders). The description adds no parameter-level meaning beyond that, so the baseline 3 applies.

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?

States a specific verb (index) and resource (a folder of HWP/HWPX/PDF/DOCX/XLSX/PPTX/Markdown/text files), so scope is unambiguous. It also distinguishes itself from the search sibling by stating that search cannot find anything until this runs.

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?

Gives explicit trigger conditions: call once before search can find anything, and again whenever files may have changed. It also explains the incremental consequence of re-running (only new/modified files re-parsed, deleted files dropped), which tells the agent re-indexing is cheap rather than something to avoid.

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