Skip to main content
Glama
ProtonMail MCP Server

ProtonMail MCP Server

by barhatch

add_label

Moves an email into a Labels/LabelName folder to apply that label; create the label folder first if it is missing.

Instructions

🏷️ Add a label to an email. Note: Labels are folders with 'Labels/' prefix. This moves the email 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": {
      "emailId": "<emailId>",
      "label": "<label>"
    },
    "name": "add_label"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelYesLabel name without prefix (e.g., 'Work', 'Important'). Will be moved to 'Labels/LabelName' folder.
emailIdYesEmail ID

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 the most important job: disclosing that adding a label actually relocates the email into a 'Labels/LabelName' folder rather than merely tagging it. It still omits whether the email leaves the inbox, whether the operation is reversible, and what error surfaces if the folder is missing.

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 followed by the caveat an agent most needs. Slight redundancy between 'Labels/' prefix and the 'Labels/LabelName' example, but nothing wasted.

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 two-parameter tool with no annotations and no output schema, the description covers the surprising side effect and the setup prerequisite. Remaining gaps are the post-condition on the source folder and failure behavior, which are secondary.

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 both parameters are already documented, including the prefix-stripping rule for 'label'. The description restates that behavior rather than adding new meaning, so the baseline 3 applies.

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 an email') and immediately clarifies a non-obvious mechanic: labels are folders, so this is effectively a move. It does not name or differentiate against its obvious sibling bulk_add_label, keeping it 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?

Provides a concrete prerequisite — create the label folder first if it does not exist — which tells the agent when the call will fail. It gives no guidance on when to prefer this over bulk_add_label or move_email, so alternative routing 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.