Skip to main content
Glama
0x8687

Meme MCP Server

by 0x8687

reply-to-email

Send a reply to an existing email by providing the email ID and your message content.

Instructions

Reply to an existing email

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
emailIdYesThe ID of the email to reply to
messageYesThe reply message content

Implementation Reference

  • The handler function that implements the core logic for the 'reply-to-email' tool. It uses the VercelAIToolSet (Composio) to execute the 'GMAIL_REPLY_TO_EMAIL' action with the provided emailId and message.
    }, async (args, extra) => { try { const userAddress = "default-user"; const result = await toolset.executeAction({ action: "GMAIL_REPLY_TO_EMAIL", entityId: userAddress, params: args }); if (result.successful) { return { content: [{ type: "text", text: `✅ Reply sent successfully!\n\nYour reply has been sent to the original email thread.` }], }; } else { return { content: [{ type: "text", text: `❌ Failed to send reply: ${result.error || 'Unknown error'}` }], }; } } catch (error) { console.error('Error sending reply:', error); return { content: [{ type: "text", text: `Error sending reply: ${error instanceof Error ? error.message : String(error)}` }], }; } });
  • Zod input schema defining the parameters for the 'reply-to-email' tool: emailId (string) and message (string).
    emailId: z.string().describe("The ID of the email to reply to"), message: z.string().describe("The reply message content"),
  • src/tools.ts:203-240 (registration)
    The server.tool call that registers the 'reply-to-email' tool on the MCP server, including schema and inline handler function.
    server.tool("reply-to-email", "Reply to an existing email", { emailId: z.string().describe("The ID of the email to reply to"), message: z.string().describe("The reply message content"), }, async (args, extra) => { try { const userAddress = "default-user"; const result = await toolset.executeAction({ action: "GMAIL_REPLY_TO_EMAIL", entityId: userAddress, params: args }); if (result.successful) { return { content: [{ type: "text", text: `✅ Reply sent successfully!\n\nYour reply has been sent to the original email thread.` }], }; } else { return { content: [{ type: "text", text: `❌ Failed to send reply: ${result.error || 'Unknown error'}` }], }; } } catch (error) { console.error('Error sending reply:', error); return { content: [{ type: "text", text: `Error sending reply: ${error instanceof Error ? error.message : String(error)}` }], }; } });

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/0x8687/mcp-gmail-v1'

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