Skip to main content
Glama
Protonmail MCP Server

Protonmail MCP Server

by jagjourney

bulk_action

Apply actions to all emails matching a filter in a folder for bulk cleanup, such as marking newsletters as read or moving messages from one sender.

Instructions

Apply an action to all emails matching a filter in a folder. Use for bulk cleanup operations like marking all newsletters as read or moving all emails from a sender.

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": {
      "action": "<action>",
      "filter": "<filter>"
    },
    "name": "bulk_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYesAction to apply
filterYesSearch filter to match emails
folderNoFolder to operate onINBOX
destinationNoDestination folder (required for 'move' action)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.3

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden, and it does convey that the operation is broad-scope (matches are affected en masse). However, it never says whether 'delete' trashes or permanently destroys, whether the operation is reversible, or that no preview/count or confirmation occurs — critical omissions for a bulk destructive tool when siblings like move_to_trash and permanently_delete both exist.

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?

Two sentences with no filler, and the core scope constraint is front-loaded before the examples. The second sentence duplicates the first somewhat and covers only two of the six enum actions, but it still earns its place by grounding the abstraction.

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

Completeness2/5

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

For a 4-parameter bulk mutation tool with a nested filter object and zero annotations and no output schema, the definition should disclose irreversibility, destructive-action semantics, and expected outcome. Those gaps leave the agent unable to judge risk before invoking an action that could affect many emails at once.

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%, so every parameter including the nested filter fields is already documented, which sets the baseline at 3. The description only adds loose semantic color by mapping example scenarios to action values; it adds nothing about the folder default or the destination-required-for-move constraint beyond what the schema states.

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?

The description states a specific verb and resource with an explicit scope qualifier: applying an action to *all* emails matching a filter in a folder. That scope word distinguishes it from single-message siblings like mark_as_read or move_email, but it never names those siblings, so the differentiation must be inferred.

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 concrete when-to-use guidance with two illustrative scenarios ('marking all newsletters as read', 'moving all emails from a sender') that make the bulk-cleanup intent unambiguous. It stops short of exclusions — nothing tells the agent to prefer mark_as_read/move_email for a single message rather than constructing a one-match filter.

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