Skip to main content
Glama
mcp-docs-reader

mcp-docs-reader

by aranshayan

Read text file

read_text
Read-onlyIdempotent

Reads a .md or .txt file with pagination, letting you fetch long documents in chunks using a start index and a character limit.

Instructions

Read a .md or .txt file (paginated).

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_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
max_charsNo
start_indexNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior3/5

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

The annotations already establish that this is a safe, read-only, idempotent, closed-world operation, so the safety profile is covered. The description adds one genuinely useful behavioral fact — that results are paginated and therefore may be partial — but says nothing about encoding, error behavior on missing files, or how truncation is signalled.

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?

A single front-loaded sentence with no filler, which is the right shape for a simple read tool. The brevity is efficient rather than padded, though it edges toward under-specification.

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

Completeness2/5

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

With 0% schema coverage, no output schema, and a pagination mechanic that requires the caller to loop, the description leaves the parameters and the continuation protocol entirely undocumented. For a three-parameter paginated reader, this is too thin to call correctly in one attempt.

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

Parameters2/5

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

Schema description coverage is 0% for three parameters, so the definition must carry the meaning and largely does not. 'Paginated' gestures at start_index and max_chars without explaining that max_chars is a character count with a 500–200000 range and a 40000 default, or that start_index is a character offset — an agent cannot confidently set these from the text.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb ('Read') and resource ('a .md or .txt file'), and the extension restriction implicitly separates it from read_docx, read_pdf, and read_spreadsheet, which handle other formats. It does not explicitly name those siblings, so the differentiation is inferred rather than stated.

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

Usage Guidelines2/5

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

Beyond the '(paginated)' parenthetical there is no guidance on when to choose this over the other read_* tools, nor when a single call suffices versus needing to continue paging. The agent must infer that a truncated result means calling again with a different start_index.

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