stop_mail_watch
Stop receiving Gmail push notifications for a user mailbox to pause real-time email alerts and manage notification preferences.
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:1296-1305 (registration)Registration of the 'stop_mail_watch' MCP tool, including inline handler that uses the Gmail API to stop mailbox push notifications via gmail.users.stop. The handler wraps the API call with handleTool for authentication and error handling, and formats the response.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) }) } )