Skip to main content
Glama

Read a library document

read_paper
Read-only

Read a research library document's text, page by page (pages from_page to to_page, at most 30 at once; default the first 5). Give a document id from search_papers. Documents without a PDF in the library have no pages. 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": {
      "document_id": "<document_id>"
    },
    "name": "read_paper"
  }
}

Input Schema

NameRequiredDescriptionDefault
to_pageNo
from_pageNo
document_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, and the description reinforces read-only while adding real behavioral facts: a hard cap of 30 pages per call, a default window of the first 5 pages, and the edge case that PDF-less documents return no pages. It does not specify error behavior for out-of-range pages, which keeps it below 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?

Four short clauses, parenthetically bundling the pagination constraints, with the essential action and the id source front-loaded. No sentence is filler; even the 'Read-only' tag is terse confirmation rather than padding.

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?

For a three-integer read tool with no output schema, the definition covers purpose, id provenance, page limits, defaults, and the empty-result case — enough to invoke correctly. Only page-index base and out-of-range handling are left unspecified.

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 0%, so the description must carry parameter meaning, and it does: from_page/to_page define an inclusive page window with a 30-page ceiling and a 5-page default, and document_id is sourced from search_papers. It omits whether page numbering is 0- or 1-based, the one remaining ambiguity.

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?

The description opens with a specific verb and resource ('Read a research library document's text, page by page') and scopes it to paginated text retrieval. It also names the sibling search_papers as the source of the document id, so an agent can distinguish it from library-search tooling.

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?

It states the prerequisite context clearly: obtain a document id from search_papers first, and expect no pages for documents lacking a PDF. There is no explicit 'when not to use' or comparison to other read paths, but the usage condition is unambiguous.

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.

Resources