Skip to main content
Glama

zotero_get_annotations

Retrieve annotations (highlights and notes) from Zotero items. Filter by item key or return all annotations in the library; optionally fall back to direct PDF extraction.

Instructions

Get annotations (highlights and attached notes on PDF/EPUB attachments) for a specific item or across the active Zotero library. item_key: pass the parent item key OR an attachment key — both work; attachment-to-parent resolution is automatic. ALWAYS pass item_key when you know which item you want; calling without it returns every annotation in the library (potentially thousands). use_pdf_extraction=True falls back to direct PDF parsing when the Zotero API has no stored annotation record — useful for annotations made outside Zotero desktop. limit: cap on annotations returned; None (default) returns all. Uses Better BibTeX when Zotero desktop is running locally, otherwise the Zotero web API. Example: zotero_get_annotations(item_key='ABC12345') → every highlight/note on that paper.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
item_keyNoOptional Zotero item key/ID to filter annotations by parent item
use_pdf_extractionNoWhether to attempt direct PDF extraction as a fallback
limitNoMaximum number of annotations to return

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description fully discloses behavioral traits: automatic attachment-to-parent resolution, fallback to PDF parsing when use_pdf_extraction=True, the limit parameter's default behavior (returns all), and the potential for large result sets when called without item_key. This adds significant context beyond the input schema.

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?

The description is a single paragraph, but it efficiently front-loads the main purpose and then details each parameter. It could benefit from bullet points for readability, but every sentence adds unique value with no redundancy.

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?

Given the tool has an output schema (exists), the description adequately covers what the tool does, how to use each parameter, and important edge cases (no item_key, fallback). It does not explain return format, but that is handled by the output schema.

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?

Although schema description coverage is 100%, the description adds valuable meaning: item_key accepts both parent and attachment keys, limit=None returns all annotations, and use_pdf_extraction triggers a fallback. It also includes an example call (zotero_get_annotations(item_key='ABC12345')). This goes beyond the schema's bare descriptions.

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 clearly states the tool retrieves annotations (highlights and notes) for a specific item or across the library. It uses a specific verb 'Get annotations' and distinguishes itself from related tools like zotero_get_notes or zotero_read_pdf_pages by specifying the content type and scope.

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?

The description provides clear guidance on when to use the item_key parameter ('ALWAYS pass item_key when you know which item you want') and warns against calling without it (returns potentially thousands of annotations). It explains the fallback behavior of use_pdf_extraction and mentions the underlying API choice (Better BibTeX vs web API). However, it does not explicitly differentiate from sibling tools like zotero_get_notes or zotero_search_items.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/54yyyu/zotero-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server