Connect an OpenClaw/MCP agent to a self-hosted ibkr-httpapi (Interactive Brokers HTTP bridge) instance over MCP. Exposes Interactive Brokers trading and market data APIs as typed MCP tools.
Server has 22 tools with mostly complete schemas and descriptions. Naming follows verb_noun convention (get_, list_, place_, cancel_, exercise_). Descriptions are present and substantive (avg ~150 chars), explaining WHAT and WHEN. However, critical gaps exist: (1) No output schemas documented for any tool, LLMs cannot plan downstream calls or extract fields. (2) Parameter descriptions lack format constraints, ranges, and enums, e.g., 'asset_class' accepts 6 values but no enum declared; 'order_type' accepts MKT/LMT/STP but no enum. (3) Irreversible tools (place_order, cancel_order, exercise_option) lack confirmation/dry-run patterns. (4) Error handling guidance absent, no recovery hints or categorization. (5) Generic 'request' tool (tool 22) is an escape hatch that bypasses schema safety. Strengths: clear naming, parameter descriptions present, risk annotations (READ_ONLY vs IRREVERSIBLE) help, good composition (separate tools for different concerns).
Cancel all open orders. This is a LIVE, IRREVERSIBLE action — only call on explicit user request.
Cancel an open order by ID. This is a LIVE, IRREVERSIBLE action — only call on explicit user request.
Catalog of all available REST endpoints (raw API surface). Use this to discover endpoints not covered by dedicated MCP tools.
Exercise or lapse an option contract. This is a LIVE, IRREVERSIBLE action — only call on explicit user request.
Account summary (cash, buying power, net liquidation value, etc.).
Account values (detailed breakdown of cash, positions, margin, etc.).
No output schemas documented for any tool. LLMs cannot infer response structure, field names, or types. Downstream tool chaining is impossible without trial-and-error.
Parameter enums not declared. 'asset_class' accepts 6 values (stock/option/future/cfd/forex/crypto), 'order_type' accepts MKT/LMT/STP, 'right' accepts C/P, 'action' accepts BUY/SELL, all should be JSON Schema enums, not free-form strings. LLMs hallucinate invalid values.
Irreversible tools (place_order, cancel_order, cancel_all_orders, exercise_option) lack confirmation/dry-run patterns. Agents can execute destructive trades without user approval or preview.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 60 | 2026-07-28+ | v2 |
List all completed orders (filled, cancelled, rejected).
Look up contract details for a symbol on a given asset class (``stock`` / ``option`` / ``future`` / ``cfd`` / ``forex`` / ``crypto``). For ``forex``, ``symbol`` is the currency pair (e.g. ``EURUSD``). ``expiry`` is required for ``option`` and ``future``; ``strike`` and ``right`` (``C``/``P``) are also required for ``option``.
List all executions (fills) for the account.
List of future contracts for a symbol (continuous + specific contract months).
Option chain (expirations + strikes) for an underlying symbol.
List all open positions.
Snapshot bid/ask/last quote for a symbol (plus Greeks when ``asset_class`` is ``option``). Same required params as ``get_contract``: ``expiry``/``strike``/``right`` for options, ``expiry`` for futures.
Historical OHLC bars. ``duration`` is an IBKR duration string (e.g. ``"30 D"``, ``"1 Y"``). ``bar_size`` an IBKR bar-size string (e.g. ``"1 hour"``, ``"1 day"``); server default is used if omitted. ``expiry``/``strike``/``right`` required for options, ``expiry`` required for futures.
Historical bars enriched with technical-analysis indicators (computed server-side by the wickworks sidecar). ``indicators`` is a dict of indicator name -> params, e.g. ``{"rsi": {"period": 14}}``. Same required identifying params as ``get_rates`` for the URL/query; the rest of ``duration``/``bar_size``/etc. go in the JSON body.
Historical tick data (bid/ask/last ticks). ``duration`` is an IBKR duration string. ``tick_type`` is an IBKR tick type (e.g. ``"Last"``, ``"Bid_Ask"``); server default is used if omitted.
List all accounts accessible to the logged-in user.
List all open orders.
Health check: gateway connection status, server version, uptime, message counts.
Place a combo (multi-leg) order. This is a LIVE, IRREVERSIBLE action — only call on explicit user request.
Place a new order. This is a LIVE, IRREVERSIBLE action on the brokerage account — only call on explicit user request.
Generic escape hatch: make an arbitrary HTTP request to the REST API. Useful for endpoints not covered by dedicated tools. Supports GET, POST, PUT, DELETE with query params and JSON body.
No error handling guidance. Tools lack recovery hints, error categorization (retryable vs fatal), or actionable error messages. LLMs cannot self-correct on failures.
Generic 'request' tool (tool 22) bypasses schema safety and allows arbitrary HTTP calls. This is an escape hatch that can be misused; prefer explicit, constrained tools.