Skip to main content
Glama
email-mcp

email-mcp

by a1exsun

delete_folder

Remove an empty email folder after moving or deleting its messages first, enabling mailbox cleanup without deleting emails.

Instructions

Delete an EMPTY folder. Move or delete its emails first.

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
pathYes
accountNoMailbox: WORK | PERSONAL. Default WORK

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It usefully discloses the empty-folder precondition, but says nothing about whether deletion is permanent or recoverable, whether it fails or silently no-ops on a non-empty folder, or whether permissions are required — important 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 short imperative sentences with zero waste; the critical constraint (EMPTY) is capitalized and front-loaded ahead of the remedy.

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 simple two-parameter delete tool with no output schema, the description covers the essential precondition. The remaining gap is the undocumented `path` format and the lack of any statement about irreversibility, which an agent deciding whether to call this would want.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 50%: `account` is documented in the schema, but `path` has no description anywhere, and the tool description never clarifies whether path is a folder name, a delimited path, or case-sensitive. The description adds no parameter meaning beyond what the schema already provides.

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 ("Delete an EMPTY folder") and the precondition in the same breath, so the agent knows exactly what the tool does. It does not name a sibling explicitly, though "Move or delete its emails first" gestures at move_emails/delete_emails.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The empties-only constraint functions as a clear when-not condition, and the second sentence tells the agent what to do instead (move or delete the contents first). It stops short of naming the sibling tools or covering cases like nested subfolders.

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