create_folder
Create a new mailbox folder in your email account to organize messages; returns the folder details or an error if the name already exists.
Instructions
Create a mailbox folder on the provider. Returns the created folder ({id, displayName, ...}) or an error object if the provider refuses (e.g. the name already exists). Executed immediately without approval — creating an empty folder is harmless and reversible — and written to the audit log. Deleting a folder is a different, approved tool (delete_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": {
"name": "<name>"
},
"name": "create_folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Folder name. Created at the top level of the mailbox (Graph) or under the account's default prefix, usually INBOX. (IMAP). Use list_folders afterwards to get its id. | |
| account_id | No | Account to operate on (integer id from list_accounts). Omit or null = the user's active account. |