Skip to main content
Glama

Restore collections from the trash

zotero_restore_collection
Idempotent

Restore trashed Zotero collections using their keys. Undo non-permanent collection deletions, but note that permanently deleted collections cannot be recovered.

Instructions

Bring collections back out of Zotero's trash, undoing a non-permanent zotero_delete_collection. You must know the key: Zotero's local API cannot list trashed collections, so there is no way to discover them from here, the user can see them in the Zotero window's trash. A collection erased permanently cannot be restored at all.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
groupIdNoGroup library ID. Omit for the personal library ("My Library"), which is what almost every request wants. Group IDs come from zotero_list_libraries.
collectionKeysYesKeys of the collections to restore, at most 50 per call.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
notFoundYes
restoredYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.0.1

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover read-only, idempotency, and destructiveness hints. The description adds valuable behavioral context: restoration only works for non-permanent deletions, the local API cannot list trashed collections, and permanent deletions are irreversible. This goes beyond the structured hints without contradicting them.

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?

Three purposeful sentences: the core action, the key prerequisite and discovery limitation, and the permanent-deletion caveat. No filler, no repetition of schema fields, and the most important information is front-loaded.

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?

Given the output schema exists and the parameter schema is fully documented, the description covers the operational constraints that matter: key requirement, inability to discover trashed collections, and permanent-deletion irreversibility. An agent has enough context to use the tool correctly and to ask the user for the needed key.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents collectionKeys and groupId. The description reinforces that the key must be known but does not add new parameter-level semantics. It meets the baseline for schema-covered parameters.

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 states a specific action ('bring collections back out of Zotero's trash') and names the exact operation it reverses ('undoing a non-permanent zotero_delete_collection'). This clearly distinguishes it from related siblings like zotero_restore_items and zotero_delete_collection.

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?

It explicitly explains when to use the tool, requires the user to know the collection key, explains why the keys cannot be discovered via the API, directs the user to the Zotero trash window, and states that permanently deleted collections cannot be restored. This is strong when-to-use guidance with clear exclusions.

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

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

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