Skip to main content
Glama

rename_mail_folder

DestructiveIdempotent

Einen Ordner umbenennen oder verschieben. Required: name, new_name. Optional: email_account_id. Bei IMAP zieht ein Umbenennen die Unterordner mit; bei Gmail gibt es keine Unterordner, dort ist es nur ein neuer Labelname. Bei Outlook wird ausschliesslich umbenannt — ein Pfad in new_name verschiebt den Ordner NICHT, nur sein letzter Teil wird genommen.

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": {
      "name": "<name>",
      "new_name": "<new_name>"
    },
    "name": "rename_mail_folder"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesAktueller Name bzw. Pfad des Ordners
new_nameYesNeuer Name bzw. Zielpfad; bei Outlook zaehlt nur der letzte Teil
email_account_idNoPostfach-ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / email_account_id / description
      Added value: +"Postfach-ID"
    • addedInput schema / properties / name / description
      Added value: +"Aktueller Name bzw. Pfad des Ordners"
    • addedInput schema / properties / new_name / description
      Added value: +"Neuer Name bzw. Zielpfad; bei Outlook zaehlt nur der letzte Teil"
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is covered. The description adds real behavioral context beyond them: subfolders are carried along on IMAP, Gmail has no hierarchy so it is a label rename, and on Outlook a path in new_name is silently truncated to its last segment. It omits error behavior when the target exists, but the provider-specific consequences of a destructive operation are well disclosed.

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 required and optional parameters, then spends the remaining sentences on provider differences. Slightly redundant with the schema's new_name wording on Outlook, but no sentence is wasted overall.

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

Completeness4/5

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

For a three-parameter mutation tool with annotations carrying the safety hints and no output schema, the description covers the important variance across IMAP/Gmail/Outlook. Missing only secondary details such as behavior on name conflicts or whether success is reported.

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%, so all three parameters are already documented, including the Outlook last-segment rule that the description repeats. The description adds the cross-provider meaning of new_name (full path on IMAP vs. bare label on Gmail), which is modest added value, so it sits at the baseline rather than above it.

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 pair and resource ('Einen Ordner umbenennen oder verschieben'), and immediately qualifies that the move aspect is provider-dependent. An agent knows exactly what the tool does and that its effect varies by backend.

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?

Gives conditional guidance by backend (IMAP subfolders travel, Gmail is label-only, Outlook never moves), which is genuinely useful selection context. It does not, however, name when to prefer this over siblings such as create_mail_folder or delete_mail_folder, nor state any preconditions like target-name collisions.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.