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
| Name | Required | Description | Default |
|---|---|---|---|
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) }) } )
- src/index.ts:1332-1337 (handler)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) }) }
- src/index.ts:1331-1331 (schema)Input schema for 'stop_mail_watch' tool: empty object indicating no input parameters are required.{},