List labels
list_labelsLists all labels, system and user-created, with their IDs for a specified Gmail account to verify label existence before applying it to messages.
Instructions
List the labels of an account, system and user-created, with their ids. Call this before label_message if you are unsure a label exists.
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_labels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | Configured account: the email address, or the alias given at setup. |