Skip to main content
Glama

delete_send_as

Remove a configured send-as email alias from your Gmail account to manage your sender identity settings.

Instructions

Deletes the specified send-as alias

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sendAsEmailYesThe send-as alias to be deleted

Implementation Reference

  • The handler function that executes the delete_send_as tool. It invokes the Gmail API's users.settings.sendAs.delete method via the shared handleTool wrapper to delete the specified send-as alias.
    async (params) => {
      return handleTool(config, async (gmail: gmail_v1.Gmail) => {
        const { data } = await gmail.users.settings.sendAs.delete({ userId: 'me', sendAsEmail: params.sendAsEmail })
        return formatResponse(data)
      })
    }
  • src/index.ts:1145-1156 (registration)
    Registration of the delete_send_as tool with the MCP server, specifying the tool name, description, input schema, and handler function.
    server.tool("delete_send_as",
      "Deletes the specified send-as alias",
      {
        sendAsEmail: z.string().describe("The send-as alias to be deleted")
      },
      async (params) => {
        return handleTool(config, async (gmail: gmail_v1.Gmail) => {
          const { data } = await gmail.users.settings.sendAs.delete({ userId: 'me', sendAsEmail: params.sendAsEmail })
          return formatResponse(data)
        })
      }
    )
  • Zod input schema for the delete_send_as tool, defining the required 'sendAsEmail' parameter.
    {
      sendAsEmail: z.string().describe("The send-as alias to be deleted")
    },

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