Create a folder
create_folderCreates a new email folder in an account and returns its ID for moving messages; specify a parent folder or omit it to create at the top level.
Instructions
Create a folder in an account. Answers its id, which update_messages takes as move_to. Fails on an account without folders, which list_accounts names under unsupported. To rename or move a folder that exists, use update_folder. Folders are not deleted by any tool.
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": {
"account_id": "<account_id>",
"name": "<name>"
},
"name": "create_folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The new folder's name | |
| parent | No | Folder id or role to create it in. Left out: the top | |
| account_id | Yes | The account, by the id list_accounts names |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| name | Yes |