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
| Name | Required | Description | Default |
|---|---|---|---|
| sendAsEmail | Yes | The send-as alias to be deleted |
Implementation Reference
- src/index.ts:1150-1155 (handler)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) }) } )
- src/index.ts:1147-1149 (schema)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") },