Skip to main content
Glama
proton-mail-mcp

proton-mail-mcp

by sethbang

Send email

send_email

Send email through Proton Mail SMTP with HTML sanitization, attachments, CC/BCC, and sent-copy verification.

Instructions

Send an email using Proton Mail SMTP. HTML bodies are sanitized through a conservative allowlist by default (sanitizeHtml defaults to true) — scripts, event handlers, inline styles, and remote <img> beacons are stripped. Pass sanitizeHtml: false to send full-fidelity HTML in trusted-content workflows. Plain-text bodies pass through unchanged.

The response leads with [sent-copy:verified] (its copy was found in Sent), [sent-copy:pending] (not there yet after about 5 s; Proton can take 30 s or more) or, with verifySent: "wait", [sent-copy:unverified] (not there after about 30 s). All three mean SMTP accepted the message: do not resend. To confirm a pending copy later, call get_thread with the returned Message-ID.

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": {
      "to": "<to>",
      "subject": "<subject>"
    },
    "name": "send_email"
  }
}

Input Schema

NameRequiredDescriptionDefault
ccNoCC recipient(s), separated by commas or semicolons, each name@example.com or "Name" <name@example.com>
toYesRecipient email address(es), separated by commas or semicolons, each name@example.com or "Name" <name@example.com>
bccNoBCC recipient(s), separated by commas or semicolons, each name@example.com or "Name" <name@example.com>
bodyNoEmail body content (plain text or HTML). Required unless `markdownBody` is provided.
dryRunNoIf true, validate and resolve the full recipient set (To/CC/BCC) + subject + body WITHOUT sending — returns a preview so you can confirm exactly who would receive the mail. Mirrors the bulk/thread dry-run pattern.
isHtmlNoWhether `body` contains HTML content
replyToNoReply-To address. Proton can rewrite it to the From address: it did for unrelated addresses and, in live tests, even for a +alias of the account's own address. The result checks the Sent copy and reports `[reply-to:rewritten]`; don't count on the requested address reaching the recipient.
subjectYesEmail subject line
fromNameNoDisplay name for the From field. By default rejects values containing `@` to prevent display-name-as-address spoofing (e.g. `"Anthropic Security <security@anthropic.com>"` looks like a legitimate sender in most mail clients even though the envelope From is bound to the authenticated identity). Pass `allowAddressLikeFromName: true` for legitimate cases.
verifySentNoHow long to look for the Sent copy after SMTP accepts the message. "quick" (default): about 5 s, then `[sent-copy:pending]` if it hasn't appeared yet. "wait": up to about 30 s, then `[sent-copy:unverified]`. Either way the message was sent; this only confirms it.quick
attachmentsNoFile attachments: base64 `content`, or a `path` inside ALLOW_FILE_ATTACH_DIR. Proton limits a message's attachments to 25 MB.
markdownBodyNoMarkdown source — rendered to HTML before sending. Mutually exclusive with `body`/`isHtml`. A plain-text version is sent alongside the HTML, but Proton stores only the HTML, so the message reads back as HTML.
sanitizeHtmlNoWhen the body is HTML (either via `isHtml: true` or `markdownBody`), strip scripts, event handlers, inline styles, disallowed tags, and remote `<img>` beacons through a conservative allowlist. **Defaults to true** for safer-by-default agent-driven sending. Pass `false` to preserve full-fidelity HTML for trusted-content workflows. No-op on plain-text bodies.
allowAddressLikeFromNameNoOpt-in escape valve for `fromName` containing `@`. Default false — see fromName's note for why this is the safer-by-default posture for agent-driven sending.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed14 schema fields 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"
    • changedInput schema / properties / attachments / description
      Previous value: -"File attachments (base64-encoded content)"New value: +"File attachments: base64 `content`, or a `path` inside ALLOW_FILE_ATTACH_DIR. Proton limits a message's attachments to 25 MB."
    • changedInput schema / properties / attachments / items / properties / content / description
      Previous value: -"Base64-encoded file content"New value: +"Base64-encoded file content. Give this or `path`."
    • changedInput schema / properties / attachments / items / properties / contentType / description
      Previous value: -"MIME type (e.g. application/pdf, image/png)"New value: +"MIME type (e.g. application/pdf). Inferred from the filename when omitted."
    • changedInput schema / properties / attachments / items / properties / filename / description
      Previous value: -"Attachment filename"New value: +"Attachment filename. Required with `content`; defaults to the file's name with `path`."
    • addedInput schema / properties / attachments / items / properties / path
      Added value: +{
      +  "description": "A file to attach, relative to the folder the user allowed with ALLOW_FILE_ATTACH_DIR. Give this or `content`.",
      +  "maxLength": 1000,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • removedInput schema / properties / attachments / items / required
      Removed value: -[
      -  "filename",
      -  "content",
      -  "contentType"
      -]
    • changedInput schema / properties / bcc / description
      Previous value: -"BCC recipient(s), separated by commas"New value: +"BCC recipient(s), separated by commas or semicolons, each name@example.com or \"Name\" <name@example.com>"
    • changedInput schema / properties / cc / description
      Previous value: -"CC recipient(s), separated by commas"New value: +"CC recipient(s), separated by commas or semicolons, each name@example.com or \"Name\" <name@example.com>"
    • changedInput schema / properties / markdownBody / description
      Previous value: -"Markdown source — rendered to HTML before sending. Mutually exclusive with `body`/`isHtml`. The email-service computes a plain-text fallback automatically for multipart/alternative."New value: +"Markdown source — rendered to HTML before sending. Mutually exclusive with `body`/`isHtml`. A plain-text version is sent alongside the HTML, but Proton stores only the HTML, so the message reads back as HTML."
    • changedInput schema / properties / replyTo / description
      Previous value: -"Reply-To email address. Note: Proton SMTP may rewrite or ignore values that don't match authenticated identities."New value: +"Reply-To address. Proton can rewrite it to the From address: it did for unrelated addresses and, in live tests, even for a +alias of the account's own address. The result checks the Sent copy and reports `[reply-to:rewritten]`; don't count on the requested address reaching the recipient."
    • changedInput schema / properties / sanitizeHtml / description
      Previous value: -"When the body is HTML (either via `isHtml: true` or `markdownBody`), strip scripts, event handlers, inline styles, disallowed tags, and remote `<img>` beacons through a conservative allowlist. **Defaults to true as of v1.0.0** for safer-by-default agent-driven sending. Pass `false` to preserve full-fidelity HTML for trusted-content workflows. No-op on plain-text bodies."New value: +"When the body is HTML (either via `isHtml: true` or `markdownBody`), strip scripts, event handlers, inline styles, disallowed tags, and remote `<img>` beacons through a conservative allowlist. **Defaults to true** for safer-by-default agent-driven sending. Pass `false` to preserve full-fidelity HTML for trusted-content workflows. No-op on plain-text bodies."
    • changedInput schema / properties / to / description
      Previous value: -"Recipient email address(es). Multiple addresses can be separated by commas."New value: +"Recipient email address(es), separated by commas or semicolons, each name@example.com or \"Name\" <name@example.com>"
    • addedInput schema / properties / verifySent
      Added value: +{
      +  "default": "quick",
      +  "description": "How long to look for the Sent copy after SMTP accepts the message. \"quick\" (default): about 5 s, then `[sent-copy:pending]` if it hasn't appeared yet. \"wait\": up to about 30 s, then `[sent-copy:unverified]`. Either way the message was sent; this only confirms it.",
      +  "enum": [
      +    "quick",
      +    "wait"
      +  ],
      +  "type": "string"
      +}
  2. First observedv1.0.1

TDQS

A4/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses the HTML sanitization allowlist and what is stripped, the replyTo rewrite behavior observed in live tests, the fromName spoofing guard, and the exact `[sent-copy:*]` response prefixes with their timing semantics. The 'do not resend' instruction on all three statuses is precisely the kind of non-obvious behavioral fact that prevents duplicate sends.

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?

Front-loads the core action and then splits sanitization behavior from response-verification behavior into two coherent paragraphs. There is some duplication of the sanitizeHtml explanation that already lives in the schema, but no sentence is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 14 parameters and no output schema, the description compensates by explaining the return-value prefixes and how to confirm a pending copy via get_thread. Combined with the sanitization and identity-spoofing notes, an agent has everything needed to call this safely.

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% and the schema itself already documents sanitizeHtml, verifySent, replyTo rewriting, and the address-like fromName guard in detail, so the description largely restates it. Baseline 3 applies; the description adds little parameter meaning the schema does not already carry.

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?

States a specific verb and resource plus the transport ('Send an email using Proton Mail SMTP'), which is unambiguous. It does not distinguish itself from siblings like send_draft, reply_email, or forward_email, so an agent must infer that this is the raw compose-and-send path.

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?

Usage context is given for individual parameters ('trusted-content workflows' for sanitizeHtml:false, the dryRun preview pattern) but there is no explicit when-to-use-this-instead-of-siblings guidance, e.g. reply_email vs send_email or send_draft. The strongest actionable guidance is the operational warning 'All three mean SMTP accepted the message: do not resend.'

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