Skip to main content
Glama

list_threads

Retrieve email threads from your Gmail mailbox with filtering options for labels, search queries, and spam/trash inclusion to organize and access your conversations.

Instructions

List threads in the user's mailbox

Input Schema

NameRequiredDescriptionDefault
maxResultsNoMaximum number of threads to return
pageTokenNoPage token to retrieve a specific page of results
qNoOnly return threads matching the specified query
labelIdsNoOnly return threads with labels that match all of the specified label IDs
includeSpamTrashNoInclude threads from SPAM and TRASH in the results
includeBodyHtmlNoWhether to include the parsed HTML in the return for each body, excluded by default because they can be excessively large

Input Schema (JSON Schema)

{ "properties": { "includeBodyHtml": { "description": "Whether to include the parsed HTML in the return for each body, excluded by default because they can be excessively large", "type": "boolean" }, "includeSpamTrash": { "description": "Include threads from SPAM and TRASH in the results", "type": "boolean" }, "labelIds": { "description": "Only return threads with labels that match all of the specified label IDs", "items": { "type": "string" }, "type": "array" }, "maxResults": { "description": "Maximum number of threads to return", "type": "number" }, "pageToken": { "description": "Page token to retrieve a specific page of results", "type": "string" }, "q": { "description": "Only return threads matching the specified query", "type": "string" } }, "type": "object" }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/HitmanLy007/gmail-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server