Skip to main content
Glama

delete_mail_folder

DestructiveIdempotent

Einen Ordner loeschen. Required: name. Optional: email_account_id. MIT SEINEM INHALT — bei IMAP ist das endgueltig. Bei Gmail verschwindet nur das Label, die Mails bleiben. Bei Outlook wandert der Ordner samt Inhalt in den Papierkorb. Systemordner lehnt der Server ab.

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>"
    },
    "name": "delete_mail_folder"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesName bzw. Pfad des zu loeschenden Ordners
email_account_idNoPostfach-ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / email_account_id / description
      Added value: +"Postfach-ID"
    • addedInput schema / properties / name / description
      Added value: +"Name bzw. Pfad des zu loeschenden Ordners"
  2. First observed

TDQS

A3.7/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, but the description adds real substance beyond them: content is deleted along with the folder, IMAP deletion is permanent, Gmail removes only the label while messages survive, Outlook moves everything to trash, and system folders are refused. That provider-specific divergence is exactly the kind of consequence an agent cannot infer from structured fields. It loses a point only for not addressing nested subfolders or partial-failure behavior.

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?

The definition is front-loaded with purpose, then the provider consequences, which is the right order for a destructive operation. The middle clause restating "Required: name. Optional: email_account_id." duplicates the schema and could be dropped without loss.

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 two-parameter destructive tool with no output schema, the definition covers the essentials: irreversibility, per-provider outcome, and the system-folder failure case. It is close to complete, with only edge cases like nested folder contents or permission errors left unstated.

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%, so the schema already documents both name and email_account_id. The description merely restates which is required and which is optional, adding no syntax, path-format, or defaulting meaning beyond the schema, which sets the baseline at 3.

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?

The opening sentence gives a specific verb and resource ("Einen Ordner loeschen"), which is unambiguous against siblings such as create_mail_folder or rename_mail_folder. It does not explicitly name an alternative tool or clarify the boundary with delete_label or delete_mailbox, so it stops short of full sibling differentiation.

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 the destructive semantics, and the definition usefully warns that system folders are rejected by the server, which shapes when the call will succeed. However, it never states when to prefer this tool over delete_label or delete_mailbox, nor any prerequisite ordering or permission requirement.

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.