Skip to main content
Glama
proton-mail-mcp

proton-mail-mcp

by sethbang

List attachments

list_attachments
Read-onlyIdempotent

Retrieve attachment metadata—part numbers, filenames, content types, and sizes—for a Proton Mail message without downloading the body; use the results to fetch specific attachments.

Instructions

List attachment metadata for a message without downloading the body. Returns part numbers, filenames, content types, and sizes — use these with download_attachment to fetch the content.

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
uidYesMessage UID (use list_messages or search_messages to find UIDs)
folderNoFolder containing the message (default: INBOX)INBOX

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.0.1
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observedv1.0.1

TDQS

A3.9/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, and a closed-world scope, so the safety profile is covered structurally. The description adds one genuinely useful behavioral fact beyond the annotations: no body content is fetched, keeping the call cheap. It says nothing about permissions, error behavior when a UID is absent, or pagination, so the incremental context is modest.

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?

Two tight sentences, front-loaded with the core action and scope, then the return fields and the follow-up tool. Nothing is padded. It could be marginally sharper by naming the download step as a distinct clause, but it is already efficient.

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?

With only two parameters, full schema coverage, and annotations, the definition needs little more. Because no output schema exists, it usefully enumerates the returned fields, which compensates for that gap. It is close to complete, though the shape of the response (e.g., a list of parts versus a single object) remains implicit.

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 percent, and the uid parameter already documents how to obtain UIDs via list_messages or search_messages. The description adds no parameter-level meaning (no guidance on folder semantics or defaults), so the baseline 3 applies.

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 names a specific verb and resource (list attachment metadata for a message) and states the scope explicitly: it lists metadata without downloading the body. It also enumerates the returned fields (part numbers, filenames, content types, sizes), which makes it readily distinguishable from download_attachment.

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?

It clearly establishes the workflow: use this tool to get part numbers, then pass them to download_attachment to fetch content. That is a concrete alternative and condition for use. It stops short of stating exclusions, such as when to prefer read_message for the body itself, so it falls just short of a 5.

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