is_connected
Check connection status to Interactive Brokers TWS or Gateway to verify API accessibility for trading and data operations.
Instructions
Check if connected to TWS/Gateway.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/ib_async_mcp/server.py:468-469 (handler)The logic implementation for the "is_connected" tool.
if name == "is_connected": return {"connected": ib is not None and ib.isConnected()} - src/ib_async_mcp/server.py:85-89 (registration)Tool registration for "is_connected" in the list_tools function.
Tool( name="is_connected", description="Check if connected to TWS/Gateway.", inputSchema={"type": "object", "properties": {}}, ),