stop_watch
Terminates the real-time IDLE watch that monitors an IMAP mailbox for new email notifications, ending continuous connection monitoring.
Instructions
Stop the permanent IDLE watch
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/imap_mcp/imap_client.py:861-866 (handler)The actual handler implementation for the stop_watch tool in the IMAP client.
def stop_watch(self) -> bool: """Stop the permanent IDLE watch.""" if self.watcher: self.watcher.stop() self.watching = False return True - src/imap_mcp/server.py:392-395 (registration)Registration of the stop_watch tool in the MCP server.
make_tool( "stop_watch", "Stop the permanent IDLE watch", {}, - src/imap_mcp/server.py:658-659 (handler)Tool handler dispatch logic in the MCP server.
elif name == "stop_watch": return imap_client.stop_watch()