Skip to main content
Glama
ProtonMail MCP Server

ProtonMail MCP Server

by barhatch

bulk_add_label

Bulk-add a label to multiple ProtonMail emails by moving them to the corresponding Labels folder; create that folder first if it does not exist.

Instructions

🏷️ Add a label to multiple emails. Note: Labels are folders with 'Labels/' prefix. This moves emails to 'Labels/LabelName'. Create the label folder first if it doesn't exist.

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": {
      "emailIds": "<emailIds>",
      "label": "<label>"
    },
    "name": "bulk_add_label"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelYesLabel name without prefix (e.g., 'Work', 'Important'). Emails will be moved to 'Labels/LabelName' folder.
emailIdsYesArray of email IDs to label

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A3.7/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 disclose the non-obvious behavior: labels are folders and this operation actually moves emails into 'Labels/LabelName'. It omits what happens on failure (missing label) and whether the move is reversible, keeping it below a 5.

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?

Three short sentences, front-loaded with the action and immediately followed by the key semantic caveat. Slight redundancy with the schema's own label description is the only waste.

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 2-parameter tool with no annotations or output schema, the description covers the action, the destination semantics, and the folder prerequisite. Only error behavior when the label folder is absent is 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 description coverage is 100%, so both parameters are already documented in the schema. The description's prefix/no-prefix and destination-path notes largely restate what the schema already says, adding little beyond the baseline.

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 ('Add a label to multiple emails') and the 'multiple' scope implicitly separates it from the single-email add_label sibling. It does not explicitly name an alternative, so it stops short of a 5.

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?

Gives one concrete prerequisite ('Create the label folder first if it doesn't exist'), which is useful when-guidance. However, it never says when to use this versus add_label or bulk_move_emails, so the choice between siblings is left to inference.

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