Google Workspace · Email

GOOGLE_WORKSPACE_GMAIL_GET_MESSAGE

Get one Gmail message by ID. Defaults to metadata headers. Returns id, threadId, labels, snippet, date, and selected headers.

Access
Read
Category
Email
Version
v1

Input schema

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Gmail message ID."
    },
    "format": {
      "type": "string",
      "enum": [
        "minimal",
        "metadata",
        "full",
        "raw"
      ],
      "description": "Gmail response format (default metadata)."
    },
    "metadataHeaders": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Headers to include when format=metadata."
    }
  },
  "required": [
    "id"
  ],
  "additionalProperties": false
}

How to call it

Expose this tool to any MCP-capable agent (Claude, GPT, or your own) through CybrLink's MCP server. The agent calls google_workspace_gmail_get_message with arguments matching the schema above.

CybrLink validates the input, injects the connected Google Workspace credentials server-side, and runs a single scoped provider API call through the shared proxy — the same guarded path as the generic call_api tool. The raw secret never reaches the model, and the response is trimmed to just the fields the agent needs.

Frequently asked

How do I let an AI agent google workspace gmail get message?
Connect Google Workspace to CybrLink, then expose the `google_workspace_gmail_get_message` tool to any MCP-capable agent (Claude, GPT, or a custom framework). The agent calls it with typed arguments; CybrLink injects the Google Workspace credential server-side and runs one scoped API call. Get one Gmail message by ID. Defaults to metadata headers. Returns id, threadId, labels, snippet, date, and selected headers.
Does the AI model see my Google Workspace credentials when using GOOGLE_WORKSPACE_GMAIL_GET_MESSAGE?
No. CybrLink stores the credential in a token vault and injects it on the server for each call, so the model can read this data from Google Workspace without the OAuth token or API key ever entering its context.