Skip to main content
Glama

boj_comms_gmail

Perform Gmail operations including sending, reading, searching emails, and managing labels through the BoJ-server MCP platform.

Instructions

Gmail operations — send, read, search emails, manage labels

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
operationYesGmail operation
oauth_tokenNoOAuth2 token (for authenticate)
paramsNoOperation parameters (to, subject, body for send; query for search; message_id for read)

Implementation Reference

  • The handler for 'boj_comms_gmail' routes to 'invokeCartridge' with the 'comms-mcp' cartridge.
    case "boj_comms_gmail":
    case "boj_comms_calendar": {
      const result = await invokeCartridge("comms-mcp", { provider: toolName.replace("boj_comms_", ""), ...args });
      sendResult(id, { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] });
      break;
    }
  • The tool definition for 'boj_comms_gmail' including its input schema and description.
    tools.push({
      name: "boj_comms_gmail",
      description: "Gmail operations — send, read, search emails, manage labels",
      inputSchema: {
        type: "object",
        properties: {
          operation: { type: "string", enum: ["authenticate", "send", "read", "search", "labels"], description: "Gmail operation" },
          oauth_token: { type: "string", description: "OAuth2 token (for authenticate)" },
          params: { type: "object", description: "Operation parameters (to, subject, body for send; query for search; message_id for read)" },
        },
        required: ["operation"],
      },
    });

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hyperpolymath/boj-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server