Skip to main content
Glama
Zotero MCP
by 54yyyu

Zotero Search Items

zotero_search_items

Search Zotero items by keyword in titles, creators, years, tags, item types, collections, or libraries to locate references and refine results with limits.

Instructions

Keyword search of item metadata: substring match on title, creators and year (qmode='everything' adds abstracts). Keep queries short, like 'Brewer 2011' or a surname: every extra word narrows the match. For topics or concepts use zotero_semantic_search. If nothing matches it retries simpler queries, then semantic search, and says so. tag: conditions that are ANDed; within one, ' OR ' alternates and a leading '-' excludes, e.g. ['methods OR methodology', '-draft']. Omit query to list items by tag alone (zotero_get_tags lists the names). item_type: '-attachment' (default) excludes attachments, or e.g. 'journalArticle'. limit: default 10. collection_key: search one collection (no retries); include_subcollections adds its subcollections. search_all_libraries=True searches every library and labels each result; needs a query, not with collection_key.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "zotero_search_items"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagNo
limitNo
qmodeNotitleCreatorYear
queryNo
item_typeNo-attachment
collection_keyNo
search_all_librariesNo
include_subcollectionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.17.3
    • removedInput schema / properties / collection_key / default
      Removed value: -null
    • removedInput schema / properties / tag / default
      Removed value: -null
  2. Changed18 schema fields changedv0.16.0
    • removedInput schema / properties / collection_key / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / collection_key / description
      Removed value: -"Optional collection key to scope the search to a specific collection.\nWhen provided, bypasses the fallback cascade and searches the collection directly."
    • addedInput schema / properties / collection_key / type
      Added value: +"string"
    • removedInput schema / properties / include_subcollections / description
      Removed value: -"Also search collections nested beneath\ncollection_key. Ignored when collection_key is not given. Defaults\nto False, matching Zotero's own \"Search subcollections\" checkbox."
    • removedInput schema / properties / item_type / description
      Removed value: -"Type of items to search for. Use \"-attachment\" to exclude attachments."
    • removedInput schema / properties / limit / anyOf
      Removed value: -[
      -  {
      -    "type": "integer"
      -  },
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / limit / description
      Removed value: -"Maximum number of results to return"
    • addedInput schema / properties / limit / type
      Added value: +"integer"
    • removedInput schema / properties / qmode / description
      Removed value: -"Query mode (titleCreatorYear or everything)"
    • addedInput schema / properties / query / default
      Added value: +""
    • removedInput schema / properties / query / description
      Removed value: -"Search query string"
    • removedInput schema / properties / search_all_libraries / description
      Removed value: -"Search every accessible library at once instead\nof the active one (#163). Requires the SQLite backend; each result\nis labelled with the library it came from. Cannot be combined with\ncollection_key, which names a collection inside one library."
    • removedInput schema / properties / tag / anyOf
      Removed value: -[
      -  {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "items": {
      -      "additionalProperties": true,
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / tag / description
      Removed value: -"Tag filter. Accepts [\"tagA\", \"tagB\"] (preferred), a bare string\n\"tagA\", a JSON-string list '[\"tagA\", \"tagB\"]', or the dict-shape\n[{\"tag\": \"tagA\"}] sometimes emitted by clients that confuse the\nfilter form with Zotero's stored-tag form. All are normalized\ninternally to the list[str] form pyzotero expects."
    • addedInput schema / properties / tag / items
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / tag / type
      Added value: +"array"
    • removedInput schema / required
      Removed value: -[
      -  "query"
      -]
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "result": {
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "result"
      -  ],
      -  "type": "object",
      -  "x-fastmcp-wrap-result": true
      -}New value: +null
  3. Changed2 schema fields changedv0.11.0
    • addedInput schema / properties / include_subcollections
      Added value: +{
      +  "default": false,
      +  "description": "Also search collections nested beneath\ncollection_key. Ignored when collection_key is not given. Defaults\nto False, matching Zotero's own \"Search subcollections\" checkbox.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / search_all_libraries
      Added value: +{
      +  "default": false,
      +  "description": "Search every accessible library at once instead\nof the active one (#163). Requires the SQLite backend; each result\nis labelled with the library it came from. Cannot be combined with\ncollection_key, which names a collection inside one library.",
      +  "type": "boolean"
      +}
  4. Addedv0.4.1
  5. Removedv0.1.6
  6. First observedv1.0.0

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does well: it discloses the fallback chain (retry simpler queries, then semantic search, and report that it happened) and notes that collection-scoped searches skip retries. It does not describe result ordering or what a match object contains, which keeps it off a 5.

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 the core matching rule, then ordered by argument importance, and nearly every clause carries information. It is dense to the point of being telegraphic, with several colon-delimited fragments per sentence, so readability suffers slightly for the volume it must cover.

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?

For an eight-parameter search tool with no annotations and no output schema, the definition covers usage, syntax, defaults, and fallback behavior without leaving an agent guessing how to call it. The remaining gap is the return shape beyond limits and library labeling, which would matter when composing results.

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 define every parameter, and it effectively does for all eight: query, qmode semantics, tag AND/OR/'-' syntax with a concrete example, item_type default, limit default, collection_key, include_subcollections, and search_all_libraries. The tag array mini-language in particular is behavior an agent could not recover from the bare schema types.

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?

Opens with a specific verb+resource ("Keyword search of item metadata") and immediately narrows the matching semantics (substring on title, creators, year). It explicitly distinguishes itself from zotero_semantic_search and points to zotero_get_tags for tag names, so an agent can pick it apart from siblings without opening another 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?

Gives explicit routing: use this for short keyword queries like 'Brewer 2011', use zotero_semantic_search for topics or concepts, omit query to list by tag alone, and use zotero_get_tags to discover tag names. It also states hard constraints (search_all_libraries needs a query and can't be combined with collection_key), leaving little to inference.

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