Skip to main content
Glama

update_item

Change field values or replace creators on an existing Zotero item, using its current version to prevent overwriting concurrent edits.

Instructions

Update the metadata of an existing Zotero item: change field values and/or replace its creators. Pass the item's current version (from get_items_details) — the update is rejected as a version_conflict if the item changed since you read it, so re-read and retry in that case. fields are Zotero field names valid for the item's type (e.g. title, date, publicationTitle, volume, pages, DOI, url, publisher). itemType cannot be changed, and key/version/collections/parentItem/relations/dateAdded/dateModified are managed by Zotero and rejected. Use add_items for new items, create_note for notes, and delete_items to remove items.

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": {
      "item_key": "<item_key>",
      "version": "<version>",
      "fields": "<fields>"
    },
    "name": "update_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
fieldsYesField values to set, as { fieldName: value }. Use Zotero field names valid for the item type (e.g. { "title": "New title", "date": "2024" }). Pass {} if you only want to change creators.
versionYesThe item's current version, as returned by get_items_details. Guards against overwriting a concurrent change.
creatorsNoReplaces the item's entire creators list when provided. Each creator is {firstName, lastName, creatorType} or {name, creatorType} for institutional authors.
item_keyYesKey of the item to update (from search_library, get_items_details or get_collection_items).
library_idNoNumeric user or group ID for this call (a group's ID is the number in its zotero.org/groups/<id> URL). Default: the configured library. Required with library_type 'group' when the server is configured for a user library.
library_typeNoLibrary for this call: 'user' (personal) or 'group'. Default: the library configured on the server.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.1.0

TDQS

A4.5/5.0
Behavior5/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 so: it discloses optimistic concurrency behavior, the version_conflict failure mode and its retry remedy, that itemType is immutable, and that key/version/collections/parentItem/relations/dateAdded/dateModified are rejected as Zotero-managed. It also notes that creators are wholly replaced rather than merged.

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?

Four sentences with the mutation and its constraint front-loaded, then version semantics, then field validity rules, then sibling routing. Efficient, though the field-name example list and the managed-field blacklist partially duplicate what the schema already declares.

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?

Covers concurrency, immutability, rejected fields, creator replacement, and alternatives — more than enough for a mutation tool with zero annotation coverage and six parameters. The only omission is what the call returns (e.g. the new version), which matters here since a subsequent update depends on it, and there is no output schema to fall back on.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the schema descriptions already explain version provenance, the creators replacement semantics, and library_id/library_type defaults. The description largely restates these, adding only an enumerated list of typical field names, so baseline 3 is right.

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 ('Update the metadata of an existing Zotero item') plus the two editable surfaces (field values, creators). It also names siblings it is not (add_items, create_note, delete_items), so the agent can distinguish it without opening any schema.

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

Usage Guidelines5/5

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

Explicit routing: use add_items for new items, create_note for notes, delete_items to remove items. It also gives the operational condition for the version guard ('if the item changed since you read it, re-read and retry'), which is exactly the decision an agent faces mid-call.

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