google-gmail_list_messages
List Gmail messages with filters for search queries, labels, and pagination to retrieve specific emails from your mailbox.
Instructions
List messages in user's mailbox with optional filtering
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": "google-gmail_list_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Gmail search query (e.g., 'from:user@example.com subject:important') | |
| userId | No | User's email address or 'me' for authenticated user | |
| labelIds | No | Comma-separated list of label IDs to filter by | |
| pageToken | No | Page token for pagination | |
| maxResults | No | Maximum number of messages to return (1-500, default 100) | |
| includeSpamTrash | No | Include messages from SPAM and TRASH |