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
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_watch"
}
}Input 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()