Skip to main content
Glama

remove_from_collection

Remove a Zotero item from a collection without deleting it. Manage your research library by organizing items across collections.

Instructions

Remove a Zotero item from a collection (does not delete the item)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
item_keyYes
collection_keyYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The MCP tool 'remove_from_collection' is registered here and delegates the work to the client.
    @mcp.tool(description="Remove a Zotero item from a collection (does not delete the item)")
    def remove_from_collection(item_key: str, collection_key: str) -> str:
        """Remove item from a collection without deleting it."""
        _get_client().remove_from_collection(item_key, collection_key)
        return json.dumps({"item_key": item_key, "removed_from": collection_key}, ensure_ascii=False)
  • The actual logic to remove an item from a Zotero collection by modifying the 'collections' list of the item and updating the item in Zotero.
    def remove_from_collection(self, item_key: str, collection_key: str) -> bool:
        """Remove item from a collection. Returns True on success."""
        item = self.zot.item(item_key)
        cols = item["data"].get("collections", [])
        if collection_key in cols:
            cols.remove(collection_key)
            item["data"]["collections"] = cols
            self.zot.update_item(item)
        return True
Behavior3/5

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

With no annotations provided, the description carries full burden. It discloses a key behavioral trait: the operation removes from collections but doesn't delete items, which is valuable context. However, it lacks details on permissions needed, error conditions, or what happens if the item isn't in the collection, leaving gaps in behavioral understanding.

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?

The description is a single, efficient sentence with zero waste. It front-loads the core action and clarifies a critical distinction, making it highly concise and well-structured for quick comprehension.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has an output schema (which handles return values) and no annotations, the description is moderately complete. It covers the primary purpose and a key behavioral nuance, but for a mutation tool with 0% schema coverage, it should ideally include more about parameter semantics or error handling to be fully adequate.

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

Parameters2/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 compensate for undocumented parameters. It mentions 'item_key' and 'collection_key' implicitly but provides no semantic details (e.g., format, source, or examples). This adds minimal value beyond the schema's structural definition.

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 clearly states the specific action ('Remove') and target ('a Zotero item from a collection'), while explicitly distinguishing it from sibling tools by noting it 'does not delete the item' (unlike delete_item). This provides precise verb+resource differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage context by specifying it removes from collections without deleting items, which helps differentiate from delete_item. However, it doesn't explicitly state when to use this versus alternatives like update_item for other modifications or provide prerequisites for the item/collection keys.

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

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