Skip to main content
Glama

Read a long document with Phở

read_document
Idempotent

Read a long document without loading it into the conversation. Phở downloads and reads the file on its servers (a PDF or Word file; scanned PDFs are read page by page), then returns a short map of it (page count, outline) and ONLY the pages that answer the question, each marked with its page number so you can cite it. Use it instead of pasting or attaching a long paper, book, report, guideline or thesis: a 150-page book is about 100,000 tokens, and this returns the few pages needed. source is an https link to a PDF or .docx, a DOI (read from an open-access copy only), an arXiv id or a PMC id. document_id is a document already in the user's Phở account (see list_documents), which is how a user's own uploaded file is read: they upload it on pho.chat once. Give question (what the user wants to know) or pages ("12-15, 40"). With neither, a short document comes back whole and a long one comes back as its map. Call again with another question or other pages as often as needed. Personal information (names, ID, phone and card numbers, emails, addresses, dates of birth) is hidden by default before the text leaves Phở, so it never reaches this conversation; published papers (DOI, arXiv, PMC) are not hidden. Pass redact: false only when the user asks to see their own document unhidden. Works without a sign-in for public files that carry their text; nothing is saved then. With a free Phở sign-in the document is kept in the user's account (deletable with delete_document), scanned PDFs can be read, and the user gets a link to continue on pho.chat. No model on Phở answers the question: you do, from the returned pages.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "read_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
pagesNoExact pages to return, e.g. "12-15, 40". Wins over question.
redactNoHide personal information before the text leaves Phở. Default: on, off for published papers (DOI, arXiv, PMC). Set false only when the user asks.
sourceNoAn https link to a PDF or .docx, a DOI (10.xxxx/…), an arXiv id (2401.01234) or a PMC id (PMC1234567).
questionNoWhat the user wants to know from the document, in their words. Phở returns the pages that answer it.
max_charsNoUpper size of the returned text in characters (default 12,000, about 3,000 tokens).
document_idNoInstead of source: a document already in the user's Phở account.
retry_unreadNoFor a scanned PDF with pages that could not be read: read those pages again.
wait_secondsNoFor a scanned PDF: wait up to this many seconds (0-45) for Phở to finish reading it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations only give a generic read/write profile, so the description carries real weight and does: PII is stripped before text leaves the server, published papers are exempt, unauthenticated use saves nothing while a sign-in persists the document (deletable via delete_document), and no backend model answers the question. Minor gaps remain on pagination/truncation behavior under max_chars and what happens when wait_seconds expires, 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.

Conciseness4/5

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

Dense but front-loaded: the core behavior and the return shape come first, then source/document_id mechanics, then redaction and auth caveats. Almost every sentence carries actionable information, though the redaction and sign-in passages could be tightened without loss.

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?

For an 8-parameter tool with no output schema, the description describes the return value explicitly (page count, outline, only the answering pages tagged with page numbers) and covers auth, redaction, and re-invocation. An agent could call this correctly and cite results without further information.

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 a baseline of 3 applies, but the description genuinely adds meaning: accepted source forms including "DOI (read from an open-access copy only)", the upload-once flow behind document_id, and the pages-over-question precedence. It leaves max_chars, retry_unread and wait_seconds entirely to the schema, which is acceptable given full coverage.

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?

Opens with a specific verb and resource plus the defining constraint: "Read a long document without loading it into the conversation," and immediately explains the mechanism (server-side download, returns a page map and only the answering pages with page numbers). It is clearly distinct from siblings like list_documents and delete_document, which are named in their supporting roles.

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 states when to use it instead of alternatives ("instead of pasting or attaching a long paper, book, report...") with a token-cost rationale, names list_documents for account files, and describes iterative reuse ("Call again with another question or other pages as often as needed"). It also gives a when-to-set-redact-false exclusion.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.