Skip to main content
Glama
Protonmail MCP Server

Protonmail MCP Server

by jagjourney

delete_folder

Delete an email folder or label after confirming it is empty. Use it to remove unused folders and keep your Proton Mail structure clean.

Instructions

Delete an email folder/label (must be empty)

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

Input Schema

NameRequiredDescriptionDefault
pathYesFolder path to delete

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.3

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description must carry the safety profile, and it does disclose the key constraint that the folder must be empty. It does not say whether the deletion is permanent or recoverable, whether it affects the contained label mapping, or what happens on a non-empty folder (error vs partial), which is significant for a destructive operation.

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?

A single short sentence with the action front-loaded and the precondition attached inline — nothing wasted. The parenthetical is dense but readable, and there is no filler or repetition of the title.

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

Completeness3/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 full schema coverage and no output schema, the description covers the essentials: what it deletes and the emptiness requirement. What it omits — permanence/recoverability and the failure mode for a non-empty folder — is the information an agent most needs before invoking a destructive, unannotated operation.

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?

There is one parameter with 100% schema description coverage, so the schema already explains that path is the folder path to delete. The description adds no format, casing, nesting, or separator conventions beyond the schema, so the baseline of 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?

"Delete an email folder/label" gives a specific verb and resource, and the parenthetical clarifies that labels are included, which distinguishes it from delete_rule, delete_template and delete_message-style siblings. It stops short of contrasting with permanently_delete or move_to_trash, so the boundary between delete and permanent-delete remains for the agent to infer.

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?

The "must be empty" clause is a real usage precondition that tells the agent when the call will fail. However, there is no guidance on what to do first (empty it? use another tool?), no named alternative such as permanently_delete, and no statement of when this tool should be chosen over the other delete_* siblings.

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