Gmail create label

gmail__create_label

Access

Requires a project integration connection for gmail.

Call type: Can change resources.

Arguments

FieldTypeRequiredDescription and constraints
namestringYesLabel display name
messageListVisibilitystringNoMessage list visibility: show or hide
labelListVisibilitystringNoLabel list visibility
colorobjectNoLabel color object

Example request

Send this JSON-RPC request through an initialized MCP client. Replace sample identifiers and values before calling the tool. See MCP client setup.

json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "gmail__create_label",
    "arguments": {
      "name": "example"
    }
  }
}

Result

No output schema is published for this tool. The input contract does not define its return fields. Inspect the MCP response content and isError; do not assume a fixed object shape. See the gmail integration reference for provider setup and tool context.

Full schemas

json
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Label display name"
    },
    "messageListVisibility": {
      "type": "string",
      "description": "Message list visibility: show or hide"
    },
    "labelListVisibility": {
      "type": "string",
      "description": "Label list visibility"
    },
    "color": {
      "type": "object",
      "description": "Label color object"
    }
  },
  "required": [
    "name"
  ],
  "description": "Arguments for the gmail__create_label tool."
}