Skip to main content
Glama
Protonmail MCP Server

Protonmail MCP Server

by jagjourney

download_attachment

Download a specific email attachment by email UID and attachment index; returns the file as a base64-encoded string for processing or saving.

Instructions

Download a specific attachment from an email. Returns the attachment as a base64-encoded string.

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>",
      "part_index": "<part_index>"
    },
    "name": "download_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
uidYesUID of the email containing the attachment
folderNoFolder the email is in (e.g. INBOX, Sent, Drafts)INBOX
part_indexYesAttachment index from list_attachments (0-based)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.3

TDQS

A3.6/5.0
Behavior3/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 for a read-style fetch. It does disclose the useful behavioral fact that content is returned base64-encoded, but it says nothing about size limits, auth/permission requirements, or what happens when the part index is invalid.

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 short sentences with zero waste, and the action is front-loaded ahead of the return-format detail. Nothing is padded or repeated.

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 three-parameter fetch with full schema coverage, the description supplies what the schema does not: the return representation. Since there is no output schema, explaining the base64 payload is the key addition; only edge-case behavior (large attachments, invalid part index) is left unaddressed.

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 uid, folder, and part_index are already fully documented in the schema, including the 0-based indexing convention. The description adds no further meaning about parameter interaction or defaults, 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 ("Download a specific attachment from an email") and adds the return form (base64-encoded string), which makes the single-attachment scope clear versus a listing operation such as list_attachments. It stops short of naming or explicitly contrasting any sibling, so it lands at 4 rather than 5.

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

Usage Guidelines3/5

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

"Download a specific attachment" implies this is the retrieval step after enumerating attachments, and the schema's part_index description points at list_attachments, but the description itself contains no when-to-use, when-not, or prerequisite statement. Usage is therefore inferable rather than stated.

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