Skip to main content
Glama

stop_mail_watch

Disable push notifications for a Gmail mailbox to stop receiving real-time email alerts.

Instructions

Stop receiving push notifications for the given user mailbox

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • src/index.ts:1329-1338 (registration)
    Registers the 'stop_mail_watch' tool with the MCP server. Provides a description, empty input schema (no parameters required), and an inline handler function that stops push notifications for the user's mailbox.
    server.tool("stop_mail_watch", "Stop receiving push notifications for the given user mailbox", {}, async () => { return handleTool(config, async (gmail: gmail_v1.Gmail) => { const { data } = await gmail.users.stop({ userId: 'me' }) return formatResponse(data) }) } )
  • The handler function for the 'stop_mail_watch' tool. It invokes the shared 'handleTool' utility (which manages OAuth2 authentication and Gmail client creation) to call the Gmail API's 'users.stop' method, stopping the watch on the user's mailbox, and formats the response.
    async () => { return handleTool(config, async (gmail: gmail_v1.Gmail) => { const { data } = await gmail.users.stop({ userId: 'me' }) return formatResponse(data) }) }
  • Input schema for 'stop_mail_watch' tool: empty object indicating no input parameters are required.
    {},

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

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