Skip to main content
Glama
Zotero MCP
by 54yyyu

Zotero Update Annotation

zotero_update_annotation

Modify an existing Zotero annotation's text, comment, color, or tags, including adding or removing tags, while keeping its PDF/EPUB position intact.

Instructions

Update an existing Zotero annotation. Editable fields: text (highlight text), comment, color (hex like '#ffd400'), and tags. Tags can be replaced wholesale via tags, or edited incrementally via add_tags/remove_tags (mutually exclusive with tags). Position/page/sortIndex are anchored to the PDF/EPUB geometry and are not editable.

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": {
      "annotation_key": "<annotation_key>"
    },
    "name": "zotero_update_annotation"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNo
textNo
colorNo
commentNo
add_tagsNo
remove_tagsNo
annotation_keyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.17.3
    • removedInput schema / properties / add_tags / default
      Removed value: -null
    • removedInput schema / properties / color / default
      Removed value: -null
    • removedInput schema / properties / comment / default
      Removed value: -null
    • removedInput schema / properties / remove_tags / default
      Removed value: -null
    • removedInput schema / properties / tags / default
      Removed value: -null
    • removedInput schema / properties / text / default
      Removed value: -null
  2. Changed16 schema fields changedv0.16.0
    • removedInput schema / properties / add_tags / anyOf
      Removed value: -[
      -  {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / add_tags / items
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / add_tags / type
      Added value: +"array"
    • removedInput schema / properties / color / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / color / type
      Added value: +"string"
    • removedInput schema / properties / comment / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / comment / type
      Added value: +"string"
    • removedInput schema / properties / remove_tags / anyOf
      Removed value: -[
      -  {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / remove_tags / items
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / remove_tags / type
      Added value: +"array"
    • removedInput schema / properties / tags / anyOf
      Removed value: -[
      -  {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / tags / items
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / tags / type
      Added value: +"array"
    • removedInput schema / properties / text / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / text / type
      Added value: +"string"
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "result": {
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "result"
      -  ],
      -  "type": "object",
      -  "x-fastmcp-wrap-result": true
      -}New value: +null
  3. Addedv0.4.1

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden and does disclose useful behavior: which fields are editable and that position/page/sortIndex are anchored to PDF/EPUB geometry and cannot be changed, which prevents a class of bad calls. It omits write-authorization requirements (notable given a sibling zotero_authorize_local_writes), what happens to unspecified fields, validation behavior for malformed colors/tags, and any error semantics.

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?

Two dense sentences with the purpose front-loaded, followed by the editable-field list and the mutability exclusion. Every clause carries information and nothing is repeated from the schema verbatim.

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 a 7-parameter mutation tool with no annotations and no output schema, the description covers the editable surface, the tag-editing modes, and the immutability of geometry fields. It stops short of authorization prerequisites and result/return behavior, which an agent would still need to infer.

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 names each editable parameter, gives the color format with a hex example ('#ffd400'), and explains that tags/add_tags/remove_tags are mutually exclusive modes. Only annotation_key is left without format detail (e.g., the Zotero key format), a minor gap.

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 uses a specific verb and resource ('Update an existing Zotero annotation') and immediately enumerates what is editable (text, comment, color, tags), so an agent knows exactly what the tool touches. It does not explicitly contrast itself with zotero_batch_update or zotero_update_item, though the 'annotation' scope makes the distinction reasonably clear from the name.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than stated: the tool is for modifying an existing annotation, with tag replacement vs. incremental editing described as an either/or choice. There is no explicit guidance on when to prefer this over zotero_batch_update, zotero_create_annotation, or zotero_update_item, and no note about prerequisites or when the call will fail.

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