Skip to main content
Glama
ProtonMail MCP Server

ProtonMail MCP Server

by barhatch

rename_folder

Rename ProtonMail email folders or labels by providing the current and new paths with Folders/ or Labels/ prefixes.

Instructions

✏️ Rename an email folder or label. 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": {
      "oldName": "<oldName>",
      "newName": "<newName>"
    },
    "name": "rename_folder"
  }
}

Input Schema

NameRequiredDescriptionDefault
newNameYesNew folder path (e.g., 'Folders/NewName' or 'Labels/NewLabel')
oldNameYesCurrent folder path (e.g., 'Folders/OldName' or 'Labels/OldLabel')

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?

No annotations are provided, so the description carries the full behavioral burden. It says nothing about whether renaming preserves the messages inside the folder/label, what happens if newName already exists, whether the prefix must match between old and new, or whether the operation is reversible — significant gaps for a mutation tool with zero annotation coverage.

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 short sentences with the verb and scope front-loaded and the prefix qualifier immediately after. Nothing is wasted and nothing is buried.

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?

The tool is simple (2 required string params, no nesting, no output schema), so the definition is close to sufficient. However, as a mutation with no annotations, an agent still lacks guidance on name-collision behavior and whether content is preserved, which are the main risks when calling a rename.

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 both parameters already carry inline examples of the 'Folders/...' and 'Labels/...' path format, so the schema does the heavy lifting. The description reinforces the prefix convention, which is useful, but adds no constraint beyond what the schema already states.

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?

States a specific verb and resource ('Rename an email folder or label') and clarifies that the tool spans both the folder and label namespaces, which distinguishes it from siblings like create_folder, delete_folder, and add_label. It stops short of naming any sibling explicitly, but the operation itself is unambiguous.

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?

Usage is implied by 'Rename' rather than stated: an agent can infer this is the tool for changing an existing name, not for creating or deleting. There is no explicit when-to-use versus alternatives (e.g., create_folder to make a new one) and no mention of prerequisites such as the target name not already existing.

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