Skip to main content
Glama
ProtonMail MCP Server

ProtonMail MCP Server

by barhatch

delete_folder

Delete an empty email folder or label by specifying its path with the required 'Folders/' or 'Labels/' prefix.

Instructions

🗑️ Delete an email folder or label (must be empty). Works with 'Folders/' or 'Labels/' prefixes

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

Input Schema

NameRequiredDescriptionDefault
folderNameYesFolder path to delete (e.g., 'Folders/MyFolder' or 'Labels/Work')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

B3.3/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It discloses one important constraint (folder must be empty) and the accepted path prefixes, but says nothing about reversibility, what happens to a label's association with existing emails, whether child folders are affected, or what the failure mode looks like for a non-empty folder — significant omissions 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.

Conciseness5/5

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

Two compact clauses, front-loaded with the action and immediately followed by the key constraint. Nothing is padded or repeated; the emoji is decorative but costs no comprehension.

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?

There is no output schema and only one fully documented parameter, so the schema side is well covered. But for a destructive tool with zero annotation coverage, the description should say more about consequences (irreversibility, label detachment, nested folders) to be complete enough for safe invocation.

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 description coverage is 100% and the single parameter is fully documented with the same 'Folders/MyFolder' / 'Labels/Work' examples. The description's prefix note duplicates rather than extends the schema, so 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?

Specific verb + resource: 'Delete an email folder or label' clearly separates this from deleting emails (delete_email, bulk_delete_emails) or mutating folder metadata (rename_folder). The prefix hint ('Folders/' or 'Labels/') further pins down the resource space, though it never explicitly names an alternative tool.

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 parenthetical '(must be empty)' is a real precondition that tells the agent when this call will fail, which is useful guidance. However, there is no explicit when-to-use-vs-alternatives routing (e.g., to delete messages inside a folder first, or to use rename_folder instead), so the agent must infer the workflow.

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