manage_email_folder
Create, rename or delete a mailbox folder destructive
Description
Create, rename or delete a folder in the brand's own connected mailbox. action "create" with name (and parent for a subfolder), "rename" with folder and name, "delete" with folder. A delete without confirm:true deletes NOTHING and answers how many messages (and subfolders) the folder holds; call again with confirm:true to delete it with them. The mailbox's own folders (inbox, sent, drafts, trash, junk, archive) are never renamed or deleted. folder is a name, a path like "Clients/Acme" or an id from list_email_folders. mailbox: the address or mailbox id from list_email_mailboxes; needed when several are connected. Sends nothing. Free.
Parameters
| Parameter | Type | Description |
|---|---|---|
mailbox | string | the address or mailbox id |
actionrequired | "create" | "rename" | "delete" | what to do |
folder | string | with rename / delete: the folder (name, path or id) |
name | string | with create / rename: the new name |
parent | string | with create: the folder to put it in |
confirm | boolean | with delete: true deletes it and the mail in it |
Example call
Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/manage_email_folder.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"manage_email_folder","arguments":{"action":"<one of the listed values>"}}}
CLI
hermoso call manage_email_folder --json '{"action":"<one of the listed values>"}'
Credits
Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.
Related tools
list_email_foldersList the folders in a connected mailboxlist_email_mailboxesList the mailboxes this brand sends fromsearch_emailSearch the messages in a connected mailboxset_email_reply_settingsSet what happens with email repliesget_email_threadRead a whole email threadsync_email_replies_to_hubspotSend email replies to HubSpotupdate_emailMark, flag, label, move or trash emailstest_inbox_placementTest where an email landssave_email_draftSave a draft in the mailboxverify_emailCheck one email address