Skip to main content

Gmail Create Label

Immutable Catalog Entry

This descriptor comes from the active versioned Portal catalog.

WRITEgoogle.gmail_create_label
  • Contract tier: agent_ready
  • Risk: write
  • Catalog version: google-2026.07.12.2
  • Descriptor hash: d2bfbcfd4cbb6075b07fff42c874c347eea6cac814b532fd71b9ba025ce23011

Use this Gmail write tool to create a mailbox label. It writes a new label and returns the label resource. It creates or updates Google provider state and requires per-request Google OAuth. The result is returned in a normalized bounded envelope.

Request Body

{
"jsonrpc": "2.0",
"id": "google-gmail-create-label-example",
"method": "tools/call",
"params": {
"name": "google.gmail_create_label",
"arguments": {
"name": "name_example",
"label_list_visibility": "labelShow",
"message_list_visibility": "show"
}
}
}

Arguments Schema

{
"type": "object",
"title": "gmail_create_labelArguments",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"title": "Name",
"description": "Provider-visible resource name."
},
"label_list_visibility": {
"enum": [
"labelShow",
"labelShowIfUnread",
"labelHide"
],
"type": "string",
"title": "Label List Visibility",
"default": "labelShow",
"description": "Gmail label list visibility value."
},
"message_list_visibility": {
"enum": [
"show",
"hide"
],
"type": "string",
"title": "Message List Visibility",
"default": "show",
"description": "Gmail message list visibility value."
}
},
"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-create-label-example",
"method": "tools/call",
"params": {
"name": "google.gmail_create_label",
"arguments": {
"name": "name_example",
"label_list_visibility": "labelShow",
"message_list_visibility": "show"
}
}
}'

Example Responses

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