Skip to main content
Glama
Zotero MCP
by 54yyyu

Zotero Get Collections

zotero_get_collections

List collections in the active Zotero library as an indented tree with keys, optionally including trashed items, to browse and select a collection.

Instructions

List every collection in the active library as an indented tree with keys. To find one collection by name, zotero_search_collections is cheaper. limit: default 100, up to 5000. include_trashed=True also shows collections in the Trash.

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_get_collections"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
include_trashedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.17.3
    • removedInput schema / properties / limit / default
      Removed value: -null
  2. Changed5 schema fields changedv0.16.0
    • removedInput schema / properties / include_trashed / description
      Removed value: -"if True, merge collections currently in Zotero's\nTrash into the listing, annotated with ``[trashed]``. Default\nFalse matches the Zotero desktop default and the prior\nbehavior of this tool. Trashed collections are normally\ninvisible to automated clients (#233) — turn this on when you\nneed to know they exist."
    • removedInput schema / properties / limit / anyOf
      Removed value: -[
      -  {
      -    "type": "integer"
      -  },
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / limit / description
      Removed value: -"Maximum number of collections to return"
    • addedInput schema / properties / limit / type
      Added value: +"integer"
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "result": {
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "result"
      -  ],
      -  "type": "object",
      -  "x-fastmcp-wrap-result": true
      -}New value: +null
  3. Addedv0.4.1
  4. Removedv0.1.6
  5. First observedv1.0.0

TDQS

A4.6/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden; it discloses the return shape (indented tree with keys), the active-library scoping, the limit default and ceiling, and the trashed-item visibility toggle. It stops short of stating that this is a read-only operation or what happens when the library exceeds the limit, which are the remaining behavioral gaps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short sentences, each carrying distinct information (capability, alternative routing, limit bound, trash flag). The core purpose is front-loaded with zero filler.

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?

With no annotations and no output schema, the description does the heavy lifting by describing the tree-with-keys return format and both parameters. It is nearly complete, missing only read-only confirmation and truncation behavior for large libraries.

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 0%, so the description must compensate, and it does: limit gets a default of 100 and a max of 5000, and include_trashed is explained as also showing Trash contents. It does not say whether limit caps total collections or per-level nodes, nor any ordering, leaving a small ambiguity.

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 ('List every collection'), pins the scope to the 'active library', and describes the output shape ('indented tree with keys'). It also names the sibling to use for a different intent, so an agent can separate it from zotero_search_collections 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?

Explicitly routes the name-lookup case to zotero_search_collections ('cheaper'), giving a concrete when-to-use-this vs when-to-use-alternative rule. The include_trashed sentence further clarifies a conditional usage mode.

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