Skip to main content
Glama
sethbang

proton-mail-mcp

bulk_update_flags

Idempotent

Update flags on multiple messages simultaneously using UIDs or search criteria. Add or remove system flags and custom keywords in one operation.

Instructions

Add or remove flags on multiple messages in one operation. Provide EITHER uids OR match, plus at least one of flagsToAdd / flagsToRemove. Same flag whitelist as update_message_flags.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
folderNoFolder containing the messages (default: INBOX).INBOX
uidsNoExplicit UIDs to update, scoped to `folder`. Mutually exclusive with `match` — provide exactly one.
matchNoSearch criteria selecting the messages to update (same fields as search_messages). Mutually exclusive with `uids`.
flagsToAddNoFlags to add across all selected messages. System flags include the backslash (e.g. ["\\Seen"]); user keywords are bare (e.g. ["Important"]). At least one of flagsToAdd/flagsToRemove must be non-empty.
flagsToRemoveNoFlags to remove across all selected messages (e.g. ["\\Seen"] to mark unread).
dryRunNoWhen true, preview the exact UIDs that would be updated without changing any flags. Run this first for match-based selections.
Behavior3/5

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

Annotations already indicate idempotentHint=true and destructiveHint=false. The description adds that it's a bulk operation and references the flag whitelist, but does not cover transactional behavior, partial failures, or rate limits. Given annotation coverage, this is adequate but not exceptional.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise: two sentences with no redundant words. It front-loads the core purpose and follows with essential usage constraints. Every sentence carries weight.

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

Completeness3/5

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

While the description covers the main points for a bulk flag operation, it lacks details on return value, error handling, behavior for empty selections, or atomicity. Given the complexity (6 params, nested object) and absence of output schema, more completeness would be helpful.

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% with detailed descriptions for each parameter. The description adds no new parameter information beyond summarizing the requirement. Baseline 3 is appropriate.

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 verb 'add or remove flags' on 'multiple messages in one operation', effectively distinguishing it from the single-message sibling 'update_message_flags'. It also specifies the required inputs and mutual exclusivity.

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?

The description provides explicit instructions on how to provide inputs (EITHER uids OR match, plus at least one flag operation). It references the flag whitelist from update_message_flags. However, it lacks explicit guidance on when to use this tool over alternatives like bulk_update_labels.

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