Skip to main content
Glama

delete_send_as

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

Instructions

Deletes the specified send-as alias

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sendAsEmailYesThe send-as alias to be deleted

Implementation Reference

  • Handler function for the 'delete_send_as' tool. It invokes handleTool which authenticates and calls the Gmail API 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) }) }
  • Input schema for the 'delete_send_as' tool, requiring the sendAsEmail parameter.
    { sendAsEmail: z.string().describe("The send-as alias to be deleted") },
  • src/index.ts:1131-1142 (registration)
    Registration of the 'delete_send_as' tool on the MCP server, including description, schema, and handler.
    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) }) } )

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

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