stop_mail_watch
Disable push notifications for a Gmail mailbox to manage email alerts and reduce interruptions.
Instructions
Stop receiving push notifications for the given user mailbox
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "stop_mail_watch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:1315-1324 (registration)Registration of the 'stop_mail_watch' MCP tool using McpServer.tool(). Includes inline handler function that calls Gmail API's users.stop() via the shared handleTool utility to stop mailbox push notifications.
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:1318-1323 (handler)Inline handler function for 'stop_mail_watch' tool. Uses handleTool to authenticate and execute Gmail API call to stop watching the mailbox for changes.
async () => { return handleTool(config, async (gmail: gmail_v1.Gmail) => { const { data } = await gmail.users.stop({ userId: 'me' }) return formatResponse(data) }) } - src/index.ts:1317-1317 (schema)Input schema for 'stop_mail_watch' tool: no parameters required.
{},