Skip to main content
Glama
Thunderbird MCP by Commonpost

Thunderbird MCP by Commonpost

Delete Folder

deleteFolder
Destructive

Deletes a mail folder and all its contents, moving it to Trash or permanently deleting it when already in Trash; saved searches are only views, and deleteMessages removes individual messages.

Instructions

Delete a mail folder and all its contents (a saved search is only a view: no mail deleted): moved to Trash, or deleted for good, possibly after asking the user, when already in Trash. To remove some messages only, use deleteMessages. On IMAP the server finishes later: check with listFolders.

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": {
      "folderPath": "<folderPath>"
    },
    "name": "deleteFolder"
  }
}

Input Schema

NameRequiredDescriptionDefault
folderPathYesURI of the folder to delete (from listFolders)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is known. The description still adds real value beyond them: it discloses the trash-then-permanent deletion sequence, that the user may be prompted when the folder is already in Trash, and that IMAP deletion completes asynchronously. No contradiction with the annotations, but these additions are behavioral detail layered on an already well-annotated mutation.

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?

Dense but front-loaded: the destructive action leads, alternatives and verification follow. The parentheticals and the aside "possibly after asking the user" are slightly compressed to the point of ambiguity, but no sentence is filler.

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?

For a one-parameter destructive tool with full annotation coverage and no output schema, the definition covers what is destroyed, the two-stage deletion lifecycle, the sibling alternative, and how to confirm completion. Nothing an agent needs in order to call it safely is missing.

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 its own description ("URI of the folder to delete (from listFolders)"). The description's mention of listFolders duplicates rather than extends that. Baseline 3 applies since the schema does all the parameter work.

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 mail folder and all its contents") and immediately clarifies that a saved search is only a view so no mail is deleted. It explicitly distinguishes itself from the sibling deleteMessages, so an agent can choose between folder-level and message-level deletion without opening either 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?

Names the alternative ("To remove some messages only, use deleteMessages") and the condition selecting it. It also gives the post-call verification path on IMAP ("check with listFolders"), which is genuine when-to guidance rather than mere description.

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