Skip to main content
Glama

zotero_create_annotation

Create highlights, notes, images, or ink annotations on PDF attachments in Zotero by providing the attachment key and page position. Returns the new annotation's key.

Instructions

Create an annotation on a PDF attachment: a highlight, a note annotation, an image, or ink. annotation_position is the page placement as a JSON object, e.g. {'pageIndex': 0, 'rects': [[x1, y1, x2, y2]]} in PDF coordinates. Attach to the ATTACHMENT key (the PDF), not the parent item. Returns the new annotation's key.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
page_labelNoPrinted page label to show, e.g. '12'.
sort_indexNoSort position as 'pageIndex_chars', e.g. '00000_00042'.
attachment_keyYesKey of the PDF attachment item.
annotation_textNoHighlighted text (required for highlight).
annotation_typeYesOne of: highlight, note, image, ink.
annotation_colorNoHex color, e.g. '#ffd400'.
annotation_commentNoYour comment on the annotation.
annotation_positionYesPlacement as a JSON object, e.g. {'pageIndex': 0, 'rects': [[0.1, 0.2, 0.8, 0.3]]}.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Install Server

TDQS

A4.4/5.0
Behavior4/5

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

No annotations are provided, so the description carries the transparency burden. It discloses the return value ('Returns the new annotation's key'), the required PDF-coordinate placement format, and the critical attachment-key requirement. The mutating nature is obvious from 'Create,' and the description adds meaningful behavioral context beyond that.

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?

Three focused sentences front-load the purpose, then give the position format, attachment-key guidance, and return value. No filler or repetition; every sentence earns its place.

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?

For an 8-parameter tool with a nested position object and an output schema, the description covers the essential call semantics: annotation types, position format, attachment target, and return value. Optional parameter behaviors are already documented in the input schema, so the description is reasonably complete. It could add explicit notes about which parameters apply to each annotation type, but the schema partially covers that.

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 coverage is 100%, so the baseline is 3, but the description adds real value on top: annotation_position gets a concrete JSON example and coordinate-system clarification, and attachment_key is disambiguated with the 'not the parent item' warning. This goes beyond what the schema alone provides.

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: 'Create an annotation on a PDF attachment' and enumerates the four supported kinds (highlight, note annotation, image, ink). This clearly distinguishes it from sibling tools like zotero_create_note, which creates a standalone note rather than a PDF annotation.

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 operational context by saying 'Attach to the ATTACHMENT key (the PDF), not the parent item,' which prevents a common misuse. It does not explicitly contrast with alternative sibling tools, but the PDF-attachment framing is enough for an agent to infer when this tool applies.

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

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/ozbayenes123-ops/zotero-mcp-local-write'

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