Skip to content

AI agents

MCP tools ​

Every tool the built-in MCP server offers an agent. Read tools only look. Change tools edit the workspace. Ask-first tools place or cancel orders, stop trading or delete data, so a client should confirm with you before it calls one.

  • get_overviewRead

    Every account's and strategy's open, booked and total P&L by currency (live and paper apart), each strategy's accounts and multipliers, and the problems that need action now: among them no_price (an open leg's instrument has had no tick for 30 s while its market is open, so its stop and target checks are paused) and position_mismatch (the broker's net differs from the legs').

  • list_strategiesRead

    All strategies with kind (paper, live or live_paper, from their accounts), state, autorun, next session, accounts and P&L.

  • get_strategyRead

    One strategy with its settings and code.

  • get_strategy_logsRead

    The strategy's latest log lines.

  • start_strategyAsk first

    Start a strategy (it waits for the market if closed). With autorun on it runs every trading day of its schedule until stopped; with autorun off it runs its next session only and then stops by itself. fresh=true discards its saved state and earlier legs' adoption; otherwise it continues managing its open legs.

  • stop_strategyAsk first

    Stop a strategy. square_off=true also exits all its open legs; otherwise the leg handler keeps protecting them.

  • square_off_strategyAsk first

    Exit every open leg of one strategy on all its accounts. The strategy keeps running.

  • set_strategy_autorunChange

    Autorun on (true): a started strategy runs every trading day of its schedule until stopped. Off (false): Start runs it for its next session only, then it stops by itself. A running strategy follows the change from its next minute.

  • set_strategy_entriesChange

    Pause (paused=true) or resume new entries of a strategy without stopping it; open legs keep their stops.

  • pause_all_entriesChange

    Pause or resume new entries for every running strategy at once.

  • list_strategy_accountsRead

    The accounts linked to a strategy with multiplier, enabled flag, login state and open lots.

  • add_strategy_accountChange

    Link a broker account to a strategy, also while it runs; it takes part from the next entry.

  • update_strategy_accountChange

    Change an account's multiplier or stop/allow its new entries in a strategy. Applies from the next entry while it runs, from the next start otherwise; open legs keep their size.

  • remove_strategy_accountChange

    Unlink an account from a strategy. Its open legs stay managed until they close.

  • list_accountsRead

    Broker accounts with login state.

  • get_fundsRead

    Available and used margin per account, read from the brokers.

  • list_legsRead

    Strategy legs with per-account fills, marks, stops and P&L.

  • exit_legAsk first

    Exit one leg on all its accounts.

  • exit_leg_accountAsk first

    Exit one leg on one account only.

  • square_off_accountAsk first

    Exit every open strategy leg on one account, across all strategies.

  • square_off_everythingAsk first

    The kill switch. Pauses new entries for every running strategy and exits every open leg on every account at market. stop_strategies=true also stops every running strategy afterwards. Needs confirm=true.

  • bulk_accountsChange

    Log in (automatically, where the account allows it), check the session, log out, turn orders off or turn them on for several broker accounts in one call, one after another. Accounts already in that state, or needing a login on the broker's page, are skipped with the reason. A logout refused because a strategy or leg uses the account has needs_force; send it again with force=true only after the user agrees.

  • kill_switchAsk first

    Stop trading on every account (account_ids empty) or on chosen ones. A strategy whose enabled accounts are all chosen is stopped; one that also trades on other accounts stops taking new entries on the chosen ones and keeps running elsewhere. action stop_squareoff (default) also exits every open leg on the chosen accounts at market; stop leaves them protected by their stops. Without confirm it changes nothing and returns the plan (accounts, strategies to stop, entries to turn off, legs to exit); with confirm=true it acts and adds result.

  • run_strategiesAsk first

    Start, stop, stop and square off, pause entries or resume entries on several strategies in one call. Strategies already in the asked state are skipped with the reason; each one gets its own result (done, skipped or failed with the reason). stop_squareoff exits every open leg at market.

  • get_legRead

    One leg with its rules, per-account fills and state, events and the engine's orders.

  • modify_legAsk first

    Set a leg's stop-loss (what=SL) or target to a price; a resting broker stop order moves with it. A stop looser than the current one is refused unless force=true. index picks the rule when there are several.

  • partial_exit_legAsk first

    Exit some lots of a leg on all its accounts.

  • mark_leg_flatAsk first

    Record that a leg's position on one account was closed outside Volrix (at the broker, auto square-off, liquidation). Cancels the account's working orders for the leg, including a resting stop; nothing new is placed. price is the exit price if known.

  • retry_leg_entryAsk first

    Place a failed entry again on one account. The strategy must be running.

  • place_leg_stop_orderAsk first

    Place the leg's stop-loss order at the broker on one account (when broker stop orders are on and none rests).

  • get_reconcileRead

    For one account (account_id) or all: the broker's positions and order book for an IST day next to Volrix's orders and open legs, with a verdict per instrument (match, differs, broker_only, volrix_only) and the problems found. fresh=true reads the broker now instead of a reading up to a few seconds old.

  • get_pnl_todayRead

    One day's P&L (default the latest day with data) in total, per strategy and per account: close, booked, open, high and low.

  • get_pnl_seriesRead

    The MTM (total P&L) over time as OHLC bars with booked and open P&L, for everything, one account, one strategy or one strategy on one account. Default: today, 15-minute bars. run_id limits it to one run.

  • get_performance_reportRead

    Backtest-style metrics of the trade book (closed legs × accounts) for everything, one strategy and/or one account: P&L, win rate, drawdown, Sharpe and the rest, charges, best and worst days and contribution by account and strategy. basis net (after charges, default) or gross. exclude adds listed charges back as a what-if. capital (else the saved one) enables return-based metrics. series=true adds the day-wise, trade-wise and drawdown series.

  • list_tradesRead

    Closed trades, newest first: one per leg and account, with fills, times, exit reason, gross and net P&L, charges and the reconciliation status against the engine's and the broker's orders.

  • build_trade_bookChange

    Turn closed legs into trades now (it also runs after each market and before the open). rebuild=true builds every trade again, apart from exits entered by hand.

  • set_report_capitalChange

    Save the capital that return-based metrics use for one scope (strategy, account, mode, currency). capital 0 or empty removes it.

  • list_brokerage_plansRead

    Each account's brokerage plan used for trade charges: per order, per lot or a percent of turnover.

  • set_brokerage_planChange

    Set an account's brokerage: method order (rate per executed order), lot (rate per lot) or percent (percent of turnover). Its trades are repriced.

  • list_unattended_tradesRead

    Positions Volrix no longer manages (the leg ended but the account wasn't flat) and the ones whose exit was entered by hand, with a suggested exit time.

  • enter_manual_exitChange

    Record (or edit) the exit of an unattended position for the trade book. Bookkeeping only: no order is placed.

  • remove_manual_exitChange

    Remove a hand-entered exit, which lists the position as unattended again.

  • get_strategy_scheduleRead

    Which strategies run on each day, with holidays, expiries and events.

  • set_strategy_dayChange

    Skip a date a running strategy would trade (skip), add one it wouldn't (run), or undo (clear).

  • set_strategy_daysChange

    Run, skip or clear (back to its run days) many dates of one strategy at once, today or later.

  • set_day_for_strategiesChange

    Run, skip or clear one date for many strategies at once (all of them when strategy_ids is empty), e.g. skip every strategy on budget day.

  • preview_strategy_scheduleRead

    A strategy's next days (default 35) under its run days and under another rule: by all (every trading day), days (weekdays, Monday 0) or dte (days to expiry; not for Delta). Each day shows the plan under both. To apply a rule to a stopped strategy, update it in the strategy's settings; for a running one, write the differences as dates with set_strategy_days.

  • get_market_dayRead

    A date's sessions per segment, what the Volrix calendar says, and your change.

  • list_updatesRead

    Recent notifications: logins, orders, strategy changes, errors.

  • list_brokersRead

    Supported brokers: the credential fields each needs, its login style and segments.

  • get_accountRead

    One broker account: broker, label, login state, static IP, automatic login, disabled flag.

  • create_accountChange

    Add a broker account. credentials holds the fields list_brokers names for that broker; they pass through this conversation, so offer the website for secrets.

  • update_accountChange

    Change an account's label, static IP, automatic login and its time, or credentials. A change that would disturb a running strategy or open leg is refused with what uses it, unless force=true.

  • delete_accountAsk first

    Delete a broker account; refused while anything uses it.

  • disable_accountChange

    Stop every order on an account without deleting it. Refused while a strategy runs on it, a leg holds lots there or one of its orders is still working.

  • enable_accountChange

    Allow orders on a disabled account again.

  • start_broker_loginChange

    Start a browser login: returns the broker's login URL for the user to open. After they log in, pass the address the broker sent them to into finish_broker_login.

  • finish_broker_loginChange

    Finish a browser login with the full address the broker redirected to after the user logged in.

  • auto_loginChange

    Log an account in now with its saved credentials, where the broker allows it.

  • check_broker_sessionChange

    Ask the broker whether the account's session still works; a refused one is cleared.

  • logout_brokerChange

    End an account's broker session here. Refused while a strategy uses the account unless force=true; its strategies can't place orders until it logs in again.

  • get_account_leverageRead

    A Delta Exchange account's leverage per perpetual: ours, Delta's current value and the limits.

  • set_account_leverageChange

    Set leverage per perpetual on a Delta Exchange account, e.g. {"BTCUSD": "10"}; null clears ours. Applied on Delta at once, which re-margins open orders on that contract.

  • get_account_fundsRead

    One account's available and used margin, read from the broker now.

  • preview_test_orderRead

    What a one-share test order on an account would be: instrument, price and checks.

  • list_test_ordersRead

    An account's test orders and their status.

  • place_test_orderAsk first

    Place a real one-share limit order on a live account to check the connection, normally priced away from the market so it rests.

  • refresh_test_orderChange

    Read a test order's status from the broker again.

  • cancel_test_orderAsk first

    Cancel a resting test order at the broker.

  • get_all_broker_positionsRead

    Every account's net positions as the broker reports them.

  • get_broker_positionsRead

    One account's net positions as the broker reports them.

  • get_all_order_booksRead

    Every account's order book as the broker reports it.

  • get_order_bookRead

    One account's order book as the broker reports it.

  • place_orderAsk first

    Place an order on one account through the engine, outside any strategy. instrument is an instrument key (search_instruments). quantity for F&O, MCX and Delta is in LOTS, not units: 1 is one lot (one NIFTY lot is 65 units, so send 1, not 65); cash quantity is in shares. A lot quantity that is an exact multiple of the lot size is refused unless confirm_quantity is true; set it only when the user asked for that many lots. The same intent_id again returns the existing order.

  • list_ordersRead

    Orders Volrix sent on one IST day (default today), newest first, with fills.

  • get_orderRead

    One order with its broker children, trades and events.

  • cancel_orderAsk first

    Cancel every open part of an order.

  • modify_orderAsk first

    Change the type, price or trigger of every open part of an order. Quantity can't change.

  • mark_order_not_placedAsk first

    For an order the broker never confirmed (unconfirmed): mark its unconfirmed parts rejected, only after checking the broker's order book shows no such order. Refused for a final or confirmed order.

  • get_public_ipRead

    This server's public IP address, which brokers see for direct accounts.

  • list_static_ipsRead

    Static IP proxies and the accounts using each.

  • get_static_ipRead

    One static IP proxy with its last check.

  • create_static_ipChange

    Add a static IP proxy that accounts can route their broker calls through.

  • update_static_ipChange

    Change a static IP proxy's label, type, host, port or login.

  • delete_static_ipAsk first

    Delete a static IP proxy; refused while accounts use it.

  • check_static_ipChange

    Test a static IP proxy now: its exit IP and latency.

  • get_instruments_statusRead

    Which brokers' instrument lists are loaded, for which day, and when they refresh.

  • refresh_instrumentsChange

    Download the instrument master again, for one broker or all.

  • search_instrumentsRead

    Find instruments by name or symbol; returns their instrument keys.

  • list_instrument_daysRead

    The days whose instrument lists are stored.

  • list_underlyingsRead

    Underlyings with options or futures, by segment.

  • list_expiriesRead

    An underlying's option or future expiries.

  • get_option_chainRead

    An underlying's option chain for one expiry: strikes with call and put instruments.

  • list_futuresRead

    An underlying's futures contracts.

  • resolve_instrumentRead

    The instrument for an underlying, expiry, type and strike.

  • get_instrument_by_tokenRead

    The instrument for an exchange segment and token.

  • get_instrument_by_broker_symbolRead

    The instrument a broker's own symbol or token names.

  • get_symbol_formatsRead

    How each broker writes symbols, with examples.

  • get_instrumentRead

    One instrument by its key, with each broker's symbol and token.

  • get_stream_statusRead

    The live data stream: running or not, accounts, instruments, ticks and limits.

  • control_streamAsk first

    start or stop the live data stream, or auto to follow the schedule. Stopping it stops prices for the strategies and the leg handler.

  • list_live_instrumentsRead

    Instruments the stream is subscribed to now.

  • get_live_candlesRead

    Today's closed minute candles of a streamed instrument.

  • get_live_greeksRead

    An option's greeks by minute from the stream.

  • get_dashboard_tickerRead

    The symbols and ATM straddles shown in the Dashboard's live price strip (the defaults until saved).

  • update_dashboard_tickerChange

    Set what the Dashboard's live price strip shows, in order: items of kind symbol (instrument key and label) or straddle (segment, underlying, expiry or nearest).

  • reset_dashboard_tickerChange

    Go back to the default symbols and straddles in the Dashboard's price strip.

  • list_streamed_symbolsRead

    Everything the stream carries today for the price strip: indices, stocks and ETFs, futures and crypto, and the underlyings and expiries whose calls and puts are both streamed (ATM straddles).

  • search_ticker_symbolsRead

    Search the instrument master for the price strip; each result says whether the stream carries it.

  • list_ticker_straddlesRead

    Underlyings and expiries whose calls and puts are both streamed, for ATM straddles.

  • list_stream_selectionsRead

    What the stream subscribes to besides the strategies' own needs.

  • create_stream_selectionChange

    Add underlyings, stock lists, options and futures for the stream to subscribe to.

  • update_stream_selectionChange

    Change a stream selection.

  • delete_stream_selectionAsk first

    Delete a stream selection.

  • order_stream_selectionsChange

    Set the order of the stream selections by id.

  • get_stream_catalogRead

    Underlyings, segments and stock lists a selection can use.

  • list_stock_listsRead

    Stock lists (index constituents and your own).

  • get_stock_listRead

    One stock list with its instruments.

  • create_stock_listChange

    Add your own stock list of instrument keys.

  • update_stock_listChange

    Rename a stock list or change its instruments.

  • delete_stock_listAsk first

    Delete your own stock list.

  • refresh_stock_listsChange

    Download the index constituent lists again.

  • preview_streamRead

    What a draft selection would subscribe to, with live quotes when asked.

  • get_market_data_settingsRead

    Settings → Market data: candle and tick retention, open interest, greeks, stale limits and history downloads.

  • set_market_data_settingsChange

    Change Settings → Market data; fields not sent keep their value.

  • get_history_statusRead

    Historical candle downloads: the last run, what is stored and what runs next.

  • control_historyChange

    run the historical candle download now, or stop it.

  • list_history_instrumentsRead

    Instruments with stored minute candles, their range and size.

  • delete_historyAsk first

    Delete stored candles of one instrument (scope=key) or of every instrument no longer wanted (scope=unwanted). Refused for instruments a running strategy needs.

  • list_continuous_seriesRead

    Underlyings with a stored continuous futures series.

  • get_candlesRead

    Minute candles of one instrument key, stored history then today's. Use limit or a range.

  • get_continuous_candlesRead

    Minute candles of an underlying's continuous future (rank 1 = nearest).

  • get_straddle_candlesRead

    Minute candles of an underlying's ATM straddle for one expiry.

  • count_unread_updatesRead

    How many updates are unread.

  • mark_updates_readChange

    Mark updates read by id, or all of them.

  • get_telegram_settingsRead

    Settings → Telegram: whether it sends, the chat and which update levels.

  • set_telegram_settingsChange

    Change the bot token, chat, update levels or turn Telegram on or off.

  • find_telegram_chatsChange

    Chats that recently messaged the bot, to pick chat_id from.

  • send_telegram_testChange

    Send a test message to the chat.

  • get_pinned_accountsRead

    The broker accounts pinned to the front of the dashboard's account cards, in order.

  • set_pinned_accountsChange

    Replace the pinned dashboard accounts with account_ids, in the order to show them. An empty list unpins all.

  • get_funds_settingsRead

    Settings → Funds: whether Delta balances and P&L show in INR or USD, and the rate.

  • set_funds_settingsChange

    Show Delta balances and P&L in INR (converted) or USD.

  • get_schedule_settingsRead

    Settings → Schedules: the times of scheduled jobs (logins, stream, history, trade book).

  • set_schedule_settingsChange

    Change scheduled job times (HH:MM IST by job name).

  • get_position_check_settingsRead

    Settings → Position check: whether the leg handler compares each account's broker positions with its legs, how often, how many differing reads raise an alert, and the quiet time after our own fills.

  • set_position_check_settingsChange

    Turn the broker position check on or off, or change every_seconds (5-300), reads (1-10), settle_seconds (0-120), max_age_seconds (0-60) or unreadable_reads (1-60). The leg handler uses new values at once.

  • get_market_calendarRead

    Holidays, special sessions, expiries and your changes for the coming days.

  • get_segment_dayRead

    One segment's sessions on one date.

  • sync_market_calendarChange

    Fetch holidays, special sessions and expiries from Volrix now.

  • get_auto_login_planRead

    Which accounts log in automatically on a date and when.

  • list_calendar_overridesRead

    Your changes to the market calendar.

  • create_calendar_overrideChange

    Close segments on a date (action close) or open them with sessions (action open).

  • update_calendar_overrideChange

    Change one of your calendar changes.

  • delete_calendar_overrideAsk first

    Remove one of your calendar changes.

  • list_extra_trading_daysRead

    Dates you added as trading days.

  • add_trading_dayChange

    Add a trading day (e.g. a special Saturday session) for segments.

  • remove_trading_dayAsk first

    Remove a trading day you added.

  • get_default_hoursRead

    The default sessions per segment for a date.

  • get_market_hoursRead

    The regular session hours per segment.

  • set_market_hoursChange

    Change the regular session hours per segment.

  • change_market_dayChange

    Set each segment on a date to follow the calendar, open with hours, or closed.

  • create_strategyChange

    Create a strategy from code, parameters and execution settings. Without accounts it is linked to the Paper account. Use check_strategy_code first.

  • update_strategyChange

    Change a strategy's name, description, code, class, parameters (symbol, timeframe, run days…), execution settings or autorun. Code, parameters, execution and accounts can't change while it runs. execution merges with what is stored.

  • check_strategy_codeRead

    Check strategy code without saving it: errors, the class and its run settings.

  • delete_strategyAsk first

    Delete a stopped strategy with no open legs.

  • restart_strategyAsk first

    Stop and start a strategy again; it keeps managing its open legs unless fresh=true.

  • list_strategy_runsRead

    A strategy's newest 50 runs with state, mode and times.

  • get_strategy_servicesRead

    Whether the strategy supervisor and the leg handler answer, with their runs and legs.

  • get_strategies_pnlRead

    Every strategy's P&L for a day, optionally on one account.

  • get_strategy_pnlRead

    One strategy's P&L for a day, optionally on one account.

  • square_off_strategy_accountAsk first

    Exit every open leg of one strategy on one account only.

  • set_leg_riskAsk first

    Replace a leg's stop-loss, target or trailing rules; resting broker stops follow.

  • reenter_legAsk first

    Enter an ended leg again now. The strategy must be running.

  • stop_leg_reentryAsk first

    Stop a leg's waiting re-entry and cancel its wait.

  • list_volrix_accountsRead

    Connected volrix.ai accounts strategies can be imported from.

  • disconnect_volrix_accountAsk first

    Disconnect a volrix.ai account.

  • list_volrix_strategiesRead

    Strategies saved in a connected volrix.ai account.

  • get_volrix_strategy_draftRead

    A Volrix strategy turned into a draft to review before creating it.

  • import_volrix_strategyChange

    Create a strategy here from a strategy in a connected volrix.ai account.

  • draft_strategy_from_fileRead

    Drafts from the text of an exported Volrix strategy file, to review before creating them.

  • draft_strategy_from_linkRead

    Drafts from a shared volrix.ai strategy link.

  • get_system_statusRead

    The machine's CPU, memory and disk, each service's process, Redis, NATS and data sizes.

  • get_pnl_scopesRead

    Accounts, strategies and pairs with recorded P&L history, and their date ranges.

  • get_underlying_priceRead

    An index's or continuous future's closes, to compare with the MTM series.

  • get_performance_scopesRead

    Strategies and accounts with trades, the last build and how many closed legs await it.

  • list_api_tokensRead

    API tokens (names, created, last used); never the token itself.

  • revoke_api_tokenAsk first

    Revoke an API token; clients using it lose access at once.