Skip to main content
Glama
mcp-local-reference

mcp-local-reference

add_reference_by_doi

Add a Zotero reference by DOI: resolve metadata via Crossref, check for duplicates in your local library, and create the item only when new; preview changes with dry run.

Instructions

Add a reference to Zotero by DOI.

    Resolves metadata via Crossref, deduplicates against the local library,
    and POSTs a new item if not duplicate.

    Args:
        doi: The DOI string (e.g., '10.1145/3458817.3476195').
        collection_key: Optional Zotero collection key to file the new item in.
        dry_run: If True (default), preview the resolved metadata without writing.
    

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": {
      "doi": "<doi>"
    },
    "name": "add_reference_by_doi"
  }
}

Input Schema

NameRequiredDescriptionDefault
doiYes
dry_runNo
collection_keyNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the burden and mostly does: it discloses the Crossref dependency, that deduplication happens against the local library, that a new item is POSTed only if not duplicate, and that dry_run defaults to previewing without writing. It omits prerequisites such as Zotero API authentication and never says what happens when a duplicate is found (error vs. return existing item) or when the DOI fails to resolve.

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 summary sentence with the Crossref/dedupe/POST pipeline is front-loaded and high value, and the Args block is tight. The docstring-style 'Args:' formatting is slightly redundant given a formal input schema, but no sentence is wasted.

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?

An output schema exists, so return values needn't be explained, and the write path is well covered for a mutation tool. The remaining gaps are duplicate-result behavior and auth requirements — meaningful for a dedupe-then-POST operation but not enough to break usability.

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

Parameters5/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, and it does for every parameter: a concrete DOI example ('10.1145/3458817.3476195'), the meaning and purpose of collection_key as the filing destination, and the True-by-default dry_run preview semantics — details absent from the bare schema titles.

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 first line names a specific verb and resource — add a reference to Zotero by DOI — and the identifier type alone distinguishes it from add_reference_by_arxiv and add_reference_by_isbn. An agent can select it without opening the 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?

The description makes the triggering condition clear (you have a DOI) and signals the dry_run preview path. It does not explicitly state when not to use it (e.g. that other identifier types belong to sibling tools), but the DOI framing makes the boundary obvious in context.

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