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
| Name | Required | Description | Default |
|---|---|---|---|
| sendAsEmail | Yes | The send-as alias to be deleted |
Implementation Reference
- src/index.ts:1136-1141 (handler)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) }) }
- src/index.ts:1133-1135 (schema)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) }) } )