Skip to main content
Glama

Delete a folder

delete_folder
Destructive

Delete an EMPTY folder, and unsubscribe it so it does not linger as a phantom in the user's mail client. REFUSES a folder that still holds messages, and says how many - unlike delete_email there is no Trash to recover them from, so move them elsewhere with move_email or send them to Trash with delete_email first, then delete the empty folder. Also refuses a folder that has sub-folders inside it, refuses INBOX, and refuses Sent, Drafts, Trash, Junk and Archive. Read the refusal and tell the user what it says.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesThe folder to delete, e.g. "Old projects".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the destructiveHint annotation, the description details refusal conditions, the permanent nature of deletion (no Trash recovery), and the expected response behavior (read refusal and tell the user). This fully discloses the tool's edge-case behavior and consequences.

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 description is somewhat verbose but every sentence adds critical operational detail (refusal cases, recovery guidance, system folder exclusions). The structure flows logically from action to constraints to fallback instructions, making it efficient despite its length.

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

Completeness5/5

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

Given the tool's destructive nature and multiple refusal scenarios, the description covers all relevant cases (non-empty, subfolders, INBOX, system folders) and provides clear next steps. It even specifies how to handle the output (read the refusal and tell the user), making it fully self-contained for an agent.

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?

The single parameter 'name' is fully described in the schema with an example ('Old projects'). The description adds no additional semantic information beyond what the schema already provides, so a baseline score of 3 is appropriate.

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?

Clearly states the tool deletes an empty folder and unsubscribes it, distinguishing it from delete_email by noting the lack of a Trash recovery option. The scope is specific and the resource (folder) 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 Guidelines5/5

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

Explicitly instructs when to use this tool versus alternatives (move_email, delete_email) and warns about refusals for non-empty, subfoldered, or system folders. Tells the agent to read the refusal and relay it to the user, leaving no ambiguity about proper usage.

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.

Resources