Skip to main content
Glama
sethbang

proton-mail-mcp

delete_folder

Idempotent

Delete a folder or label container without destroying messages. Folder contents move to All Mail; label tag is removed. Use for cleanup of unwanted paths.

Instructions

Delete a mailbox folder or label container. Restricted to the "Folders/" and "Labels/" namespaces to protect system mailboxes (INBOX, Sent, Trash, etc.).

On Proton Mail this is not a destructive message operation: deleting a folder relocates its contents into "All Mail"; deleting a label simply removes the label tag and leaves the underlying message in its source folder. No confirm flag is required.

Accepts . and .. path segments by design — IMAP treats paths as opaque literal names with no parent-directory semantics, so this is the cleanup path for adversarial folder names left behind by other IMAP clients (or older versions of this server). create_folder and rename_folder reject those segments so confusable paths cannot be introduced through this tool.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesPath to delete (e.g. "Folders/Old", "Labels/Archived"). Must start with "Folders/" or "Labels/".
Behavior5/5

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

Annotations already indicate non-destructive and idempotent behavior. The description adds critical detail: deleting a folder moves contents to All Mail, deleting a label only removes the tag. This goes beyond annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with a clear first sentence stating purpose, followed by necessary constraints and behavioral details. Every sentence adds value without redundancy.

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 one-parameter tool with no output schema, the description covers purpose, constraints, behavior, and edge cases (accepting . and .. for cleanup). No gaps identified.

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

Parameters4/5

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

The schema already documents the path parameter with 100% coverage. The description adds examples and re-emphasizes the namespace constraint, adding value beyond the schema.

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 clearly states the action (delete) and the resource (mailbox folder or label container). It distinguishes from sibling tools like delete_message by specifying scope (Folders/ and Labels/ namespaces).

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?

The description explicitly restricts usage to two namespaces, protecting system mailboxes, and notes that no confirm flag is required. It does not explicitly compare to alternatives but provides context for appropriate use.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sethbang/proton-mail-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server