Skip to main content
Glama

remove_delegate

Remove a delegate from your Gmail account to revoke their access to manage your emails and settings.

Instructions

Removes the specified delegate

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
delegateEmailYesEmail address of delegate to remove

Implementation Reference

  • Handler function that validates credentials, creates Gmail client if needed, and calls the Gmail API to delete the specified delegate.
    async (params) => { return handleTool(config, async (gmail: gmail_v1.Gmail) => { const { data } = await gmail.users.settings.delegates.delete({ userId: 'me', delegateEmail: params.delegateEmail }) return formatResponse(data) }) }
  • Input schema for the remove_delegate tool, requiring delegateEmail as string.
    { delegateEmail: z.string().describe("Email address of delegate to remove") },
  • src/index.ts:961-972 (registration)
    Registers the remove_delegate tool on the MCP server with description, input schema, and handler function.
    server.tool("remove_delegate", "Removes the specified delegate", { delegateEmail: z.string().describe("Email address of delegate to remove") }, async (params) => { return handleTool(config, async (gmail: gmail_v1.Gmail) => { const { data } = await gmail.users.settings.delegates.delete({ userId: 'me', delegateEmail: params.delegateEmail }) 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