Skip to main content
Glama
0x8687

Meme MCP Server

by 0x8687

forward-email

Send an email to specified recipients by forwarding it with an optional additional message. Use this tool to share emails efficiently within the Meme MCP Server environment.

Instructions

Forward an email to other recipients

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
emailIdYesThe ID of the email to forward
messageNoAdditional message to include with the forward
toYesThe email address to forward to

Implementation Reference

  • The handler function executes the forward-email tool by calling the Composio toolset's GMAIL_FORWARD_EMAIL action with the provided arguments.
    }, async (args, extra) => { try { const userAddress = "default-user"; const result = await toolset.executeAction({ action: "GMAIL_FORWARD_EMAIL", entityId: userAddress, params: args }); if (result.successful) { return { content: [{ type: "text", text: `✅ Email forwarded successfully!\n\nForwarded to: ${args.to}` }], }; } else { return { content: [{ type: "text", text: `❌ Failed to forward email: ${result.error || 'Unknown error'}` }], }; } } catch (error) { console.error('Error forwarding email:', error); return { content: [{ type: "text", text: `Error forwarding email: ${error instanceof Error ? error.message : String(error)}` }], }; } });
  • Zod input schema defining parameters: emailId (required string), to (required string), message (optional string).
    emailId: z.string().describe("The ID of the email to forward"), to: z.string().describe("The email address to forward to"), message: z.string().optional().describe("Additional message to include with the forward"),
  • src/tools.ts:242-280 (registration)
    The server.tool call that registers the 'forward-email' tool, including its description, input schema, and inline handler function.
    server.tool("forward-email", "Forward an email to other recipients", { emailId: z.string().describe("The ID of the email to forward"), to: z.string().describe("The email address to forward to"), message: z.string().optional().describe("Additional message to include with the forward"), }, async (args, extra) => { try { const userAddress = "default-user"; const result = await toolset.executeAction({ action: "GMAIL_FORWARD_EMAIL", entityId: userAddress, params: args }); if (result.successful) { return { content: [{ type: "text", text: `✅ Email forwarded successfully!\n\nForwarded to: ${args.to}` }], }; } else { return { content: [{ type: "text", text: `❌ Failed to forward email: ${result.error || 'Unknown error'}` }], }; } } catch (error) { console.error('Error forwarding email:', error); return { content: [{ type: "text", text: `Error forwarding email: ${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