gmail_list
List Gmail messages filtered by labels like INBOX, SENT, or UNREAD. Supports pagination and optional inclusion of spam and trash.
Instructions
List Gmail messages with optional label filter
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| labelIds | No | Comma-separated label IDs, e.g. 'INBOX', 'SENT', 'UNREAD' (default: INBOX) | |
| pageToken | No | Page token for pagination | |
| maxResults | No | Max messages to return (default 20, max 500) | |
| includeSpamTrash | No | Include SPAM and TRASH in results (default false) |