Skip to main content
Glama
Protonmail MCP Server

Protonmail MCP Server

by jagjourney

list_attachments

List attachments for a specific email by UID and folder, returning filename, content type, size, and part index to identify files for download or management.

Instructions

List all attachments of a specific email. Returns filename, content type, size, and part index for each attachment.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "uid": "<uid>"
    },
    "name": "list_attachments"
  }
}

Input Schema

NameRequiredDescriptionDefault
uidYesUID of the email to list attachments for
folderNoFolder the email is in (e.g. INBOX, Sent, Drafts)INBOX

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.3

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden, and it does disclose the return payload (filename, content type, size, part index), which implies a read-only operation. However, it says nothing about behavior when an email has no attachments, invalid uid/folder handling, or whether large attachment sets are paginated or truncated.

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?

Two sentences, zero filler: the action is front-loaded and the second sentence covers returns. Nothing is redundant with the title or restated needlessly.

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 a simple two-parameter read tool with full schema coverage and no output schema, the description is essentially sufficient, and it helpfully explains the return fields. The only gap is edge-case behavior (empty attachment lists, invalid folder/uid), which is minor at this complexity.

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 both uid and folder are already documented with defaults and examples. The description adds no parameter-level meaning (e.g., that folder must match the folder containing the uid), so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource ("List all attachments of a specific email") and even enumerates the returned fields. It is clearly distinguishable from data-fetching siblings, though it never names the obvious complement, download_attachment, so it stops short of the sibling-level differentiation a 5 requires.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not guidance, no mention of download_attachment as the alternative for retrieving attachment content, and no prerequisites stated. The user is left to infer that this is a metadata-discovery step preceding a download.

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