Skip to main content
Glama

add_items_by_doi

Add items to your Zotero library by resolving DOIs. Automatically retrieves metadata and creates the correct item type for any DOI-bearing work.

Instructions

Add items to your Zotero library by resolving DOIs. Works with ANY item type that has a DOI — journal articles, books, datasets, preprints, conference papers, reports, etc. For each DOI, resolves metadata via content negotiation and creates the item in Zotero with the correct type automatically. Returns a list of successfully added items (with item_key and title) and any failures.

WHEN TO USE vs add_items:

  • Use add_items_by_doi when the item HAS a DOI — it auto-resolves all metadata and attaches OA PDFs.

  • Use add_items when the item does NOT have a DOI, or when you need to override specific metadata fields (add_items_by_doi does not allow metadata overrides).

  • Mixed batch: if some items have DOIs and others don't, make two separate calls — add_items_by_doi for the DOIs and add_items for the rest.

WORKFLOW TIPS:

  • To collect metadata for all added items, call get_items_details with the returned item_keys (single batch call).

  • To create a cited Word document, use the returned item_keys as placeholders in a .docx, then call inject_citations. See inject_citations description for the full workflow.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
doisYesArray of DOI strings (e.g. ["10.1038/s41586-023-06647-8"]). Each DOI will be resolved and added to Zotero.
tagsNoTags to apply to all added items
collection_keyNoZotero collection key to add items to. Get this from create_collection or get_collections.
auto_attach_pdfNoAttach freely available OA PDFs via Unpaywall (default: true). This is lightweight and adds no cost — leave enabled. Only set to false if PDF attachment is causing errors.
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses that DOIs are resolved via content negotiation, the correct item type is set automatically, and the return value includes successes (with item_key and title) and failures. It also mentions OA PDF attachment behavior. Missing edge cases like invalid DOI handling, but for the core behavior it is quite transparent.

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?

The description is well-structured with clear sections: main purpose, when-to-use comparison, and workflow tips. Every sentence provides actionable information without filler. Though longer than typical, the length is justified by the tool's complexity and differentiation needs.

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?

Despite having no output schema, the description explicitly states the return format (successful items with item_key and title, plus failures). It also provides workflow tips for follow-up actions (get_items_details, inject_citations) and covers mixed-batches. This makes the description self-contained for most usage scenarios.

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 descriptions already cover all 4 parameters (100% coverage), so the baseline is 3. The description adds extra context: explains that DOIs are resolved automatically, clarifies that collection_key comes from create_collection/get_collections (already in schema), and strongly advises keeping auto_attach_pdf enabled unless errors occur. This goes beyond the schema's descriptive text.

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 'Add items to your Zotero library by resolving DOIs' – a specific verb+resource+method. It explicitly distinguishes from the sibling add_items tool by stating it works with ANY DOI-type item and auto-resolves metadata. This clearly conveys the tool's unique role.

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?

A dedicated 'WHEN TO USE vs add_items' section provides explicit decision criteria: use this when the item HAS a DOI, use add_items when it doesn't or when metadata overrides are needed, and gives mixed-batch guidance. This is exemplary usage guidance with clear alternatives.

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

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