Skip to main content
Glama
Protonmail MCP Server

Protonmail MCP Server

by jagjourney

offline_sync

Export Proton Mail emails to browsable HTML files with an offline inbox viewer, writing pages and attachments to your configured mailbox directory. Re-run to sync only new emails incrementally.

Instructions

Export emails as browsable HTML files with a full inbox-style offline viewer. Reads from Protonmail Bridge's local cache and writes HTML pages + attachments to your configured offline mailbox directory. Supports incremental sync — only exports new emails on re-run. If no directory is configured yet, ask the user where they want to store their Offline Mailbox and use set_offline_sync_dir first.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "offline_sync"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax emails per folder (useful for testing, e.g., 10)
foldersNoSpecific folders to sync (defaults to all folders)
batch_sizeNoEmails per fetch batch (default 50)
output_dirNoOverride the saved directory (optional — uses the configured directory by default)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.3

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does reasonably well: it discloses the read source (Bridge local cache), the write side effects (HTML pages + attachments written to disk), and the incremental-sync trait. It doesn't cover overwrite behavior, expected duration, or failures when the Bridge cache is unavailable, leaving some behavioral gaps for a long-running export.

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?

The sentences are front-loaded — what it does, where it reads and writes, incremental behavior, then the prerequisite — and each earns its place. There is minor redundancy between 'as browsable HTML files' and 'writes HTML pages + attachments', but nothing extraneous.

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 four-parameter export tool with no annotations and no output schema, the description covers purpose, data source, destination, incremental semantics, and the setup prerequisite. It is nearly complete; only error handling and non-incremental overwrite behavior are 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 coverage is 100%, so all four parameters (limit, folders, batch_size, output_dir) are already documented in the schema. The description only indirectly references output_dir via 'your configured offline mailbox directory' and adds no syntax or format detail beyond the schema, so 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 uses a specific verb and resource ('Export emails as browsable HTML files with a full inbox-style offline viewer') and states the data source (Protonmail Bridge's local cache) and destination (configured offline mailbox directory). This clearly distinguishes it from set_offline_sync_dir (configuration) and offline_sync_status (reporting).

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 gives an explicit prerequisite: if no directory is configured, the agent should ask the user and call set_offline_sync_dir first, naming the sibling directly. It also explains re-run semantics ('only exports new emails on re-run'). It does not state when the agent should avoid using this tool (e.g., large mailboxes, no Bridge running), so it falls short of full when/when-not guidance.

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