check-gmail-connection
Verify Gmail connectivity status using the Meme MCP Server. This tool ensures proper integration with Gmail for efficient email-related operations.
Instructions
Check Gmail connection status
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools.ts:38-76 (handler)Inline handler for the 'check-gmail-connection' tool. Registers the tool with an empty schema and implements logic to check Gmail connection status by executing the 'GMAIL_GET_PROFILE' action via VercelAIToolSet, returning success or failure messages based on the result.server.tool("check-gmail-connection", "Check Gmail connection status", {}, async (args, extra) => { try { console.log('args ', args); console.log('extra ', extra); const userAddress = "default-user"; const result = await toolset.executeAction({ action: "GMAIL_GET_PROFILE", entityId: userAddress, params: {} }); if (result.successful) { const profile = result.data?.response_data as any; return { content: [{ type: "text", text: `✅ Your Gmail account is connected!\n\nUser Profile:\n• Email: ${profile.emailAddress}\n• Messages: ${profile.messagesTotal} total\n• Threads: ${profile.threadsTotal} total` }], }; } else { return { content: [{ type: "text", text: "❌ Your Gmail account is not connected! Please use the connect-gmail tool first." }], }; } } catch (error) { console.error('Error checking Gmail connection:', error); return { content: [{ type: "text", text: `Error checking Gmail connection: ${error instanceof Error ? error.message : String(error)}` }], }; } });