Skip to main content
Glama

read

Convert PDFs, Office files, EPUB, HTML, CSV, images, audio/video, URLs, and directories into clean Markdown with page markers and continuation cursors.

Instructions

Read any document as clean Markdown: PDF, Word (DOCX), PowerPoint (PPTX), Excel (XLSX/XLS/ODS), CSV, EPUB, HTML or a web URL, Markdown/text, images (metadata + OCR), audio/video (metadata, chapters, subtitles). Pages/slides/sheets carry style markers for citation. Long documents stop at max_tokens (default 20000) and end with a cursor to continue; choose pages with pages: "1-5,8". A directory returns its readable files.

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": {
      "source": "<source>"
    },
    "name": "read"
  }
}

Input Schema

NameRequiredDescriptionDefault
ocrNoLocal OCR: auto, vlm, or tesseract. Auto uses the installed doc-VLM engine and weights (`anymd setup ocr` installs both, an explicit opt-in), otherwise tesseract. vlm without that setup returns a one-line setup notice. No automatic downloads. Boolean false disables; true retains automatic OCR.
nodeNoRead a section id returned by outline; repeat node with a continuation cursor.
pagesNoPages (PDF), slides, sheets, or chapters to read, e.g. "1-5,8". Default: all.
cursorNoContinue a previous read with the cursor from its last line.
imagesNoImages embedded inside PDFs, DOCX, PPTX and EPUB files. "refs" (default) saves each meaningful raster image once to the anymd cache and marks its place in the Markdown as ![caption](absolute path) plus an <!-- image: WxH, page N --> comment, so you can open the file yourself; logos, icons and repeated headers are skipped. "none" leaves images out. Standalone image files are not affected.
sourceYesFile path, http(s) URL, or directory. PDF, DOCX, PPTX, XLSX/XLS/ODS, CSV/TSV, EPUB, HTML, Markdown/text, images, audio/video, SRT/VTT. A directory returns the list of readable files.
timelineNoLocal video only: read this bounded playback window as deterministic timeline sections. end_ms is required; the window is half-open, at most ten minutes and twenty scenes.
revisionsNoTracked changes and comments in Word (DOCX) files. "markup" (default) shows them as CriticMarkup: {++inserted++}, {--deleted--}, {~~old~>new~~}, {==commented==}{>>Author (date): comment<<}, each change followed by its author and date. "accept" gives the text with every change accepted and "reject" the text with every change rejected, both without comments. A document with no tracked changes or comments reads the same either way.
max_tokensNoToken budget (default 20000). Longer documents stop at a unit boundary and end with a cursor.
transcriptNoTranscribe audio/video locally with bundled transcribe-cpp and Qwen3-ASR-1.7B Q8. Needs preinstalled SHA-256 pinned weights (~2.2 GB), unless download_asr_model is true. Audio stays local. Default false.
download_asr_modelNoImplies transcript. Downloads pinned Qwen3-ASR-1.7B Q8 weights (~2.2 GB) into the anymd cache. Downloads only when explicitly enabled. Legacy download_whisper_model is accepted as an alias. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.1

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations at all, the description carries the load and does disclose real behavior: output is clean Markdown with <!-- page N --> citation markers, long reads truncate at max_tokens and return a cursor, and directories return a file listing. It does not discuss permissions, caching side effects for image extraction, or rate limits, which keeps it below 5.

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 core verb and output contract, then layers pagination, page selection, and directory behavior in three dense sentences. Nothing is wasted, though the format enumeration and trailing clauses make it heavier than strictly necessary.

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?

Eleven parameters with no annotation coverage and no output schema make this a complex tool, and the description does supply the missing output contract (Markdown plus citation markers) and truncation/cursor semantics that an agent needs to chain calls. Remaining parameter behaviors are fully documented in the schema, so the gap is small.

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%, so the baseline is 3. The description restates pages formatting ("1-5,8") and the max_tokens default of 20000, both of which are already in the schema, adding little meaning beyond it; behavioral parameters like ocr, timeline, transcript and revisions are left entirely to the schema.

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?

Opens with a specific verb and resource ("Read any document as clean Markdown") and enumerates every supported format, including URLs and directories, so the tool's role is unmistakable. It does not name or contrast with siblings like outline, search, or inspect, so it stops short of a 5.

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

Usage Guidelines4/5

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

Gives clear context for when to call it (any document path/URL/directory, any format) and explains the continuation pattern with cursor and pages. No exclusions or routing to alternatives are stated, so it is clear-but-not-complete per the rubric.

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

Deploy Server

Other Tools