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
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Folder to delete. It must be empty. |