Skip to main content
Glama
54yyyu
by 54yyyu

zotero_batch_update

Batch update Zotero items: add/remove tags, and add/update/remove Extra key-value pairs (e.g., Better BibTeX keys). Select by keys, query, or tags to edit many at once.

Instructions

Edit metadata across many items in one call: add/remove tags and upsert/remove Key: value lines in Extra (Better BibTeX keys, tex.* fields). Select items by item_keys, and/or a free-text query, and/or an existing tag (query and tag are ANDed; tag may be a list to OR); item_keys wins. At least one selector AND one action are required. add_tags/remove_tags keep the item's other tags — not a replace-all. set_keys upserts Extra lines, matching a line case-insensitively by its key: prefix and replacing it in place, else appending; remove_keys deletes those lines; lines without a colon are preserved. limit: max items for query/tag selection (default 50). Attachments and items needing no change are skipped and counted. Requires a writable library. Example: zotero_batch_update(tag='to-read', add_tags=['reviewed'], remove_tags=['to-read']).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagNo
limitNo
queryNo
add_tagsNo
set_keysNo
item_keysNo
remove_keysNo
remove_tagsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

No annotations are provided, so the description carries full burden, and it delivers. It discloses that set_keys upserts case-insensitively by key prefix and replaces in place else appends; remove_keys deletes lines while preserving colon-less lines; attachments and unchanged items are skipped and counted; and it requires a writable library. This is rich behavioral context beyond what any schema could convey.

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?

The description is dense and packed with meaningful content in a compact form, with the most important action verbs front-loaded. It uses specific technical terms (upsert, ANDed, case-insensitive prefix matching) to communicate efficiently. It's slightly long but every clause earns its place; a minor deduction for a run-on structure that could benefit from splitting.

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?

Given 8 parameters at 0% schema coverage, no annotations, and no sibling differentiation needed beyond what's possible, this description is impressively complete. It covers selection logic, action semantics, edge behaviors (attachments, unchanged items), prerequisites (writable library), and provides a full worked example. The output schema exists, so return-value documentation is not needed from the description.

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 0%, so the description must compensate for all 8 parameters. It does compensate for most: item_keys, query, tag, add_tags, remove_tags, set_keys, remove_keys, and limit are each described with their semantics. However, the limit default of 50 is noted but not its impact on partial selection beyond 'max items for query/tag selection' — a minor gap since it could note what happens to unprocessed items.

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, high-value statement: 'Edit metadata across many items in one call: add/remove tags and upsert/remove `Key: value` lines in Extra'. It clearly distinguishes this batch mutation tool from siblings like zotero_update_item (single item) and zotero_search_items (read-only search), making it the definitive batch-edit tool.

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?

The description explicitly explains the selector logic ('Select items by item_keys, and/or a free-text query, and/or an existing tag; query and tag are ANDed; item_keys wins'), differentiates selectors from actions ('At least one selector AND one action are required'), and clarifies tag behavior ('add_tags/remove_tags keep the item's other tags — not a replace-all'). The inclusion of an example invocation cements when/how to use it.

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/54yyyu/zotero-mcp'

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