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.
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": "is_connected"
}
}Input 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": {}}, ),