Skip to main content
Glama
korean-docs-mcp

korean-docs-mcp

Search indexed documents

search
Read-onlyIdempotent

Find matching passages in indexed Korean documents by query, with morpheme-aware BM25 ranking and optional semantic matches for answering questions from local files.

Instructions

Find the passages in indexed documents that match a query.

Use this to answer a question from the user's documents; use list_documents instead to see which documents exist. Korean morpheme analysis drops particles and endings, so "예산을" also finds "예산의". Ranking is BM25; with embeddings enabled, the last quarter of the hits are semantic matches the keyword search missed. Each hit has the passage text (a table is returned whole as a Markdown table, with merged cells repeated in every row they span), its heading, the document path and title, and a chunk number; pass the path and chunk to read_document for the surrounding text. Read-only. If nothing matches, try other or fewer words, or check that the folder was indexed.

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": {
      "query": "<query>"
    },
    "name": "search"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNo"auto" uses hybrid when the server runs with embeddings and keyword otherwise; "vector" and "hybrid" need embeddings.auto
limitNoMaximum number of hits, 1-30.
queryYesKeywords to look for, e.g. "청년 주거 지원 대상". Plain words work better than a full sentence.
folderNoOnly documents under this folder (and its subfolders). Omit for every indexed document.
match_allNoOnly return chunks that contain every query word (keyword side only).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.2.0
    • addedInput schema / properties / folder / description
      Added value: +"Only documents under this folder (and its subfolders). Omit for every indexed document."
    • addedInput schema / properties / limit / description
      Added value: +"Maximum number of hits, 1-30."
    • addedInput schema / properties / limit / maximum
      Added value: +30
    • addedInput schema / properties / limit / minimum
      Added value: +1
    • addedInput schema / properties / match_all / description
      Added value: +"Only return chunks that contain every query word (keyword side only)."
    • addedInput schema / properties / mode
      Added value: +{
      +  "default": "auto",
      +  "description": "\"auto\" uses hybrid when the server runs with embeddings and keyword otherwise; \"vector\" and \"hybrid\" need embeddings.",
      +  "enum": [
      +    "auto",
      +    "keyword",
      +    "vector",
      +    "hybrid"
      +  ],
      +  "title": "Mode",
      +  "type": "string"
      +}
    • addedInput schema / properties / query / description
      Added value: +"Keywords to look for, e.g. \"청년 주거 지원 대상\". Plain words work better than a full sentence."
  2. First observedv0.1.1

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the 'Read-only' sentence is redundant, but the description adds substantial non-obvious behavior: Korean morpheme stripping means '예산을' matches '예산의', BM25 ranking, and that the last quarter of hits are semantic matches when embeddings are on. It also discloses the hit shape, including the unusual rule that tables return whole as Markdown with merged cells repeated per row.

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 purpose and the sibling disambiguation before details, and almost every sentence carries information. The merged-cell parenthetical is dense and slightly over-specified, but it substitutes for the absent output schema, so it largely earns its place.

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?

With no output schema, the description fully specifies the return shape (passage text, heading, path, title, chunk number) and how to chain into read_document. For a 5-parameter search tool with a hybrid/keyword mode split, nothing an agent needs to call it correctly is missing.

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 coverage is 100%, so the baseline is 3, but the description earns more by explaining that queries are morpheme-analyzed and that plain words beat full sentences — real guidance on how to shape the required 'query' value. It does not add anything for mode, limit, folder, or match_all, leaving those entirely to 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?

States a specific verb and resource at the right granularity: 'Find the passages in indexed documents that match a query' — passages, not documents. It explicitly separates itself from list_documents (which documents exist) and read_document (surrounding text), so an agent can route without opening any schema.

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 an explicit when-to-use ('to answer a question from the user's documents'), names the alternative for a different need (list_documents), and points to read_document for follow-up via path+chunk. It also covers the failure case with concrete remediation: try other or fewer words, or verify the folder was indexed.

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