Skip to main content
Glama
Zotero MCP
by 54yyyu

Zotero Batch Update

zotero_batch_update

Batch edit many Zotero items in one call: add or remove tags and set or remove Key: value lines in Extra, selecting items by keys, query, or tags.

Instructions

Edit many items in one call: add or remove tags, and set or remove Key: value lines in Extra (BetterBibTeX keys, tex.* fields). Select by item_keys, or by query and/or tag (ANDed; a list of tags ORs); item_keys wins. Needs a selector and an action. add_tags/remove_tags leave other tags alone. set_keys upserts Extra lines by case-insensitive key; remove_keys deletes them. limit: items selected by query/tag (default 50, up to 1000); the report says if more matched. Example: (tag='to-read', add_tags=['reviewed'], remove_tags=['to-read']).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "zotero_batch_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagNo
limitNo
queryNo
add_tagsNo
set_keysNo
item_keysNo
remove_keysNo
remove_tagsNo

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 / item_keys / default
      Removed value: -null
    • removedInput schema / properties / remove_keys / default
      Removed value: -null
    • removedInput schema / properties / remove_tags / default
      Removed value: -null
    • removedInput schema / properties / set_keys / default
      Removed value: -null
    • removedInput schema / properties / tag / default
      Removed value: -null
  2. Changed19 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 / item_keys / anyOf
      Removed value: -[
      -  {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / item_keys / items
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / item_keys / type
      Added value: +"array"
    • removedInput schema / properties / limit / anyOf
      Removed value: -[
      -  {
      -    "type": "integer"
      -  },
      -  {
      -    "type": "string"
      -  }
      -]
    • addedInput schema / properties / limit / type
      Added value: +"integer"
    • removedInput schema / properties / remove_keys / anyOf
      Removed value: -[
      -  {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / remove_keys / items
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / remove_keys / type
      Added value: +"array"
    • 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"
    • changedInput schema / properties / set_keys / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {
      -      "type": "string"
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {
      +      "type": "string"
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / tag / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / tag / items
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / tag / type
      Added value: +"array"
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "result": {
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "result"
      -  ],
      -  "type": "object",
      -  "x-fastmcp-wrap-result": true
      -}New value: +null
  3. Addedv0.9.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that add_tags/remove_tags are non-destructive to other tags, that set_keys upserts by case-insensitive key, that remove_keys deletes, and that `limit` caps query/tag selection with a report noting more matches. It does not state whether writes require prior authorization, whether the edit is reversible, or what the per-item report contains.

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?

Front-loads the core action, then selection rules, then per-parameter semantics, ending with a concrete example. Dense parentheticals make it feel packed, but nearly every clause adds distinct information; the example 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 mutation tool with zero annotation coverage and no output schema, the description covers selection, mutation semantics, and the limit/report behavior well. Missing pieces are authorization preconditions and the shape of the returned report, which leaves an agent partially guessing about write access and results.

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% across 8 parameters, and the description compensates for nearly all of them: item_keys, query, tag (with AND/OR logic), limit (default 50, up to 1000), add_tags, remove_tags, set_keys, remove_keys. The one gap is `set_keys` accepting either an object or a string, whose two accepted forms are never explained.

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 ('Edit many items in one call') plus the exact operations covered (tags, `Key: value` lines in Extra). The phrase 'many items in one call' implicitly separates it from the single-item sibling `zotero_update_item`, so an agent can route correctly without opening a schema.

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 selection semantics ('Select by item_keys, or by query and/or tag (ANDed; a list of tags ORs); item_keys wins') and a prerequisite rule ('Needs a selector and an action'), plus a worked example. It omits any write-authorization prerequisite, which matters given a sibling named `zotero_authorize_local_writes`, and never names a single-item alternative.

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