imap_delete_mailbox
Delete a specified mailbox or folder from a chosen email account after explicit confirmation, enabling removal of unwanted folders.
Instructions
Delete a mailbox/folder
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": {
"mailbox_name": "<mailbox_name>",
"confirm": "<confirm>"
},
"name": "imap_delete_mailbox"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | Explicit confirmation required (must be `true`) | |
| account_id | No | Account identifier (defaults to `"default"`) | default |
| mailbox_name | Yes | Name of the mailbox to delete |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Tool-specific data payload | |
| meta | Yes | Execution metadata (timestamp, duration) | |
| summary | Yes | Human-readable summary of the operation outcome |