Skip to main content
Glama
mail-mcp

mail-mcp

by spencer-fs

delete_folder

Delete an empty mail folder permanently, provided it has no messages or subfolders. Move messages out first, since folders containing mail and special folders like the inbox are refused.

Instructions

Delete a folder, only if it holds no messages and has no subfolders. Deleting a folder with messages would erase them permanently, so that is refused: move the messages out (or to Trash) first. The inbox and special folders cannot be deleted.

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_folder"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesFolder to delete. It must be empty.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations by explaining the refusal semantics (the operation is rejected on non-empty folders), the consequence being avoided (messages erased permanently), and the protected folder classes. It also makes the otherwise puzzling destructiveHint=false coherent: the tool is safe specifically because it refuses destructive cases.

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?

Three sentences, each carrying a distinct constraint: the emptiness rule first, the rationale for refusal second, the protected-folder carve-out last. Nothing is repeated and the most decision-relevant information is front-loaded.

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 one-parameter mutation with no output schema and thin annotations, the description covers the safety-critical behavior and the failure path an agent must anticipate. Minor gaps remain around how the folder is identified (name vs. path, nested folders) and what a success response looks like, though the no-output-schema context lowers that burden.

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 the single parameter already carries "Folder to delete. It must be empty." The description reinforces the emptiness constraint but adds no naming, path, or case-sensitivity detail beyond the schema, so it sits at the baseline rather than compensating for a gap.

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 and resource ("Delete a folder") plus the key precondition ("only if it holds no messages and has no subfolders"), which cleanly separates it from delete_messages and rename_folder. An agent can tell which sibling handles folder removal vs. message removal without opening a schema.

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

Usage Guidelines5/5

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

Explicit preconditions are given, an alternative action is prescribed when they fail ("move the messages out (or to Trash) first"), and an exclusion is stated ("The inbox and special folders cannot be deleted"). This is a full when-to-use / when-not-to-use / do-this-instead triad.

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