Skip to main content
Glama

Zotero attachments (files)

zotero_attachment

Upload, download, or inspect attachment files in your Zotero library using the cloud Web API and file-storage quota.

Instructions

Upload, download, or inspect attachment files. action: "upload" stores a local file as a Zotero attachment using the full File Storage protocol (provide file_path; optional parent_item to attach it under an item, title, content_type) and returns the new attachment key; "download" fetches an attachment's file to a local path (provide item_key; optional save_path, default under the Zoteus data dir) and returns the path and byte count; "info" returns an attachment item's metadata. File bytes are written to / read from disk — they are never streamed through the conversation. Upload/download use the cloud Web API and your file-storage quota.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleNo
actionYes
item_keyNoAttachment item key (download/info).
file_pathNoLocal file to upload.
save_pathNoWhere to write the downloaded file.
library_idNo
parent_itemNoParent item key to attach under (upload).
content_typeNo
library_typeNo
Behavior4/5

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

Annotations only provide readOnlyHint=false and openWorldHint=true. The description adds crucial behavioral details: file bytes are read/written to disk (not streamed), and operations use cloud Web API and consume storage quota. This goes beyond annotations.

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 a focused paragraph with front-loaded purpose and action breakdown. It is concise but could benefit from bullet-point structure for the three actions to improve scannability.

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?

Given the tool's complexity (9 parameters, 3 actions, no output schema), the description covers action behaviors, key parameter roles, and file handling. Return values are mentioned for upload and download but not explicitly for info, which is a minor gap.

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?

With only 44% schema description coverage, the description compensates well by explaining which parameters apply to which action (e.g., parent_item for upload, item_key for download/info) and their roles. It adds meaning beyond the bare schema.

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 tool handles attachment files with three specific actions: upload, download, and info. It uses specific verbs and distinguishes itself from sibling tools like zotero_get_item and zotero_fulltext by focusing on file operations.

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 explains each action's purpose and associated parameters, providing clear context for when to use each. It does not explicitly compare to sibling tools, but the action-oriented structure and mention of alternatives are sufficient.

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/oscardvs/zoteus'

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