Skip to main content
Glama
sethbang

proton-mail-mcp

update_message_flags

Idempotent

Add or remove email flags (Seen, Flagged, custom keywords). Pair UID with folder to ensure correct flag changes.

Instructions

Add or remove flags on an email message. System flags (RFC 3501): \Seen (read), \Flagged (starred), \Answered, \Draft, \Deleted, \Recent. User-defined keywords without a backslash prefix are also accepted (alphanumeric + underscore, e.g. "Important", "Custom_Tag"), but Proton Mail Bridge has been observed to silently drop user keywords — any flags the server did not actually apply are reported in the response as "no-op (not applied)".

UID + folder pair caveat: IMAP UIDs are per-folder. The same UID can refer to different messages in different folders — always pair a UID with the folder it came from.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uidYesMessage UID
folderNoFolder containing the message (default: INBOX)INBOX
flagsToAddNoFlags to add (e.g. ["\\Seen", "\\Flagged"])
flagsToRemoveNoFlags to remove (e.g. ["\\Seen"])
Behavior4/5

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

The description goes beyond annotations by disclosing that user-defined keywords may be silently dropped by Proton Mail Bridge and that UIDs are per-folder. It also mentions the response reports 'no-op (not applied)' for unapplied flags. However, it does not explicitly confirm idempotency (already in annotations).

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 description is well-structured: main purpose first, then flag types, then critical caveats. It is not overly long, but some sentences could be condensed. Still, every sentence adds necessary value, making it effective.

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?

Given the complexity of modifying flags and the absence of an output schema, the description provides sufficient context: it covers flag semantics, the Proton Bridge bug, and UID scoping. It lacks explicit differentiation from sibling tools, but overall it is complete for its intended use.

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?

Input schema descriptions cover all 4 parameters (100% coverage), but the description adds valuable context: flag format (backslash prefix for system flags, no backslash for user keywords), and the UID+folder pair caveat. This extra meaning justifies a score above the baseline of 3.

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 clearly states the action: 'Add or remove flags on an email message.' It specifies the verb (add/remove), resource (email message), and provides details on system flags and user-defined keywords, leaving no ambiguity about the tool's purpose.

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?

The description implicitly indicates usage for single-message flag management, but it does not explicitly differentiate from sibling tools like 'bulk_update_flags' or 'flag_thread.' No guidance is given on when to use this tool vs. alternatives, which is a notable gap.

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

Install Server

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/sethbang/proton-mail-mcp'

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