Skip to main content
Glama

Search Zotero Items

zotero_search_items
Read-onlyIdempotent

Search a Zotero library for bibliographic items such as articles, books, and webpages by title, creator, or year. Filter results by item type, tag, or collection to quickly find relevant references.

Instructions

Search for bibliographic items (articles, books, webpages, etc.) in a Zotero library.

This is a READ-ONLY quick search. It matches titles and creator names by default (query_mode='titleCreatorYear'); pass query_mode='everything' to also search full text of PDF attachments. Combine with item_type and/or tag filters to narrow results, and collection_key to search inside one collection only.

Args:

  • query (string, optional): Quick-search text

  • query_mode ('titleCreatorYear' | 'everything'): search scope (default: 'titleCreatorYear')

  • item_type (string, optional): Zotero item type filter, supports '||' (OR) and leading '-' (NOT)

  • tag (string, optional): tag filter, supports the same boolean syntax

  • collection_key (string, optional): restrict to one collection

  • include_trashed (boolean): include trashed items (default: false)

  • limit (number): 1-100 (default: 25)

  • offset (number): pagination offset (default: 0)

  • response_format ('markdown' | 'json')

Returns: matching items with type, creators, year, title, DOI/URL, tags, and a trimmed abstract.

Examples:

  • Use when: "find items about resistencia cotidiana in my library" -> query="resistencia cotidiana"

  • Use when: "list all journal articles tagged putumayo" -> item_type="journalArticle", tag="putumayo"

  • Don't use when: you need items from a specific known key (use zotero_get_item instead)

Error Handling:

  • Returns "Error: Permission denied (403)" if the API key lacks access to this library

  • Returns "No items found matching the given criteria" if the search is empty

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagNoFilter by tag using Zotero's boolean search syntax, e.g. 'putumayo', 'putumayo && resistencia' (space = AND within one param, or repeat the param for AND).
limitNoMaximum number of results to return, 1-100 (default: 25).
queryNoQuick-search text, matched against titles and creator names by default (Zotero 'q' parameter).
offsetNoNumber of results to skip, for pagination (default: 0).
item_typeNoFilter by item type using Zotero's boolean search syntax, e.g. 'book', 'journalArticle', 'book || journalArticle' (OR), '-attachment' (NOT).
query_modeNo'titleCreatorYear' (default) searches titles/creators/year only; 'everything' also searches full text of attachments.titleCreatorYear
collection_keyNoRestrict the search to items within this collection (8-character Zotero collection key). Omit to search the whole library.
include_trashedNoInclude items in the trash (default: false).
response_formatNoOutput format: 'markdown' for human-readable text or 'json' for machine-readable structured data.markdown
Behavior5/5

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

The description explicitly labels the tool as 'READ-ONLY', consistent with the readOnlyHint annotation, but adds substantial behavioral context beyond the annotations: default query mode, the effect of query_mode='everything', combination of filters, collection restriction, trashed items behavior, response_format options, and error handling (e.g., 'Error: Permission denied (403)'). This gives the agent a rich understanding of what to expect.

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 description is well-structured with clear sections (overview, args, examples, error handling) and is front-loaded with the core purpose. While it repeats parameter details already in the schema, each sentence serves a purpose (usage guidance or behavioral notes). It is slightly long but not wasteful.

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?

With 9 optional parameters and no output schema, the description covers all needed context: what it searches, how to filter, what it returns (type, creators, year, title, DOI/URL, tags, trimmed abstract), and error conditions. It also provides examples and distinguishes from sibling tools. This is a complete standalone description.

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. The description's Args section largely mirrors schema descriptions, but it adds value by showing how parameters combine (e.g., 'Combine with item_type and/or tag filters to narrow results') and giving concrete examples for query, item_type, and tag. It also clarifies the default for query_mode and response_format, which the schema already states, but the cohesive usage guidance justifies a 4.

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 a specific verb and resource: 'Search for bibliographic items (articles, books, webpages, etc.) in a Zotero library.' It also differentiates from siblings by explicitly saying 'Don't use when: you need items from a specific known key (use zotero_get_item instead).' This is a clear, unambiguous purpose with sibling distinction.

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?

The description provides explicit 'Use when' and 'Don't use when' guidance with concrete examples, such as 'find items about resistencia cotidiana' and 'list all journal articles tagged putumayo'. It also names the alternative tool (zotero_get_item) for the excluded case, giving the agent clear decision rules.

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/andresrocha99/zotero-mcp-server-v2'

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