Skip to main content
Glama
Zotero MCP
by 54yyyu

Zotero Read Pdf Pages

zotero_read_pdf_pages

Read selected pages from a Zotero item’s PDF to extract text or page images, including flagged equation/figure/table issues and zoomed regions.

Instructions

Read chosen pages of an item's PDF, e.g. after zotero_get_pdf_outline. item_key: the paper or its PDF attachment. Reads start_page through end_page (1-indexed; omit end_page for one page). format='text' (default) returns Markdown and flags pages whose equations, figures or tables the text garbles; format='image' returns PNG page images (up to 10) to read those exactly. rect=[x, y, width, height] (normalized 0-1, e.g. from zotero_get_page_layout) returns just that region of start_page, zoomed in.

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": {
      "item_key": "<item_key>",
      "start_page": "<start_page>"
    },
    "name": "zotero_read_pdf_pages"
  }
}

Input Schema

NameRequiredDescriptionDefault
rectNo
formatNotext
end_pageNo
item_keyYes
start_pageYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.17.3
    • removedInput schema / properties / end_page / default
      Removed value: -null
    • removedInput schema / properties / rect / default
      Removed value: -null
  2. Changed8 schema fields changedv0.16.0
    • removedInput schema / properties / end_page / anyOf
      Removed value: -[
      -  {
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / end_page / description
      Removed value: -"Last page to read (1-indexed). If omitted, reads only start_page."
    • addedInput schema / properties / end_page / type
      Added value: +"integer"
    • removedInput schema / properties / format / description
      Removed value: -"\"text\" for Markdown, \"image\" for PNG page images."
    • removedInput schema / properties / item_key / description
      Removed value: -"Zotero item key/ID of the paper or its PDF attachment."
    • changedInput schema / properties / rect / anyOf
      Previous value: -[
      -  {
      -    "items": {
      -      "type": "number"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "type": "number"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / rect / description
      Removed value: -"With format=\"image\", crop start_page to [x, y, width, height]."
    • removedInput schema / properties / start_page / description
      Removed value: -"First page to read (1-indexed)."
  3. Changed3 schema fields changedv0.12.4
    • addedInput schema / properties / format
      Added value: +{
      +  "default": "text",
      +  "description": "\"text\" for Markdown, \"image\" for PNG page images.",
      +  "enum": [
      +    "text",
      +    "image"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / rect
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "number"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "With format=\"image\", crop start_page to [x, y, width, height]."
      +}
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "result": {
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "result"
      -  ],
      -  "type": "object",
      -  "x-fastmcp-wrap-result": true
      -}New value: +null
  4. Addedv0.4.1

TDQS

A4.4/5.0
Behavior4/5

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

No annotations exist, so the description carries the full burden and does well: it discloses 1-indexed pagination, the omit-end_page-for-one-page rule, a hard cap of 10 image pages, the default format, and the important caveat that text extraction garbles equations/figures/tables and flags those pages. It stops short of describing failure modes (no PDF attached, page out of range) or output size/resolution for image mode.

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 action and workflow hook, then dense per-parameter guidance with no filler sentences. It is a single long paragraph, so scanning for a specific parameter takes effort, but essentially every clause carries 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 and no annotations, the description does the necessary work: it explains what text mode returns (Markdown plus garble flags) and what image mode returns (PNG page images, max 10). Remaining gaps are minor — the exact form of the flags and behavior on missing attachments.

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

Parameters5/5

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

Schema description coverage is 0%, yet the description compensates for every one of the five parameters: item_key (paper or its PDF attachment), start_page/end_page (1-indexed, omit end_page for a single page), format (enum values with defaults and behavioral consequences), and rect (normalized 0-1 in [x, y, width, height], applied to start_page, zoomed). This adds meaning the schema alone cannot convey.

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 and resource ('Read chosen pages of an item's PDF') with an explicit scope limit (start_page through end_page, or a rect region). It also distinguishes itself from the two closely related siblings by positioning them as prerequisites (get_pdf_outline for structure, get_page_layout for coordinates), so an agent can tell which tool produces page content versus page structure.

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 contextual guidance: use after zotero_get_pdf_outline, choose format='image' when the text mode garbles equations/figures/tables, and use rect with coordinates from zotero_get_page_layout. What it lacks is any explicit exclusion — e.g. when to prefer zotero_get_item_fulltext instead, or what happens if the item has no PDF attachment.

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