delete_send_as
Removes a specified send-as alias from your Gmail account to stop using that email address for sending.
Instructions
Deletes the specified send-as alias
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sendAsEmail | Yes | The send-as alias to be deleted |
Implementation Reference
- src/index.ts:1145-1156 (registration)Registration and handler for the 'delete_send_as' tool. It is registered via server.tool(), takes a 'sendAsEmail' string parameter validated with Zod, and delegates to the Gmail API's users.settings.sendAs.delete endpoint.
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)Input schema for delete_send_as tool: requires a single 'sendAsEmail' string parameter.
{ sendAsEmail: z.string().describe("The send-as alias to be deleted") },