Gmail List Labels
gmail_list_labelsList all Gmail labels, including system and user labels, with IDs and types so you can use the correct label names in other Gmail tools.
Instructions
List every label in the mailbox: system labels (INBOX, SENT, DRAFT, SPAM, TRASH, UNREAD, STARRED, IMPORTANT, CATEGORY_*) and the user's own. The other Gmail tools accept label names directly; use this to see which labels exist, their IDs and types. Returns labels (id, name, type 'system' or 'user', message_list_visibility, label_list_visibility, background_color, text_color) and count.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "gmail_list_labels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of items in this response. | |
| labels | No | Every label in the mailbox. | |
| has_more | No | Whether another page is available. | |
| fetched_at | No | RFC3339 time when this response was fetched. | |
| next_page_token | No | Opaque token for the next page, or null. |