Skip to main content

Gmail List Threads

Immutable Catalog Entry

This descriptor comes from the active versioned Portal catalog.

READgoogle.gmail_list_threads
  • Contract tier: agent_ready
  • Risk: read
  • Catalog version: google-2026.07.12.2
  • Descriptor hash: f92ca05636d42ab92652ac7d8af8d496930db147d7a72252180c68796e9d452f

Use this read-only Gmail tool to list thread IDs by query or labels. Fetch a thread by ID for message-level details. It reads the configured user's Google data through per-request OAuth, does not mutate provider state, and returns a normalized bounded envelope.

Request Body

{
"jsonrpc": "2.0",
"id": "google-gmail-list-threads-example",
"method": "tools/call",
"params": {
"name": "google.gmail_list_threads",
"arguments": {
"query": "query_example",
"label_ids": "",
"page_token": "page_token_example",
"max_results": 1
}
}
}

Arguments Schema

{
"type": "object",
"title": "gmail_list_threadsArguments",
"properties": {
"query": {
"type": "string",
"title": "Query",
"default": "",
"description": "Provider query string used to filter results."
},
"label_ids": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
],
"title": "Label Ids",
"default": null,
"description": "Gmail label IDs used to filter results."
},
"page_token": {
"type": "string",
"title": "Page Token",
"default": "",
"description": "Provider pagination token returned by a previous list call."
},
"max_results": {
"type": "integer",
"title": "Max Results",
"default": 50,
"description": "Maximum number of items to request from Google for this page."
}
},
"additionalProperties": false
}

Output Schema

{
"type": "object",
"required": [
"ok",
"data",
"error",
"meta"
],
"properties": {
"ok": {
"type": "boolean",
"description": "Whether the local or Google provider operation completed successfully."
},
"data": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "array",
"items": {}
},
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
}
],
"description": "Bounded local navigation or Google provider result when ok is true."
},
"meta": {
"type": "object",
"description": "Safe timing, pagination, cache, request, and truncation metadata.",
"additionalProperties": true
},
"error": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
],
"description": "Safe structured error when ok is false."
}
},
"description": "Google MCP normalized operation envelope.",
"additionalProperties": false
}

Code Examples

curl -X POST 'https://portal.madpanda3d.com/api/mcp' \
-H 'Authorization: Bearer mad_live_***' \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": "google-gmail-list-threads-example",
"method": "tools/call",
"params": {
"name": "google.gmail_list_threads",
"arguments": {
"query": "query_example",
"label_ids": "",
"page_token": "page_token_example",
"max_results": 1
}
}
}'

Example Responses

{
"ok": true,
"message": "Tool google.gmail_list_threads executed successfully.",
"note": "Response shape varies by MCP tool. Inspect live responses for exact fields."
}