Skip to main content
Glama
mcp-local-reference

mcp-local-reference

add_reference_by_arxiv

Add a Zotero reference from an arXiv ID by resolving metadata, deduplicating entries, and attaching the open-access PDF when available; preview with dry run before writing.

Instructions

Add a reference to Zotero by arXiv ID.

    Resolves metadata via the arXiv API, deduplicates, POSTs the item, and
    attempts to attach the open-access PDF as a child item (non-fatal if
    the PDF can't be fetched).

    Args:
        arxiv_id: The arXiv identifier (e.g., '2401.12345' or 'hep-th/0211177').
            Optional 'vN' version suffix preserved on the PDF URL.
        collection_key: Optional Zotero collection key.
        dry_run: If True (default), preview 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": {
      "arxiv_id": "<arxiv_id>"
    },
    "name": "add_reference_by_arxiv"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNo
arxiv_idYes
collection_keyNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/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 full burden and does well: it discloses the resolution step, deduplication, the POST, and a best-effort PDF attachment explicitly flagged as non-fatal. It stops short of saying what deduplication does on a hit (skip, update, or error) or what auth the POST requires.

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 core behavior is front-loaded in the opening sentence and the pipeline follows in logical order. The Args block is docstring-style and slightly redundant with the schema (repeating dry_run's default), but every line carries information an agent would otherwise lack.

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 need not be described, and the write path is well covered despite the absence of annotations. The remaining gap is operational context: required credentials, whether dry_run is truly the default in practice, and what happens to a duplicate reference.

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 description coverage is 0%, so the description must compensate, and it does for all three parameters: arxiv_id is given two concrete formats plus the note that a 'vN' suffix is preserved on the PDF URL, collection_key is identified as an optional Zotero collection key, and dry_run is explained as a write-suppressing preview.

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, resource, and lookup key: 'Add a reference to Zotero by arXiv ID.' This immediately distinguishes it from the DOI and ISBN variants among its siblings, and the following paragraph confirms the identifier source (arXiv API).

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

Usage Guidelines3/5

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

Usage is implied by the identifier type in the title sentence, but the description never says when to prefer this over add_reference_by_doi or add_reference_by_isbn, nor does it state preconditions such as a configured Zotero library or API credentials. The agent must infer the routing rule from the tool name alone.

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