Skip to main content
Glama
Zotero MCP
by 54yyyu

Zotero Get Annotations

zotero_get_annotations

Retrieve PDF/EPUB highlights and their comments for a Zotero item or the active library, with optional PDF extraction when stored annotations are missing.

Instructions

Get PDF/EPUB annotations (highlights and their comments) for one item, or for the whole active library when item_key is omitted (can be thousands, so pass item_key when you know it). item_key: the parent item or an attachment. use_pdf_extraction=True parses the PDF itself when Zotero has no stored annotations (e.g. ones made in another reader). limit: default all. format: 'markdown' (default) or 'json' (normalized records).

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": "zotero_get_annotations"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
formatNomarkdown
item_keyNo
use_pdf_extractionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.17.3
    • removedInput schema / properties / item_key / default
      Removed value: -null
    • removedInput schema / properties / limit / default
      Removed value: -null
  2. Changed9 schema fields changedv0.16.0
    • removedInput schema / properties / format / description
      Removed value: -"``markdown`` for human-readable output or ``json`` for\nnormalized structured records."
    • removedInput schema / properties / item_key / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / item_key / description
      Removed value: -"Optional Zotero item key/ID to filter annotations by parent item"
    • addedInput schema / properties / item_key / type
      Added value: +"string"
    • removedInput schema / properties / limit / anyOf
      Removed value: -[
      -  {
      -    "type": "integer"
      -  },
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / limit / description
      Removed value: -"Maximum number of annotations to return"
    • addedInput schema / properties / limit / type
      Added value: +"integer"
    • removedInput schema / properties / use_pdf_extraction / description
      Removed value: -"Whether to attempt direct PDF extraction as a fallback"
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "result": {
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "result"
      -  ],
      -  "type": "object",
      -  "x-fastmcp-wrap-result": true
      -}New value: +null
  3. Changed1 schema field changedv0.7.0
    • addedInput schema / properties / format
      Added value: +{
      +  "default": "markdown",
      +  "description": "``markdown`` for human-readable output or ``json`` for\nnormalized structured records.",
      +  "enum": [
      +    "markdown",
      +    "json"
      +  ],
      +  "type": "string"
      +}
  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 are supplied, so the description carries the full behavioral burden. It discloses the important scale risk of whole-library retrieval, the PDF-extraction fallback for annotations not stored in Zotero, and that limit defaults to all, though it does not discuss permissions or return structure in depth.

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?

The description is dense but front-loaded, starting with what is returned and immediately following with the main scoping decision. Every clause adds operational value, with no filler or repetition.

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 a four-parameter read tool with no output schema and no annotations, the description covers scope, scale, fallback extraction behavior, and all parameter meanings. An agent has enough information to choose between item-level and library-level retrieval and to invoke the tool correctly.

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%, and the description compensates for every parameter: item_key can be a parent item or attachment, use_pdf_extraction enables parsing when Zotero has no stored annotations, limit defaults to all, and format accepts markdown or json with markdown as default.

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?

The description states a specific verb and resource: get PDF/EPUB annotations, including highlights and their comments, scoped to one item or the active library. It is clear without needing the schema, though it does not explicitly contrast itself with adjacent tools such as zotero_get_notes or zotero_get_item_fulltext.

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 explains that omitting item_key retrieves the whole active library and recommends passing item_key when known because the result can be thousands of records. It also says when to use use_pdf_extraction and describes the format choice, but it does not name alternative tools or explicitly state when not to use this one.

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