Skip to main content
Glama
mattias242

protonmail-mcp-server

by mattias242

Skapa mapp eller etikett

create_folder

Create a new folder or label in ProtonMail by passing a prefixed name like Folders/Project or Labels/Receipts; prefix determines type.

Instructions

Skapa en ny mapp eller etikett i Proton.

Namnet avgör typen och måste ha ett av prefixen:

  • "Folders/Namn" skapar en mapp. Ett mejl ligger i exakt en mapp. Undermappar ("Folders/A/B") går bra om "Folders/A" redan finns.

  • "Labels/Namn" skapar en etikett. Ett mejl kan ha flera etiketter. Underetiketter ("Labels/A/B") finns inte i Proton. Namn utan prefix avvisas med fel; prefixet sätts inte automatiskt eftersom mapp och etikett beter sig olika.

Args: name: Namn med prefix, t.ex. "Folders/Projekt" eller "Labels/Kvitton"

Proton kräver unika namn över mappar och etiketter tillsammans: finns "Labels/Kvitton" går det inte att skapa "Folders/Kvitton". Felet säger då vilken mapp eller etikett som redan har namnet.

Returns: True när mappen är skapad. Annars kastas ett fel med förklaring.

Input Schema

NameRequiredDescriptionDefault
nameYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.4.0
    • addedInput schema / properties / name / maxLength
      Added value: +255
    • addedInput schema / properties / name / minLength
      Added value: +1
  2. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and non-idempotence, so the safety profile is covered. The description adds real behavioral context beyond that: unprefixed names are rejected rather than auto-corrected, subfolder creation fails unless the parent exists, and names must be unique across folders and labels together with a descriptive error returned on collision.

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-loads the core action, then uses compact bullets for the prefix rules and a short Args/Returns block. The Returns section partially duplicates the existing output schema, which is minor waste, but nearly every line earns its place given the 0% schema coverage.

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

Completeness5/5

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

For a dual-mode creation tool with no schema documentation, the description supplies the prefix grammar, nesting rules, uniqueness constraint, and failure behavior, which is everything required to invoke it correctly. Return values are already covered by the output schema, so the brief Returns note is extra rather than missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% for the single 'name' parameter, so the description must carry the full load and does: it specifies the mandatory prefix syntax, gives concrete examples ('Folders/Projekt', 'Labels/Kvitton'), and explains nested-path behavior for each prefix. Nothing needed to build a valid argument is missing.

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?

States a specific verb and resource ('Skapa en ny mapp eller etikett') and immediately disambiguates the dual mode via the required Folders/ vs Labels/ prefix. This lets an agent distinguish it from siblings like add_label (label an existing email), rename_folder and delete_folder without opening any 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?

Explicitly explains when to choose each mode: an email lives in exactly one folder, but can carry multiple labels; subfolders are allowed while sublabels are not. It gives strong in-tool routing context but never names or contrasts sibling tools (add_label, rename_folder), so there is no explicit when-not-to-use.

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