Skip to main content

Gmail Mailbox Overview

Immutable Catalog Entry

This descriptor comes from the active versioned Portal catalog.

READgoogle.gmail_mailbox_overview
  • Contract tier: agent_ready
  • Risk: read
  • Catalog version: google-2026.07.12.2
  • Descriptor hash: 97708187580c286233ece0443cdcfee45468b5c1e42f82cd5f7b4d2a90988bd0

Use this read-only Gmail workflow tool to get compact counts for unread/inbox cleanup planning without fetching message bodies. 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-mailbox-overview-example",
"method": "tools/call",
"params": {
"name": "google.gmail_mailbox_overview",
"arguments": {
"queries": "",
"max_labels": 1,
"include_labels": false
}
}
}

Arguments Schema

{
"type": "object",
"title": "gmail_mailbox_overviewArguments",
"properties": {
"queries": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
],
"title": "Queries",
"default": null,
"description": "Argument for gmail_mailbox_overview."
},
"max_labels": {
"type": "integer",
"title": "Max Labels",
"default": 25,
"description": "Argument for gmail_mailbox_overview."
},
"include_labels": {
"type": "boolean",
"title": "Include Labels",
"default": true,
"description": "Argument for gmail_mailbox_overview."
}
},
"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-mailbox-overview-example",
"method": "tools/call",
"params": {
"name": "google.gmail_mailbox_overview",
"arguments": {
"queries": "",
"max_labels": 1,
"include_labels": false
}
}
}'

Example Responses

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