{"apiVersion":"v1","directorySlug":"drupadp-mcp-7822d2647a","title":"502 BAD GATEWAY","description":null,"pageUrl":"https://www.mcpbundles.com/skills/drupadp-mcp-7822d2647a","connectPath":"importable","connectAction":"import_server","catalogListing":false,"bundleSlug":null,"listingKind":"remote_mcp","kind":"provider","transportUrl":"https://drupadp.tech/mcp","hostedMcpUrl":null,"toolCount":72,"toolInventoryStatus":"observed","refreshedAt":"2026-11-27T13:31:41.321780+00:00","registryName":"tech.drupadp/drupadp-mcp-7822d2647a","registryVersion":"2026.11.27","registryEligible":true,"tools":[{"name":"start_monitor","description":"Start the monitor polling scheduler.","inputSchema":{"type":"object","properties":{}},"logicalName":"start_monitor","displayName":"start_monitor","title":"start_monitor","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"stop_monitor","description":"Stop the monitor polling scheduler. In-progress cycles complete first.","inputSchema":{"type":"object","properties":{}},"logicalName":"stop_monitor","displayName":"stop_monitor","title":"stop_monitor","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"get_status","description":"Return current monitor state: running flag, cooldown info, registered\nchecks, last cycle result, and IBKR escalation state.","inputSchema":{"type":"object","properties":{}},"logicalName":"get_status","displayName":"get_status","title":"get_status","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"check_health","description":"Liveness probe — returns ok=True if the monitor process is up.","inputSchema":{"type":"object","properties":{}},"logicalName":"check_health","displayName":"check_health","title":"check_health","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"run_trade_poller_once","description":"Run one trade fetch + option fan-out cycle, ignoring market hours.","inputSchema":{"type":"object","properties":{}},"logicalName":"run_trade_poller_once","displayName":"run_trade_poller_once","title":"run_trade_poller_once","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"restart_service","description":"Trigger shutdown → wait → bootrun in a background thread.\nReturns immediately; monitor logs or Elasticsearch for progress.","inputSchema":{"type":"object","properties":{"reason":{"type":"string","default":"manual restart via MCP"},"wait_seconds":{"type":"integer","default":10}}},"logicalName":"restart_service","displayName":"restart_service","title":"restart_service","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"get_stocks","description":"Query stock alerts with optional filters + pagination (GET /trade/stocks).\n`date` is ISO yyyy-MM-dd. Pass size <= 0 to return an unpaginated list.","inputSchema":{"type":"object","properties":{"date":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"size":{"type":"integer","default":10},"offset":{"type":"integer","default":0},"ticker":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"trader":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"strategy":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null}}},"logicalName":"get_stocks","displayName":"get_stocks","title":"get_stocks","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"place_order","description":"Place an order directly. `trade` is the Trade JSON body (POST /trade/placeOrder).","inputSchema":{"type":"object","required":["trade"],"properties":{"trade":{"type":"object","additionalProperties":true}}},"logicalName":"place_order","displayName":"place_order","title":"place_order","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"addTrade","description":"addTrade. `trade` is the Trade JSON body (POST /trade/add).","inputSchema":{"type":"object","required":["trade"],"properties":{"trade":{"type":"object","additionalProperties":true}}},"logicalName":"addTrade","displayName":"addTrade","title":"addTrade","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"get_option","description":"Live bid/ask/mid + contract detail for one option contract (GET /trade/option).\n`expiry_date` is ISO yyyy-MM-dd.","inputSchema":{"type":"object","required":["symbol","expiry_date","strike","right"],"properties":{"right":{"type":"string"},"strike":{"type":"number"},"symbol":{"type":"string"},"expiry_date":{"type":"string"}}},"logicalName":"get_option","displayName":"get_option","title":"get_option","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"get_all_options","description":"Return all option contracts (GET /trade/).","inputSchema":{"type":"object","properties":{}},"logicalName":"get_all_options","displayName":"get_all_options","title":"get_all_options","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"get_open_positions","description":"Return current open positions from the IBKR account (GET /trade/positions).","inputSchema":{"type":"object","properties":{}},"logicalName":"get_open_positions","displayName":"get_open_positions","title":"get_open_positions","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"sell_position","description":"Submit a market order to close an existing position (POST /trade/sell).\nSpring verifies the position exists in IBKR first, then sends the opposite-side MKT order.","inputSchema":{"type":"object","required":["ticker","sec_type","action","quantity"],"properties":{"type":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"action":{"type":"string"},"expiry":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"ticker":{"type":"string"},"quantity":{"type":"integer"},"sec_type":{"type":"string"},"strike_price":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null}}},"logicalName":"sell_position","displayName":"sell_position","title":"sell_position","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"get_historical","description":"Historical stock bars (GET /trade/historical). `duration` e.g. '1 d' / '2 D';\n`bar_size` e.g. '1 min' / '1 day'.","inputSchema":{"type":"object","required":["ticker"],"properties":{"ticker":{"type":"string"},"bar_size":{"type":"string","default":"1 day"},"duration":{"type":"string","default":"1 d"}}},"logicalName":"get_historical","displayName":"get_historical","title":"get_historical","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"get_option_historical","description":"Historical option bars, served from local cache when available (GET /trade/optionHistorical).\n`expiry` is ISO yyyy-MM-dd.","inputSchema":{"type":"object","required":["ticker","expiry","strike","option_type"],"properties":{"expiry":{"type":"string"},"strike":{"type":"number"},"ticker":{"type":"string"},"bar_size":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"duration":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"option_type":{"type":"string"}}},"logicalName":"get_option_historical","displayName":"get_option_historical","title":"get_option_historical","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"get_unique_lux_ticker","description":"Distinct LuxAlgo tickers prefixed with their primary exchange (GET /trade/uniqueLuxTicker).","inputSchema":{"type":"object","properties":{}},"logicalName":"get_unique_lux_ticker","displayName":"get_unique_lux_ticker","title":"get_unique_lux_ticker","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"get_unique_ticker","description":"Distinct tickers seen across alerts (GET /trade/uniqueTicker).","inputSchema":{"type":"object","properties":{}},"logicalName":"get_unique_ticker","displayName":"get_unique_ticker","title":"get_unique_ticker","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"get_summary","description":"Trade summary for a date (GET /trade/summary). `date` is ISO yyyy-MM-dd\n(defaults to today). `type`='trades' returns raw fills; any other value returns\nthe aggregated per-contract summary.","inputSchema":{"type":"object","properties":{"date":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"type":{"type":"string","default":"trades"}}},"logicalName":"get_summary","displayName":"get_summary","title":"get_summary","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"get_performance_type","description":"List available PerformanceType report keys (GET /trade/performanceType).","inputSchema":{"type":"object","properties":{}},"logicalName":"get_performance_type","displayName":"get_performance_type","title":"get_performance_type","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"get_performance","description":"Paginated performance report of a given type (GET /trade/performance).\n`date` is ISO yyyy-MM-dd.","inputSchema":{"type":"object","required":["type","date","offset","size"],"properties":{"date":{"type":"string"},"size":{"type":"integer"},"type":{"type":"string"},"offset":{"type":"integer"}}},"logicalName":"get_performance","displayName":"get_performance","title":"get_performance","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"reconnect","description":"Reconnect any disconnected TWS client wrappers (POST /trade/reconnect).","inputSchema":{"type":"object","properties":{}},"logicalName":"reconnect","displayName":"reconnect","title":"reconnect","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"reboot","description":"Stop the scheduler, restart TWS, then reconnect all wrappers (POST /trade/reboot).","inputSchema":{"type":"object","properties":{}},"logicalName":"reboot","displayName":"reboot","title":"reboot","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"get_client_status","description":"Connection status of each TWS client wrapper (GET /trade/clientStatus).","inputSchema":{"type":"object","properties":{}},"logicalName":"get_client_status","displayName":"get_client_status","title":"get_client_status","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"connection_status","description":"Check whether the MCP server is currently connected to TWS/IB Gateway,\nand report host/port, requested vs active client id, when the session\nconnected, and the most recent real IBKR error.","inputSchema":{"type":"object","properties":{}},"logicalName":"connection_status","displayName":"connection_status","title":"connection_status","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"connect","description":"Explicitly (re)connect to TWS/IB Gateway using the configured\nIBKR_HOST/IBKR_PORT/IBKR_CLIENT_ID. Most tools auto-connect, so this is\nmainly useful for diagnostics or forcing a reconnect. client_id overrides\nthe requested client id (disconnects first when already connected).","inputSchema":{"type":"object","properties":{"client_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null}}},"logicalName":"connect","displayName":"connect","title":"connect","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"disconnect","description":"Disconnect from TWS/IB Gateway. Clears the active-client-id and\nconnected-at state; last_error stays (it is the most recent error,\nregardless of connection state).","inputSchema":{"type":"object","properties":{}},"logicalName":"disconnect","displayName":"disconnect","title":"disconnect","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"get_accounts","description":"List the managed brokerage accounts visible to this TWS/Gateway session.","inputSchema":{"type":"object","properties":{}},"logicalName":"get_accounts","displayName":"get_accounts","title":"get_accounts","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"get_account_summary","description":"Get account summary values (NetLiquidation, BuyingPower, CashBalance,\nGrossPositionValue, ExcessLiquidity, MaintMarginReq, UnrealizedPnL,\nRealizedPnL, etc.) for the given account, or the default account if\nomitted.","inputSchema":{"type":"object","properties":{"account":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null}}},"logicalName":"get_account_summary","displayName":"get_account_summary","title":"get_account_summary","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"get_pnl","description":"Get realtime daily/unrealized/realized PnL for the account as a whole.","inputSchema":{"type":"object","properties":{"account":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null}}},"logicalName":"get_pnl","displayName":"get_pnl","title":"get_pnl","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"get_positions","description":"List all open positions (stocks, options, futures, etc.) for the given\naccount, or all accounts if omitted. Returns symbol, sec type, position\nsize, average cost, and contract details.","inputSchema":{"type":"object","properties":{"account":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null}}},"logicalName":"get_positions","displayName":"get_positions","title":"get_positions","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"get_portfolio","description":"List portfolio items with live market value and unrealized/realized PnL\nper position (richer than get_positions, but only for the current\nsession's subscribed account).","inputSchema":{"type":"object","properties":{"account":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null}}},"logicalName":"get_portfolio","displayName":"get_portfolio","title":"get_portfolio","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"get_capital","description":"Get the account's headline capital numbers as one flat object:\nnet liquidation, total/settled cash, buying power, available funds,\nexcess liquidity, gross position value, initial and maintenance margin,\ncushion, leverage and day trades remaining.","inputSchema":{"type":"object","properties":{"account":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null}}},"logicalName":"get_capital","displayName":"get_capital","title":"get_capital","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"get_account_values","description":"List every account tag IBKR reports, not just the summary subset.","inputSchema":{"type":"object","properties":{"account":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null}}},"logicalName":"get_account_values","displayName":"get_account_values","title":"get_account_values","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"get_position_pnl","description":"Get per-position profit and loss, including each contract's P&L for\ntoday specifically.","inputSchema":{"type":"object","properties":{"account":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"max_contracts":{"type":"integer","default":25}}},"logicalName":"get_position_pnl","displayName":"get_position_pnl","title":"get_position_pnl","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"whatif_order","description":"Price an order's margin and commission impact WITHOUT sending it.","inputSchema":{"type":"object","required":["symbol"],"properties":{"right":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"action":{"type":"string","default":"BUY"},"expiry":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"strike":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null},"symbol":{"type":"string"},"account":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"currency":{"type":"string","default":"USD"},"exchange":{"type":"string","default":"SMART"},"quantity":{"type":"number","default":1},"sec_type":{"type":"string","default":"STK"},"order_type":{"type":"string","default":"MKT"},"limit_price":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null}}},"logicalName":"whatif_order","displayName":"whatif_order","title":"whatif_order","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"get_account_snapshot","description":"Get the whole account picture in one call: capital and margin, account\nP&L for today, open positions with per-contract daily P&L, and this\nsession's fills.","inputSchema":{"type":"object","properties":{"account":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null}}},"logicalName":"get_account_snapshot","displayName":"get_account_snapshot","title":"get_account_snapshot","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"resolve_contract","description":"Resolve a ticker symbol to full IBKR contract details (conId, primary\nexchange, trading hours, etc.). Use this to validate a symbol before\ntrading or requesting market data. sec_type: STK, OPT, FUT, CASH (fx),\nCRYPTO (PAXOS).","inputSchema":{"type":"object","required":["symbol"],"properties":{"symbol":{"type":"string"},"currency":{"type":"string","default":"USD"},"exchange":{"type":"string","default":"SMART"},"sec_type":{"type":"string","default":"STK"}}},"logicalName":"resolve_contract","displayName":"resolve_contract","title":"resolve_contract","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"get_market_data_snapshot","description":"Get a real-time market data snapshot (bid/ask/last/volume/close) for a\nstock, FX pair, futures contract, option, or crypto coin.","inputSchema":{"type":"object","properties":{"right":{"type":"string","default":""},"con_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null},"expiry":{"type":"string","default":""},"strike":{"type":"number","default":0.0},"symbol":{"type":"string","default":""},"currency":{"type":"string","default":"USD"},"exchange":{"type":"string","default":"SMART"},"sec_type":{"type":"string","default":"STK"}}},"logicalName":"get_market_data_snapshot","displayName":"get_market_data_snapshot","title":"get_market_data_snapshot","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"get_historical_bars","description":"Get historical OHLCV bars. duration examples: '1 D', '5 D', '1 M', '1 Y'.\nbar_size examples: '1 min', '5 mins', '15 mins', '1 hour', '1 day'.\nwhat_to_show: TRADES, MIDPOINT, BID, ASK.","inputSchema":{"type":"object","required":["symbol"],"properties":{"symbol":{"type":"string"},"use_rth":{"type":"boolean","default":true},"bar_size":{"type":"string","default":"5 mins"},"currency":{"type":"string","default":"USD"},"duration":{"type":"string","default":"1 D"},"exchange":{"type":"string","default":"SMART"},"sec_type":{"type":"string","default":"STK"},"what_to_show":{"type":"string","default":"TRADES"}}},"logicalName":"get_historical_bars","displayName":"get_historical_bars","title":"get_historical_bars","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"get_option_chain","description":"Get available option expirations and strikes for a symbol's option\nchain (does not include prices — use get_option_quote for that).","inputSchema":{"type":"object","required":["symbol"],"properties":{"symbol":{"type":"string"},"exchange":{"type":"string","default":"SMART"}}},"logicalName":"get_option_chain","displayName":"get_option_chain","title":"get_option_chain","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"get_option_expirations","description":"List available option expiry dates (YYYYMMDD) for a symbol, across\nall trading classes/exchanges reported by IBKR. Lighter-weight than\nget_option_chain when you only need expiries, not strikes.","inputSchema":{"type":"object","required":["symbol"],"properties":{"symbol":{"type":"string"},"exchange":{"type":"string","default":"SMART"}}},"logicalName":"get_option_expirations","displayName":"get_option_expirations","title":"get_option_expirations","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"get_option_expirations_with_strikes","description":"List available option expiry dates (YYYYMMDD) for a symbol, across\nall trading classes/exchanges reported by IBKR. Lighter-weight than\nget_option_chain when you only need expiries, not strikes.","inputSchema":{"type":"object","required":["symbol"],"properties":{"symbol":{"type":"string"},"exchange":{"type":"string","default":"SMART"}}},"logicalName":"get_option_expirations_with_strikes","displayName":"get_option_expirations_with_strikes","title":"get_option_expirations_with_strikes","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"get_option_quote","description":"Get a real-time quote + greeks for a single option contract.\nexpiry format: YYYYMMDD. right: 'C' or 'P'.","inputSchema":{"type":"object","required":["symbol","expiry","strike","right"],"properties":{"right":{"type":"string"},"expiry":{"type":"string"},"strike":{"type":"number"},"symbol":{"type":"string"},"exchange":{"type":"string","default":"SMART"}}},"logicalName":"get_option_quote","displayName":"get_option_quote","title":"get_option_quote","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"get_future_expirations","description":"List available futures contract expirations for a symbol on an\nexchange (e.g. symbol='ES', exchange='CME'), including each contract's\nconId. Use the returned con_id with get_future_historical_bars /\nplace_future_order for reliable contract resolution instead of\nsymbol+expiry.","inputSchema":{"type":"object","required":["symbol"],"properties":{"symbol":{"type":"string"},"currency":{"type":"string","default":"USD"},"exchange":{"type":"string","default":"CME"}}},"logicalName":"get_future_expirations","displayName":"get_future_expirations","title":"get_future_expirations","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"get_future_historical_bars","description":"Get historical OHLCV bars for a futures contract. Prefer passing\ncon_id (from get_future_expirations) to avoid ambiguous-contract errors;\notherwise provide symbol + expiry (YYYYMM or YYYYMMDD) + exchange.\nduration examples: '1 D', '5 D', '1 M'. bar_size examples: '1 min',\n'5 mins', '1 hour', '1 day'.","inputSchema":{"type":"object","properties":{"con_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null},"expiry":{"type":"string","default":""},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"use_rth":{"type":"boolean","default":false},"bar_size":{"type":"string","default":"5 mins"},"currency":{"type":"string","default":"USD"},"duration":{"type":"string","default":"1 D"},"exchange":{"type":"string","default":"CME"},"what_to_show":{"type":"string","default":"TRADES"}}},"logicalName":"get_future_historical_bars","displayName":"get_future_historical_bars","title":"get_future_historical_bars","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"get_historical_bars_range","description":"Get historical OHLCV bars for an explicit window, e.g. from\n'20260918 09:30:00 US/Eastern' to '20260918 15:30:00 US/Eastern'.","inputSchema":{"type":"object","required":["symbol","startDateTime","endDateTime"],"properties":{"symbol":{"type":"string"},"use_rth":{"type":"boolean","default":true},"bar_size":{"type":"string","default":"5 mins"},"currency":{"type":"string","default":"USD"},"exchange":{"type":"string","default":"SMART"},"sec_type":{"type":"string","default":"STK"},"endDateTime":{"type":"string"},"what_to_show":{"type":"string","default":"TRADES"},"startDateTime":{"type":"string"}}},"logicalName":"get_historical_bars_range","displayName":"get_historical_bars_range","title":"get_historical_bars_range","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"get_future_historical_bars_range","description":"Get historical OHLCV bars for a futures contract over an explicit\nwindow, e.g. from '20260918 09:30:00 US/Eastern' to '20260918 15:30:00\nUS/Eastern'.","inputSchema":{"type":"object","properties":{"con_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null},"expiry":{"type":"string","default":""},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"use_rth":{"type":"boolean","default":false},"bar_size":{"type":"string","default":"5 mins"},"currency":{"type":"string","default":"USD"},"exchange":{"type":"string","default":"CME"},"endDateTime":{"type":"string","default":""},"what_to_show":{"type":"string","default":"TRADES"},"startDateTime":{"type":"string","default":""}}},"logicalName":"get_future_historical_bars_range","displayName":"get_future_historical_bars_range","title":"get_future_historical_bars_range","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"get_crypto_historical_bars","description":"Get historical OHLCV bars for a crypto pair on PAXOS. symbol is the\ncoin ticker (e.g. BTC), currency the settlement fiat. what_to_show\ndefaults to AGGTRADES (crypto's native trade field; TRADES may be\nrejected with IBKR error 10299). duration examples: '1 D', '5 D'.\nbar_size examples: '1 min', '5 mins', '1 hour', '1 day'.","inputSchema":{"type":"object","required":["symbol"],"properties":{"symbol":{"type":"string"},"use_rth":{"type":"boolean","default":false},"bar_size":{"type":"string","default":"5 mins"},"currency":{"type":"string","default":"USD"},"duration":{"type":"string","default":"1 D"},"exchange":{"type":"string","default":"PAXOS"},"what_to_show":{"type":"string","default":"AGGTRADES"}}},"logicalName":"get_crypto_historical_bars","displayName":"get_crypto_historical_bars","title":"get_crypto_historical_bars","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"get_crypto_historical_bars_range","description":"Get historical OHLCV bars for a crypto pair (PAXOS) over an explicit\nwindow, e.g. from '20260918 09:30:00 US/Eastern' to '20260918 15:30:00\nUS/Eastern'. Prefer con_id (from resolve_contract with sec_type CRYPTO);\notherwise pass symbol. Unlike get_crypto_historical_bars (which works\nbackwards from 'now' via duration), the request duration is derived from\nstartDateTime/endDateTime, both required and in IBKR format 'YYYYMMDD\nHH:MM:SS [TZ]' (timezone optional). what_to_show defaults to AGGTRADES\n(cr","inputSchema":{"type":"object","properties":{"con_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"use_rth":{"type":"boolean","default":false},"bar_size":{"type":"string","default":"5 mins"},"currency":{"type":"string","default":"USD"},"exchange":{"type":"string","default":"PAXOS"},"endDateTime":{"type":"string","default":""},"what_to_show":{"type":"string","default":"AGGTRADES"},"startDateTime":{"type":"string","default":""}}},"logicalName":"get_crypto_historical_bars_range","displayName":"get_crypto_historical_bars_range","title":"get_crypto_historical_bars_range","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"predict_crypto_direction_15m","description":"Predict the next-15-minute up/down direction for a crypto pair from a\nsimple momentum baseline: the live snapshot price vs the close 15 minutes\nago (the fourth-oldest of the last 5-min AGGTRADES bars).","inputSchema":{"type":"object","required":["symbol"],"properties":{"symbol":{"type":"string"},"currency":{"type":"string","default":"USD"},"exchange":{"type":"string","default":"PAXOS"}}},"logicalName":"predict_crypto_direction_15m","displayName":"predict_crypto_direction_15m","title":"predict_crypto_direction_15m","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"place_stock_order","description":"Place a live stock order. action: BUY or SELL. order_type: MKT, LMT,\nSTP, 'STP LMT'. tif: DAY, GTC, IOC. THIS PLACES A REAL ORDER — confirm\nwith the user before calling unless they've explicitly asked you to\ntrade autonomously.","inputSchema":{"type":"object","required":["symbol","action","quantity"],"properties":{"tif":{"type":"string","default":"DAY"},"action":{"type":"string"},"symbol":{"type":"string"},"account":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"currency":{"type":"string","default":"USD"},"exchange":{"type":"string","default":"SMART"},"quantity":{"type":"number"},"order_type":{"type":"string","default":"MKT"},"stop_price":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null},"limit_price":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null}}},"logicalName":"place_stock_order","displayName":"place_stock_order","title":"place_stock_order","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"place_option_order","description":"Place a live single-leg option order. expiry: YYYYMMDD. right: 'C' or\n'P'. action: BUY or SELL. THIS PLACES A REAL ORDER — confirm with the\nuser before calling unless they've explicitly asked you to trade\nautonomously.","inputSchema":{"type":"object","required":["symbol","expiry","strike","right","action","quantity"],"properties":{"tif":{"type":"string","default":"DAY"},"right":{"type":"string"},"action":{"type":"string"},"expiry":{"type":"string"},"strike":{"type":"number"},"symbol":{"type":"string"},"account":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"exchange":{"type":"string","default":"SMART"},"quantity":{"type":"number"},"order_type":{"type":"string","default":"MKT"},"stop_price":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null},"limit_price":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null}}},"logicalName":"place_option_order","displayName":"place_option_order","title":"place_option_order","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"place_future_order","description":"Place a live futures order. Prefer passing con_id (from\nget_future_expirations) for reliable contract resolution — otherwise\nprovide symbol + expiry + exchange. action: BUY or SELL. order_type:\nMKT, LMT, STP, 'STP LMT'. order_ref: optional client order\nreference (stored as the IB order's orderRef; surfaces as order_ref\nin fills/trades responses). THIS PLACES A REAL ORDER — confirm with the\nuser before calling unless they've explicitly asked you to trade\nautonomously.","inputSchema":{"type":"object","required":["action","quantity"],"properties":{"tif":{"type":"string","default":"DAY"},"action":{"type":"string"},"con_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null},"expiry":{"type":"string","default":""},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"account":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"currency":{"type":"string","default":"USD"},"exchange":{"type":"string","default":"CME"},"quantity":{"type":"number"},"order_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"order_type":{"type":"string","default":"MKT"},"stop_price":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null},"limit_price":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null}}},"logicalName":"place_future_order","displayName":"place_future_order","title":"place_future_order","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"place_crypto_order","description":"Place a live crypto (PAXOS) order. action: BUY or SELL. order_type:\nMKT or LMT only (crypto supports no stop orders — rejected client-side).\nquantity may be fractional (e.g. 0.01) and is forwarded exactly as\nsubmitted. tif defaults DAY — IBKR rejects GTC on crypto (Error 201:\n'The crypto buy order must be Minutes or IOC'). order_ref: optional\nclient order reference. THIS PLACES A REAL ORDER — confirm with the\nuser before calling unless they've explicitly asked you to trade\nautonomously.","inputSchema":{"type":"object","required":["action","quantity"],"properties":{"tif":{"type":"string","default":"DAY"},"action":{"type":"string"},"con_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"account":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"currency":{"type":"string","default":"USD"},"exchange":{"type":"string","default":"PAXOS"},"quantity":{"type":"number"},"order_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"order_type":{"type":"string","default":"MKT"},"limit_price":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null}}},"logicalName":"place_crypto_order","displayName":"place_crypto_order","title":"place_crypto_order","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"cancel_order","description":"Cancel an open order by its IBKR orderId (as returned by\nplace_stock_order / place_option_order / get_open_orders).","inputSchema":{"type":"object","required":["order_id"],"properties":{"order_id":{"type":"integer"}}},"logicalName":"cancel_order","displayName":"cancel_order","title":"cancel_order","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"modify_order","description":"Modify an existing open order's quantity, limit price, and/or stop\nprice. Only fields you provide are changed.","inputSchema":{"type":"object","required":["order_id"],"properties":{"order_id":{"type":"integer"},"quantity":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null},"stop_price":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null},"limit_price":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null}}},"logicalName":"modify_order","displayName":"modify_order","title":"modify_order","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"get_open_orders","description":"List all currently open (working) orders across the session.","inputSchema":{"type":"object","properties":{}},"logicalName":"get_open_orders","displayName":"get_open_orders","title":"get_open_orders","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"get_executions","description":"List recent trade executions/fills from this session's history.","inputSchema":{"type":"object","properties":{"days":{"type":"integer","default":1}}},"logicalName":"get_executions","displayName":"get_executions","title":"get_executions","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"exercise_option","description":"Exercise or abandon a long option position you hold. exercise_action:\n'exercise' or 'lapse'. expiry: YYYYMMDD. right: 'C' or 'P'.","inputSchema":{"type":"object","required":["symbol","expiry","strike","right","quantity"],"properties":{"right":{"type":"string"},"expiry":{"type":"string"},"strike":{"type":"number"},"symbol":{"type":"string"},"account":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"exchange":{"type":"string","default":"SMART"},"quantity":{"type":"integer"},"exercise_action":{"type":"string","default":"exercise"}}},"logicalName":"exercise_option","displayName":"exercise_option","title":"exercise_option","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"get_history_source","description":"Report where trade history is coming from: how many trades the cached\nFlex report holds, the date window it actually covers, how old it is, and\nany error from the last refresh.","inputSchema":{"type":"object","properties":{}},"logicalName":"get_history_source","displayName":"get_history_source","title":"get_history_source","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"refresh_trade_history","description":"Force a fresh Flex report from IBKR, replacing the in-memory cache.","inputSchema":{"type":"object","properties":{}},"logicalName":"refresh_trade_history","displayName":"refresh_trade_history","title":"refresh_trade_history","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"get_trade_history","description":"List individual fills over any date range, with commission and realised\nP&L per fill.","inputSchema":{"type":"object","properties":{"end":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"side":{"type":"string","default":"all"},"limit":{"type":"integer","default":200},"start":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"offset":{"type":"integer","default":0},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"account":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"instrument":{"type":"string","default":"all"}}},"logicalName":"get_trade_history","displayName":"get_trade_history","title":"get_trade_history","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"get_trade_summary","description":"Summarise trading performance over a date range: realised P&L gross and\nnet of commissions, fill and closed-trade counts, win rate, best and worst\nday, plus breakdowns by instrument type and by ticker.","inputSchema":{"type":"object","properties":{"end":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"start":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"account":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"instrument":{"type":"string","default":"all"}}},"logicalName":"get_trade_summary","displayName":"get_trade_summary","title":"get_trade_summary","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"get_trade_by_symbol","description":"Per-symbol trading performance over a date range: one row per ticker\nwith fills, realised P&L, and commission paid.","inputSchema":{"type":"object","properties":{"end":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null},"start":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"account":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"by_symbol":{"type":"boolean","default":true},"instrument":{"type":"string","default":"all"}}},"logicalName":"get_trade_by_symbol","displayName":"get_trade_by_symbol","title":"get_trade_by_symbol","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"get_daily_pnl_history","description":"Get one row per trading day — realised P&L, commissions, net, fill count\nand the running cumulative total.","inputSchema":{"type":"object","properties":{"end":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"start":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"account":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"instrument":{"type":"string","default":"all"}}},"logicalName":"get_daily_pnl_history","displayName":"get_daily_pnl_history","title":"get_daily_pnl_history","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"get_ytd_summary","description":"Year-to-date trading performance, from 1 January to today.","inputSchema":{"type":"object","properties":{"symbol":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"account":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"instrument":{"type":"string","default":"all"}}},"logicalName":"get_ytd_summary","displayName":"get_ytd_summary","title":"get_ytd_summary","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"get_traded_symbols","description":"List the tickers actually traded in a date range, most active first.","inputSchema":{"type":"object","properties":{"end":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"start":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null}}},"logicalName":"get_traded_symbols","displayName":"get_traded_symbols","title":"get_traded_symbols","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"get_order_history","description":"List historical orders rather than individual fills — partial fills of\nthe same order are rolled up into one row with average price, total\nquantity and combined commission.","inputSchema":{"type":"object","properties":{"end":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"start":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"account":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"instrument":{"type":"string","default":"all"}}},"logicalName":"get_order_history","displayName":"get_order_history","title":"get_order_history","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"get_news_headlines","description":"Get recent news headlines for a ticker.","inputSchema":{"type":"object","required":["symbol"],"properties":{"days":{"type":"integer","default":14},"limit":{"type":"integer","default":10},"symbol":{"type":"string"},"exchange":{"type":"string","default":"SMART"},"sec_type":{"type":"string","default":"STK"}}},"logicalName":"get_news_headlines","displayName":"get_news_headlines","title":"get_news_headlines","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"get_news_article","description":"Get the full text of one news headline, using the article_id and\nprovider returned by get_news_headlines.","inputSchema":{"type":"object","required":["article_id","provider"],"properties":{"provider":{"type":"string"},"article_id":{"type":"string"}}},"logicalName":"get_news_article","displayName":"get_news_article","title":"get_news_article","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"get_screen_screenshot","description":"Take a screenshot of every display as a JPEG.","inputSchema":{"type":"object","properties":{"quality":{"type":"integer","default":80}}},"logicalName":"get_screen_screenshot","displayName":"get_screen_screenshot","title":"get_screen_screenshot","annotations":{"untrustedContentHint":true,"readOnlyHint":true}},{"name":"get_screen_video","description":"Record the screen (all displays) to an MP4 for `seconds`.","inputSchema":{"type":"object","properties":{"fps":{"type":"integer","default":1},"seconds":{"type":"integer","default":60}}},"logicalName":"get_screen_video","displayName":"get_screen_video","title":"get_screen_video","annotations":{"untrustedContentHint":true,"readOnlyHint":true}}],"toolSource":"directory_preview","agentAction":"both","installLinks":[{"id":"cursor","label":"Cursor","href":"cursor://anysphere.cursor-deeplink/mcp/install?name=502-BAD-GATEWAY&config=eyJ1cmwiOiAiaHR0cHM6Ly9kcnVwYWRwLnRlY2gvbWNwIn0%3D"},{"id":"vscode","label":"VS Code","href":"vscode:mcp/install?%7B%22name%22%3A%22502-BAD-GATEWAY%22%2C%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fdrupadp.tech%2Fmcp%22%7D"},{"id":"vscode-insiders","label":"VS Code Insiders","href":"vscode-insiders:mcp/install?%7B%22name%22%3A%22502-BAD-GATEWAY%22%2C%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fdrupadp.tech%2Fmcp%22%7D"},{"id":"claude-web","label":"Claude.ai","href":"https://claude.ai/customize/connectors?modal=add-custom-connector&connectorName=502+BAD+GATEWAY&connectorUrl=https%3A%2F%2Fdrupadp.tech%2Fmcp"},{"id":"codex","label":"Codex","copyText":"codex mcp add \"502-BAD-GATEWAY\" --url \"https://drupadp.tech/mcp\""},{"id":"chatgpt","label":"ChatGPT","href":"https://www.mcpbundles.com/docs/integrations/chatgpt"}],"catalogUrl":"https://www.mcpbundles.com/api/directory/v1/servers/drupadp-mcp-7822d2647a","callUrl":"https://www.mcpbundles.com/api/directory/v1/servers/drupadp-mcp-7822d2647a/tools/{tool}","mcpServerUrl":"https://drupadp.tech/mcp","liveCatalogUrl":"https://www.mcpbundles.com/api/directory/v1/servers/drupadp-mcp-7822d2647a?live=1"}