Skip to main content
Glama
googlarz

Proton Mail Bridge MCP

import_email

Import a raw .eml message directly into a Proton Mail folder to restore backups or migrate from another provider. Accepts byte-exact base64 for non-UTF-8 exports and does not send anything.

Instructions

Import a raw RFC822 message (.eml content) into a folder via IMAP APPEND. Use to restore a backed-up message or migrate mail from another provider's export. Does not send anything — this only inserts a message directly into the mailbox. Many real .eml exports use a legacy 8-bit charset (ISO-8859-1, Windows-1252, etc.) rather than UTF-8 for their header/body text outside of MIME-encoded parts — passing that content through raw corrupts or rejects it. Use rawBase64 instead for any message not already known to be valid UTF-8.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rawNoFull raw RFC822 message source (the .eml file content) as a UTF-8 string. Use rawBase64 instead for non-UTF-8 content. Exactly one of raw/rawBase64 is required.
rawBase64NoFull raw RFC822 message source (the .eml file content), base64-encoded, for byte-exact import of non-UTF-8 content. Exactly one of raw/rawBase64 is required.
markAsReadNoSet the \Seen flag on import.
targetFolderNoDestination folder. Defaults to INBOX.
Install Server

TDQS

A4.3/5.0
Behavior4/5

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

Annotations only provide destructiveHint=false, leaving behavioral disclosure to the description. The description adds meaningful context: messages are inserted via IMAP APPEND, nothing is sent, and raw can corrupt or reject legacy 8-bit content, with rawBase64 as the safe alternative. It does not cover return values or duplicate-handling, but the disclosed behavior is substantial.

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?

Three sentences, each earning its place: purpose, use cases, and encoding caveat with parameter selection. The phrase 'inserts a message directly into the mailbox' is slightly redundant with 'IMAP APPEND', but it serves to emphasize the non-sending nature. The content is well front-loaded and not bloated.

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?

The description covers purpose, use cases, behavioral nuance, and parameter selection; the schema fully documents each parameter. No output schema exists, but the description adequately prepares an agent for an import operation with encoding pitfalls. Minor omissions like return values or behavior when a target folder does not exist are acceptable given the tool's moderate complexity.

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?

Schema description coverage is 100%, so baseline 3 applies. The description adds real value by explaining the charset pitfall and explicitly recommending rawBase64 for non-UTF-8 content, reinforcing the schema's 'exactly one required' constraint. markAsRead and targetFolder are already fully covered by the schema, so no additional description is needed.

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 opens with a specific verb and resource: 'Import a raw RFC822 message (.eml content) into a folder via IMAP APPEND.' It states the mechanism, destination, and explicitly differentiates from sending ('Does not send anything'), which makes it distinct from send_email/draft siblings.

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?

Concrete use cases are given: 'restore a backed-up message or migrate mail from another provider's export.' It also provides parameter-level guidance, directing users to rawBase64 for non-UTF-8 content. It does not explicitly name sibling alternatives, but the 'Does not send anything' clause implicitly excludes send_email, so context is clear without fully explicit exclusions.

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

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/googlarz/proton-mail-bridge-client'

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