Skip to main content
Glama

get_item

Retrieve detailed metadata for a specific Zotero item using its unique key to access citation information and bibliographic data.

Instructions

Get detailed metadata for a single Zotero item

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
item_keyYes
formatNojson

Implementation Reference

  • Tool registration for "get_item" in the MCP server.
    @mcp.tool(description="Get detailed metadata for a single Zotero item")
    def get_item(item_key: str, format: str = "json") -> str:
        """Get full metadata or BibTeX for one item by its key."""
        result = _get_client().get_item(item_key, fmt=format)
        if isinstance(result, str):
            return result
        return json.dumps(result, ensure_ascii=False)
  • Actual implementation of the "get_item" logic using the Zotero client.
    def get_item(self, item_key: str, fmt: str = "json") -> dict | str:
        """Get full metadata for a single item."""
        if fmt == "bibtex":
            return self.zot.item(item_key, format="bibtex")
        item = self.zot.item(item_key)
        return item.get("data", item)

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

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