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_overviewReadEvery 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_strategiesReadAll strategies with kind (paper, live or live_paper, from their accounts), state, autorun, next session, accounts and P&L.
get_strategyReadOne strategy with its settings and code.
get_strategy_logsReadThe strategy's latest log lines.
start_strategyAsk firstStart 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 firstStop a strategy. square_off=true also exits all its open legs; otherwise the leg handler keeps protecting them.
square_off_strategyAsk firstExit every open leg of one strategy on all its accounts. The strategy keeps running.
set_strategy_autorunChangeAutorun 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_entriesChangePause (paused=true) or resume new entries of a strategy without stopping it; open legs keep their stops.
pause_all_entriesChangePause or resume new entries for every running strategy at once.
list_strategy_accountsReadThe accounts linked to a strategy with multiplier, enabled flag, login state and open lots.
add_strategy_accountChangeLink a broker account to a strategy, also while it runs; it takes part from the next entry.
update_strategy_accountChangeChange 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_accountChangeUnlink an account from a strategy. Its open legs stay managed until they close.
list_accountsReadBroker accounts with login state.
get_fundsReadAvailable and used margin per account, read from the brokers.
list_legsReadStrategy legs with per-account fills, marks, stops and P&L.
exit_legAsk firstExit one leg on all its accounts.
exit_leg_accountAsk firstExit one leg on one account only.
square_off_accountAsk firstExit every open strategy leg on one account, across all strategies.
square_off_everythingAsk firstThe 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_accountsChangeLog 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 firstStop 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 firstStart, 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_legReadOne leg with its rules, per-account fills and state, events and the engine's orders.
modify_legAsk firstSet 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 firstExit some lots of a leg on all its accounts.
mark_leg_flatAsk firstRecord 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 firstPlace a failed entry again on one account. The strategy must be running.
place_leg_stop_orderAsk firstPlace the leg's stop-loss order at the broker on one account (when broker stop orders are on and none rests).
get_reconcileReadFor 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_todayReadOne 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_seriesReadThe 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_reportReadBacktest-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_tradesReadClosed 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_bookChangeTurn 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_capitalChangeSave the capital that return-based metrics use for one scope (strategy, account, mode, currency). capital 0 or empty removes it.
list_brokerage_plansReadEach account's brokerage plan used for trade charges: per order, per lot or a percent of turnover.
set_brokerage_planChangeSet 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_tradesReadPositions 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_exitChangeRecord (or edit) the exit of an unattended position for the trade book. Bookkeeping only: no order is placed.
remove_manual_exitChangeRemove a hand-entered exit, which lists the position as unattended again.
get_strategy_scheduleReadWhich strategies run on each day, with holidays, expiries and events.
set_strategy_dayChangeSkip a date a running strategy would trade (skip), add one it wouldn't (run), or undo (clear).
set_strategy_daysChangeRun, skip or clear (back to its run days) many dates of one strategy at once, today or later.
set_day_for_strategiesChangeRun, 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_scheduleReadA 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_dayReadA date's sessions per segment, what the Volrix calendar says, and your change.
list_updatesReadRecent notifications: logins, orders, strategy changes, errors.
list_brokersReadSupported brokers: the credential fields each needs, its login style and segments.
get_accountReadOne broker account: broker, label, login state, static IP, automatic login, disabled flag.
create_accountChangeAdd 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_accountChangeChange 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 firstDelete a broker account; refused while anything uses it.
disable_accountChangeStop 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_accountChangeAllow orders on a disabled account again.
start_broker_loginChangeStart 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_loginChangeFinish a browser login with the full address the broker redirected to after the user logged in.
auto_loginChangeLog an account in now with its saved credentials, where the broker allows it.
check_broker_sessionChangeAsk the broker whether the account's session still works; a refused one is cleared.
logout_brokerChangeEnd 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_leverageReadA Delta Exchange account's leverage per perpetual: ours, Delta's current value and the limits.
set_account_leverageChangeSet 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_fundsReadOne account's available and used margin, read from the broker now.
preview_test_orderReadWhat a one-share test order on an account would be: instrument, price and checks.
list_test_ordersReadAn account's test orders and their status.
place_test_orderAsk firstPlace 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_orderChangeRead a test order's status from the broker again.
cancel_test_orderAsk firstCancel a resting test order at the broker.
get_all_broker_positionsReadEvery account's net positions as the broker reports them.
get_broker_positionsReadOne account's net positions as the broker reports them.
get_all_order_booksReadEvery account's order book as the broker reports it.
get_order_bookReadOne account's order book as the broker reports it.
place_orderAsk firstPlace 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_ordersReadOrders Volrix sent on one IST day (default today), newest first, with fills.
get_orderReadOne order with its broker children, trades and events.
cancel_orderAsk firstCancel every open part of an order.
modify_orderAsk firstChange the type, price or trigger of every open part of an order. Quantity can't change.
mark_order_not_placedAsk firstFor 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_ipReadThis server's public IP address, which brokers see for direct accounts.
list_static_ipsReadStatic IP proxies and the accounts using each.
get_static_ipReadOne static IP proxy with its last check.
create_static_ipChangeAdd a static IP proxy that accounts can route their broker calls through.
update_static_ipChangeChange a static IP proxy's label, type, host, port or login.
delete_static_ipAsk firstDelete a static IP proxy; refused while accounts use it.
check_static_ipChangeTest a static IP proxy now: its exit IP and latency.
get_instruments_statusReadWhich brokers' instrument lists are loaded, for which day, and when they refresh.
refresh_instrumentsChangeDownload the instrument master again, for one broker or all.
search_instrumentsReadFind instruments by name or symbol; returns their instrument keys.
list_instrument_daysReadThe days whose instrument lists are stored.
list_underlyingsReadUnderlyings with options or futures, by segment.
list_expiriesReadAn underlying's option or future expiries.
get_option_chainReadAn underlying's option chain for one expiry: strikes with call and put instruments.
list_futuresReadAn underlying's futures contracts.
resolve_instrumentReadThe instrument for an underlying, expiry, type and strike.
get_instrument_by_tokenReadThe instrument for an exchange segment and token.
get_instrument_by_broker_symbolReadThe instrument a broker's own symbol or token names.
get_symbol_formatsReadHow each broker writes symbols, with examples.
get_instrumentReadOne instrument by its key, with each broker's symbol and token.
get_stream_statusReadThe live data stream: running or not, accounts, instruments, ticks and limits.
control_streamAsk firststart 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_instrumentsReadInstruments the stream is subscribed to now.
get_live_candlesReadToday's closed minute candles of a streamed instrument.
get_live_greeksReadAn option's greeks by minute from the stream.
get_dashboard_tickerReadThe symbols and ATM straddles shown in the Dashboard's live price strip (the defaults until saved).
update_dashboard_tickerChangeSet 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_tickerChangeGo back to the default symbols and straddles in the Dashboard's price strip.
list_streamed_symbolsReadEverything 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_symbolsReadSearch the instrument master for the price strip; each result says whether the stream carries it.
list_ticker_straddlesReadUnderlyings and expiries whose calls and puts are both streamed, for ATM straddles.
list_stream_selectionsReadWhat the stream subscribes to besides the strategies' own needs.
create_stream_selectionChangeAdd underlyings, stock lists, options and futures for the stream to subscribe to.
update_stream_selectionChangeChange a stream selection.
delete_stream_selectionAsk firstDelete a stream selection.
order_stream_selectionsChangeSet the order of the stream selections by id.
get_stream_catalogReadUnderlyings, segments and stock lists a selection can use.
list_stock_listsReadStock lists (index constituents and your own).
get_stock_listReadOne stock list with its instruments.
create_stock_listChangeAdd your own stock list of instrument keys.
update_stock_listChangeRename a stock list or change its instruments.
delete_stock_listAsk firstDelete your own stock list.
refresh_stock_listsChangeDownload the index constituent lists again.
preview_streamReadWhat a draft selection would subscribe to, with live quotes when asked.
get_market_data_settingsReadSettings → Market data: candle and tick retention, open interest, greeks, stale limits and history downloads.
set_market_data_settingsChangeChange Settings → Market data; fields not sent keep their value.
get_history_statusReadHistorical candle downloads: the last run, what is stored and what runs next.
control_historyChangerun the historical candle download now, or stop it.
list_history_instrumentsReadInstruments with stored minute candles, their range and size.
delete_historyAsk firstDelete 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_seriesReadUnderlyings with a stored continuous futures series.
get_candlesReadMinute candles of one instrument key, stored history then today's. Use limit or a range.
get_continuous_candlesReadMinute candles of an underlying's continuous future (rank 1 = nearest).
get_straddle_candlesReadMinute candles of an underlying's ATM straddle for one expiry.
count_unread_updatesReadHow many updates are unread.
mark_updates_readChangeMark updates read by id, or all of them.
get_telegram_settingsReadSettings → Telegram: whether it sends, the chat and which update levels.
set_telegram_settingsChangeChange the bot token, chat, update levels or turn Telegram on or off.
find_telegram_chatsChangeChats that recently messaged the bot, to pick chat_id from.
send_telegram_testChangeSend a test message to the chat.
get_pinned_accountsReadThe broker accounts pinned to the front of the dashboard's account cards, in order.
set_pinned_accountsChangeReplace the pinned dashboard accounts with account_ids, in the order to show them. An empty list unpins all.
get_funds_settingsReadSettings → Funds: whether Delta balances and P&L show in INR or USD, and the rate.
set_funds_settingsChangeShow Delta balances and P&L in INR (converted) or USD.
get_schedule_settingsReadSettings → Schedules: the times of scheduled jobs (logins, stream, history, trade book).
set_schedule_settingsChangeChange scheduled job times (HH:MM IST by job name).
get_position_check_settingsReadSettings → 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_settingsChangeTurn 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_calendarReadHolidays, special sessions, expiries and your changes for the coming days.
get_segment_dayReadOne segment's sessions on one date.
sync_market_calendarChangeFetch holidays, special sessions and expiries from Volrix now.
get_auto_login_planReadWhich accounts log in automatically on a date and when.
list_calendar_overridesReadYour changes to the market calendar.
create_calendar_overrideChangeClose segments on a date (action close) or open them with sessions (action open).
update_calendar_overrideChangeChange one of your calendar changes.
delete_calendar_overrideAsk firstRemove one of your calendar changes.
list_extra_trading_daysReadDates you added as trading days.
add_trading_dayChangeAdd a trading day (e.g. a special Saturday session) for segments.
remove_trading_dayAsk firstRemove a trading day you added.
get_default_hoursReadThe default sessions per segment for a date.
get_market_hoursReadThe regular session hours per segment.
set_market_hoursChangeChange the regular session hours per segment.
change_market_dayChangeSet each segment on a date to follow the calendar, open with hours, or closed.
create_strategyChangeCreate a strategy from code, parameters and execution settings. Without accounts it is linked to the Paper account. Use check_strategy_code first.
update_strategyChangeChange 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_codeReadCheck strategy code without saving it: errors, the class and its run settings.
delete_strategyAsk firstDelete a stopped strategy with no open legs.
restart_strategyAsk firstStop and start a strategy again; it keeps managing its open legs unless fresh=true.
list_strategy_runsReadA strategy's newest 50 runs with state, mode and times.
get_strategy_servicesReadWhether the strategy supervisor and the leg handler answer, with their runs and legs.
get_strategies_pnlReadEvery strategy's P&L for a day, optionally on one account.
get_strategy_pnlReadOne strategy's P&L for a day, optionally on one account.
square_off_strategy_accountAsk firstExit every open leg of one strategy on one account only.
set_leg_riskAsk firstReplace a leg's stop-loss, target or trailing rules; resting broker stops follow.
reenter_legAsk firstEnter an ended leg again now. The strategy must be running.
stop_leg_reentryAsk firstStop a leg's waiting re-entry and cancel its wait.
list_volrix_accountsReadConnected volrix.ai accounts strategies can be imported from.
disconnect_volrix_accountAsk firstDisconnect a volrix.ai account.
list_volrix_strategiesReadStrategies saved in a connected volrix.ai account.
get_volrix_strategy_draftReadA Volrix strategy turned into a draft to review before creating it.
import_volrix_strategyChangeCreate a strategy here from a strategy in a connected volrix.ai account.
draft_strategy_from_fileReadDrafts from the text of an exported Volrix strategy file, to review before creating them.
draft_strategy_from_linkReadDrafts from a shared volrix.ai strategy link.
get_system_statusReadThe machine's CPU, memory and disk, each service's process, Redis, NATS and data sizes.
get_pnl_scopesReadAccounts, strategies and pairs with recorded P&L history, and their date ranges.
get_underlying_priceReadAn index's or continuous future's closes, to compare with the MTM series.
get_performance_scopesReadStrategies and accounts with trades, the last build and how many closed legs await it.
list_api_tokensReadAPI tokens (names, created, last used); never the token itself.
revoke_api_tokenAsk firstRevoke an API token; clients using it lose access at once.