Skip to main content
Glama

Annotate a PDF (highlights, notes)

zotero_annotate

Add or delete PDF annotations (highlights, underlines, notes) in your Zotero library. Specify parent item, type, text, and position to create or remove them.

Instructions

Add or delete Zotero PDF annotations (highlights, underlines, notes) — the same objects you create in the Zotero PDF reader. action:"add" needs parent (a regular item key OR a PDF attachment key) and annotations: each with type (highlight|note|underline, default highlight), text (the exact highlighted passage), optional comment, color, page (0-based page index), and position ({"pageIndex":N,"rects":[[x1,y1,x2,y2],...]} in PDF points with bottom-left origin — without a position a highlight cannot render in place). action:"delete" trashes the annotations in annotation_keys. Writes go to the running Zotero desktop app for your personal library (via its connector protocol, or its local-API writes where available), otherwise to the cloud Web API.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionNoDefault "add".
parentNoItem key or PDF attachment key to annotate.
library_idNo
annotationsNoAnnotations to add.
library_typeNo
annotation_keysNoAnnotation keys to trash (action:"delete").
Behavior4/5

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

Annotations already indicate readOnlyHint=false, and the description adds valuable behavioral detail: delete 'trashes' annotations, writes go to the running Zotero desktop app via connector protocol or local API, and highlights require a position to render. This goes beyond the annotation metadata without contradicting it.

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 front-loaded with a clear overview, then efficiently covers action-specific behavior, position requirements, and write targets. Every sentence adds useful operational detail without fluff, and the structure mirrors the tool's action-based usage.

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 complex tool with six parameters, nested annotation objects, and no output schema, the description covers the essential usage paths: add with required parent/annotations, delete with annotation_keys, position semantics, and write destination. Remaining parameters like library_id and tags are documented in the schema, so the description is sufficiently complete.

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?

The description adds substantial meaning beyond the schema: it explains that action:'add' needs parent and annotations, defines the exact highlighted passage requirement, specifies the position format with PDF points and bottom-left origin, and clarifies that without a position highlights cannot render. This compensates for the 67% schema coverage.

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: 'Add or delete Zototero PDF annotations (highlights, underlines, notes)' and explicitly ties them to the same objects created in the Zotero PDF reader. This clearly distinguishes the tool from siblings like zotero_attachment or zotero_attach_file.

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 gives clear context for when to use the tool: for adding or deleting PDF annotations with add/delete actions. It explains the write target (desktop app vs cloud Web API) but does not explicitly name alternatives or state when not to use it, so it stops short of a 5.

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/oscardvs/zoteus'

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