list_messages
Retrieve and filter messages from a Gmail mailbox using optional parameters like label IDs, search queries, and result limits. Supports inclusion of spam/trash messages and HTML body content.
Instructions
List messages in the user's mailbox with optional filtering
Input Schema
Name | Required | Description | Default |
---|---|---|---|
includeBodyHtml | No | Whether to include the parsed HTML in the return for each body, excluded by default because they can be excessively large | |
includeSpamTrash | No | Include messages from SPAM and TRASH in the results | |
labelIds | No | Only return messages with labels that match all of the specified label IDs | |
maxResults | No | Maximum number of messages to return. Accepts values between 1-500 | |
pageToken | No | Page token to retrieve a specific page of results | |
q | No | Only return messages matching the specified query. Supports the same query format as the Gmail search box |
Input Schema (JSON Schema)
You must be authenticated.
Other Tools from Gmail MCP
- add_delegate
- batch_delete_messages
- batch_modify_messages
- create_draft
- create_filter
- create_forwarding_address
- create_label
- create_send_as
- delete_draft
- delete_filter
- delete_forwarding_address
- delete_label
- delete_message
- delete_send_as
- delete_smime_info
- delete_thread
- get_attachment
- get_auto_forwarding
- get_delegate
- get_draft
- get_filter
- get_forwarding_address
- get_imap
- get_label
- get_language
- get_message
- get_pop
- get_profile
- get_send_as
- get_smime_info
- get_thread
- get_vacation
- insert_smime_info
- list_delegates
- list_drafts
- list_filters
- list_forwarding_addresses
- list_labels
- list_messages
- list_send_as
- list_smime_info
- list_threads
- modify_message
- modify_thread
- patch_label
- patch_send_as
- remove_delegate
- send_draft
- send_message
- set_default_smime_info
- stop_mail_watch
- trash_message
- trash_thread
- untrash_message
- untrash_thread
- update_auto_forwarding
- update_draft
- update_imap
- update_label
- update_language
- update_pop
- update_send_as
- update_vacation
- verify_send_as
- watch_mailbox
Related Tools
- @kazuph/mcp-gmail-gas
- @shinzo-labs/gmail-mcp
- @epaproditus/google-workspace-mcp-server
- @rishipradeep-think41/gsuite-mcp
- @shinzo-labs/gmail-mcp