Create folder
create_folderCreate a mailbox folder or nested subfolder path, with missing parents added automatically. Existing folders are returned unchanged, and system folders are rejected.
Instructions
Create a folder in a mailbox. For a subfolder, give the full path with the separator the mailbox already uses in its folder names, such as Projects/2026. Missing parent folders are created too. If the folder already exists, it is returned unchanged. System folder names, including Inbox, Sent and Trash, are rejected. In Gmail, the folder is a label. Call list_folders first to see how the mailbox writes folder paths.
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, or the full path of a subfolder, such as Receipts or Projects/2026. | |
| accountId | No | Account to operate on. Optional when exactly one account is connected. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes |