Skip to main content
Glama
korean-docs-mcp

korean-docs-mcp

Read an indexed document

read_document
Read-onlyIdempotent

Reads an indexed document as Markdown from the start, around a search hit, or from a saved offset, enabling you to retrieve surrounding context or continue reading page by page.

Instructions

Read an indexed document as Markdown, from the start, around a search hit, or from an offset.

Use after search, when a hit's passage is not enough and you need the text around it, or to read a whole document page by page: when the result has a next_offset, call again with offset=next_offset. The document must have been indexed; the text comes from the index, so re-run index_documents if the file changed. Read-only.

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": "read_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesDocument path exactly as returned by search or list_documents.
chunkNoChunk number from a search hit; the text starts a little before it. Omit to start at the beginning.
offsetNoCharacter offset to start from, e.g. the next_offset of a previous call, to keep reading.
max_charsNoMaximum characters to return, 500-20000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.2.0
    • addedInput schema / properties / chunk / description
      Added value: +"Chunk number from a search hit; the text starts a little before it. Omit to start at the beginning."
    • addedInput schema / properties / max_chars / description
      Added value: +"Maximum characters to return, 500-20000."
    • addedInput schema / properties / max_chars / maximum
      Added value: +20000
    • addedInput schema / properties / max_chars / minimum
      Added value: +500
    • addedInput schema / properties / offset
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Character offset to start from, e.g. the next_offset of a previous call, to keep reading.",
      +  "title": "Offset"
      +}
    • addedInput schema / properties / path / description
      Added value: +"Document path exactly as returned by search or list_documents."
  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?

Goes beyond the read-only/idempotent annotations by disclosing that content comes from the index rather than the live file, that the document must already be indexed, and that staleness requires re-indexing. It does not state what happens on error (e.g. unindexed path or offset past end), which keeps it from a 5.

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?

Front-loaded with the core action, then usage, then prerequisites, in three tight sentences with no filler. Every sentence carries distinct information.

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?

With no output schema, the description still conveys the return format (Markdown) and the key output field (next_offset) that drives the pagination loop, so an agent can call and continue correctly. Only error/empty-result behavior is left implicit.

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 coverage is 100%, so path, chunk, offset, and max_chars are already fully documented. The description reinforces the pagination loop via next_offset and the 'around a hit' meaning of chunk but adds no syntax, defaults, or edge-case semantics beyond the schema; 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 (read) and resource (indexed document) plus the output format (Markdown) and the three entry modes: start, around a search hit, or from an offset. An agent can distinguish this from search, list_documents, and index_documents 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?

Explicitly says to use it after search when a hit's passage is insufficient, and to page with offset=next_offset when a next_offset is returned. It also names the sibling to re-run (index_documents) when the file has changed, giving both a when-to-use and an alternative.

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