Skip to main content
Glama

delete_forwarding_address

Remove a configured email forwarding address from your Gmail account to stop redirecting messages to that destination.

Instructions

Deletes the specified forwarding address

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forwardingEmailYesThe forwarding address to be deleted

Implementation Reference

  • The handler function executes the tool logic by calling the Gmail API's users.settings.forwardingAddresses.delete method with the provided forwardingEmail.
    async (params) => { return handleTool(config, async (gmail: gmail_v1.Gmail) => { const { data } = await gmail.users.settings.forwardingAddresses.delete({ userId: 'me', forwardingEmail: params.forwardingEmail }) return formatResponse(data) }) }
  • Zod input schema defining the forwardingEmail parameter.
    { forwardingEmail: z.string().describe("The forwarding address to be deleted") },
  • src/index.ts:1090-1101 (registration)
    Registration of the delete_forwarding_address tool on the MCP server, including description, schema, and inline handler.
    server.tool("delete_forwarding_address", "Deletes the specified forwarding address", { forwardingEmail: z.string().describe("The forwarding address to be deleted") }, async (params) => { return handleTool(config, async (gmail: gmail_v1.Gmail) => { const { data } = await gmail.users.settings.forwardingAddresses.delete({ userId: 'me', forwardingEmail: params.forwardingEmail }) return formatResponse(data) }) } )

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/faithk7/gmail-mcp'

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