Create Mailbox
create_mailboxCreate a new mailbox folder in a specified account, supporting nested paths via parent_mailbox or slash-separated names. Use it to organize emails into folders, including nested structures.
Instructions
Create a new mailbox (folder) in the specified account.
Supports nested paths via the parent_mailbox parameter (e.g., parent_mailbox="Projects" + name="2024" creates Projects/2024). You can also pass a full slash-separated path as name (e.g., "Projects/2024/ClientName") and omit parent_mailbox.
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": "<account>",
"name": "<name>"
},
"name": "create_mailbox"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name for the new mailbox. May contain "/" to create a nested path in one call (each segment is created if needed). | |
| account | Yes | Account name (e.g., "Gmail", "Work") | |
| parent_mailbox | No | Optional existing parent folder for nesting. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |