Skip to main content
Glama
mcp-local-reference

mcp-local-reference

get_pdf_text

Extract text from a Zotero reference's PDF attachment by item key and optional page range for source content analysis.

Instructions

Extract text from a reference's PDF attachment.

    Args:
        item_key: The Zotero item key.
        start_page: First page to extract (0-indexed, default: first page).
        end_page: Last page to extract (exclusive, default: last page).
    

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>"
    },
    "name": "get_pdf_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
end_pageNo
item_keyYes
start_pageNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full disclosure burden, yet it says nothing about failure modes (no PDF attached, invalid item key), whether extraction is triggered lazily, page/size limits, or long-running behavior. It only implies it is a read operation, which is inferred from 'extract' rather than stated.

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?

Front-loaded purpose sentence followed by a tight per-argument list; no filler and the indexing/exclusivity details that matter are embedded economically.

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

Completeness3/5

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

An output schema exists so return values needn't be described, and parameters are covered. But for a tool with zero annotations and several plausible siblings, the absence of any routing guidance or error/precondition behavior leaves real gaps.

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 description coverage is 0%, so the description must compensate and largely does: it documents all three parameters, including that start_page is 0-indexed and end_page is exclusive, and gives defaults for both. item_key's explanation ('The Zotero item key') adds little, keeping it short of a 5.

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?

States a specific verb and resource: extract text from a reference's PDF attachment. Clear what it does, but it never distinguishes itself from siblings like read_local_pdf, index_pdfs, or search_passages, which an agent must choose between.

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?

No when-to-use guidance at all: nothing says when to prefer this over read_local_pdf or search_passages, and no prerequisites (e.g. whether the PDF must be attached/indexed first, or whether a Zotero-hosted item is required) are stated.

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