List folders / labels
list_foldersRetrieve folders or Gmail labels for a mail account with message and unseen counts, so you can choose the correct folder to search or read.
Instructions
Lists folders (Gmail: labels) with message and unseen counts. On Outlook path is an opaque id and name the hierarchy ("Projects/2026"); tools accept either as a 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": {
"account": "<account>"
},
"name": "list_folders"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | list_accounts id |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | ||
| folders | Yes |