Skip to main content
Glama
proton-mail-mcp

proton-mail-mcp

by sethbang

Create label

create_label
Idempotent

Create a new Proton Mail label to organize messages as non-exclusive tags; it succeeds silently if the label already exists.

Instructions

Create a new Proton label. Pass the label name (e.g. "Important"); the tool puts it under "Labels/". If it exists in another case, the result gives its real name. Labels are non-exclusive tags: a message can carry many labels in addition to living in one folder. Apply or remove labels on messages with update_message_labels. Idempotent — succeeds silently if the label already exists.

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": {
      "name": "<name>"
    },
    "name": "create_label"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesLabel name (e.g. "Important"); a "Labels/" prefix is accepted and ignored. Labels can't be nested, so no other "/".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.0.1
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedInput schema / properties / name / description
      Previous value: -"Bare label name (e.g. \"Important\", \"Work\"). Do not include the \"Labels/\" prefix."New value: +"Label name (e.g. \"Important\"); a \"Labels/\" prefix is accepted and ignored. Labels can't be nested, so no other \"/\"."
  2. First observedv1.0.1

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover idempotency, destructiveness and openness, yet the description still adds real behavior: the label is auto-placed under a 'Labels/' prefix, case-insensitive collisions resolve silently and return the canonical name, and labels are non-exclusive tags rather than folders. It repeats the idempotency hint from annotations rather than extending it, which holds it back from 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?

Front-loaded with the action and its required argument, then the prefix rule, then the alternative tool, then idempotency — a logical order with no filler. The aside explaining that labels are non-exclusive tags is mildly tangential, though it does prevent an agent from treating labels as folders.

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 one-parameter, non-destructive, idempotent creation tool with no output schema, the description covers placement, prefix handling, case behavior and the idempotent result path — enough to call it correctly. It stops short of describing any failure modes (e.g. invalid characters beyond '/'), a minor gap.

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% and the schema itself documents the example value, the accepted-and-ignored 'Labels/' prefix, and the no-nesting rule, so the description's 'Pass the label name' adds little beyond it. The case-insensitive real-name return is a behavioral detail rather than parameter meaning, so the 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 opens with a specific verb+resource ('Create a new Proton label') and immediately distinguishes the operation from the sibling that manipulates labels on messages ('Apply or remove labels on messages with `update_message_labels`'). An agent can tell creation apart from application without opening either schema.

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 clearly routes the agent to `update_message_labels` for attaching/detaching labels on messages, and notes the tool is idempotent so callers need not check existence first. There is no explicit 'when not to use' statement (e.g. nesting under folders is silently disallowed rather than framed as an exclusion), which keeps it short of a 5.

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