Skip to main content
Glama

Zotero Search By Citation Key

zotero_search_by_citation_key

Look up one Zotero item by its exact BetterBibTeX citation key, returning its metadata or a not-found message.

Instructions

Look up a single Zotero item by its BetterBibTeX citation key (e.g. 'Smith2024' or 'cladderMicus2018'). Returns that one item's metadata, or a not-found message if no item has that key. citekey: the citation key exactly as assigned by BetterBibTeX (case-sensitive). Matches Zotero's native citationKey field, then any 'Citation Key:' line in Extra. In web mode a key the API's search does not surface is found by scanning the library, which is slower on large libraries. For partial-key or free-text lookup, use zotero_search_items. Example: zotero_search_by_citation_key(citekey='hasan2026mcp') → metadata for that single item.

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": {
      "citekey": "<citekey>"
    },
    "name": "zotero_search_by_citation_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
citekeyYesThe BetterBibTeX citation key to search for (e.g., 'Smith2024')

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/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 so well: it discloses the match order (native citationKey field first, then a 'Citation Key:' line in Extra), the slower library-scan fallback in web mode, and the not-found outcome. It never states read-only/side-effect behavior explicitly, but a lookup tool's safety profile is self-evident from the wording.

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-loaded with purpose and scope, then progressively adds matching semantics, performance caveat, and the sibling pointer. The closing worked example is mildly redundant given the earlier inline examples but is short and harmless.

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?

For a single-parameter lookup tool with an output schema already covering return shape, the description still explains matching behavior, fallback cost, and failure mode. Nothing an agent needs to invoke it correctly is missing.

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 100%, so the baseline is 3, but the description adds real meaning beyond the schema: case-sensitivity, exactness of the key, and where the key comes from (BetterBibTeX assignment). That goes past the schema's simple example string.

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 — 'Look up a single Zotero item by its BetterBibTeX citation key' — with concrete key examples. It explicitly separates itself from the sibling zotero_search_items, so an agent can choose without opening either schema.

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?

Names the alternative and the exact condition that selects it: 'For partial-key or free-text lookup, use zotero_search_items.' It also scopes usage to exact, case-sensitive keys, leaving no ambiguity about when this tool applies.

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