MCP Tools
This page documents the public tools available through the Trade It MCP server. Each tool includes its full parameter schema.
create_trade
Create a trade order for user to review. For draft orders, call execute_trade with the trade ID to submit. We recommend user review and approval before execution but this is not required. You may enable auto-execution by setting "Always Confirm" to false in the Trade It dashboard.
If no account is provided, your default account is used. If no order_type is provided, it defaults to a market order.
Futures
Futures symbols start with a slash. /ES trades the active contract month and /ESZ26 names one (month letter plus two-digit year). Futures are sized in whole contracts with "unit": "contracts", and need an account at one of Robinhood, Tastytrade, TradeStation, TradeStation Paper. Auto-execution for futures has its own "Always Confirm Futures" setting.
Order types
| Type | Behavior |
|---|---|
market (default) | Executes immediately at current market price. No price fields required. |
limit | Executes only at a specific limit_price or better. Requires limit_price. |
stop | Triggers a market order when stop_price is reached. Requires stop_price. |
stop_limit | Triggers a limit order when stop_price is reached. Requires both stop_price and limit_price. |
Trading session and time in force
Use trading_session to choose an execution window and time_in_force to set order duration. Extended equity sessions require limit orders without attached exits. Dollar-sized limits convert to shares at the limit price and round down to the supported share precision. Spot crypto runs 24/7 by default. Omit the session to use the brokerage default. See Supported Brokerages for available sessions.
| Value | Behavior |
|---|---|
day | Expires at end of trading day. |
gtc | Good until canceled. |
Exit criteria
| Exit | Behavior |
|---|---|
| Take profit | Closes the position at a certain price or percent above the entry. |
| Stop loss | Closes the position at a certain price or percent below the entry. |
Examples
| Example | Parameters |
|---|---|
| Buy $1000 of Tesla | {"symbol": "TSLA", "amount": 1000, "unit": "dollars", "buy_or_sell": "buy"} |
| Buy $1000 of Tesla only if the price drops to $150 or lower | {"symbol": "TSLA", "amount": 1000, "unit": "dollars", "buy_or_sell": "buy", "order_type": "limit", "limit_price": 150} |
| Sell 10 shares of Apple if the price falls to $140 or lower | {"symbol": "AAPL", "amount": 10, "unit": "shares", "buy_or_sell": "sell", "order_type": "stop", "stop_price": 140} |
| Buy a share of Apple if it hits $200 | {"symbol": "AAPL", "amount": 1, "unit": "shares", "buy_or_sell": "buy", "order_type": "stop", "stop_price": 200} |
| Buy 10 shares of Apple if the price rises to $140, paying at most $142 per share | {"symbol": "AAPL", "amount": 10, "unit": "shares", "buy_or_sell": "buy", "order_type": "stop_limit", "stop_price": 140, "limit_price": 142} |
| Buy $1000 of Tesla, take profit at +10%, and stop loss at -5% | {"symbol": "TSLA", "amount": 1000, "unit": "dollars", "buy_or_sell": "buy", "take_profit": {"value": 10, "unit": "%"}, "stop_loss": {"value": 5, "unit": "%"}} |
| Buy 5 shares of Apple and sell if it reaches $250 or drops to $180 | {"symbol": "AAPL", "amount": 5, "unit": "shares", "buy_or_sell": "buy", "take_profit": {"value": 250, "unit": "$"}, "stop_loss": {"value": 180, "unit": "$"}} |
| Buy 1 Micro E-mini S&P 500 futures contract in the active month | {"symbol": "/MES", "amount": 1, "unit": "contracts", "buy_or_sell": "buy"} |
| Sell 2 December 2026 crude oil contracts at $80 or better | {"symbol": "/CLZ26", "amount": 2, "unit": "contracts", "buy_or_sell": "sell", "order_type": "limit", "limit_price": 80} |
Parameters
symbol*stringTicker symbol of the asset to trade, e.g. TSLA. Futures start with a slash: /ES for the active month or /ESZ26 for a specific contract.
amount*numberHow much to trade: a dollar value when unit is dollars, a share count when unit is shares, or a whole number of futures contracts when unit is contracts.
unit*stringWhether amount is in dollars, shares, or (futures only) contracts.
dollarssharescontractsbuy_or_sell*stringWhether to buy or sell the asset.
buysellOptional context displayed with the draft trade.
image_urlstringLink to the screenshot or chart the user shared as the source of this trade idea, shown alongside the draft.
order_typestringHow the order is priced. Omit for a market order.
marketlimitstopstop_limitlimit_pricenumberMaximum price per share to pay on a buy, or minimum to accept on a sell, in the asset currency. Set for limit and stop_limit orders.
stop_pricenumberPrice per share, in the asset currency, that triggers the order. Set for stop and stop_limit orders.
Take-profit exit for Buy entries or OCO Sell orders. Not supported by all brokerages.
value*numberExit trigger level
unitstringAbsolute price ($) or percent from entry price (%).
$%Stop-loss exit for Buy entries or OCO Sell orders. Not supported by all brokerages.
value*numberExit trigger level
unitstringAbsolute price ($) or percent from entry price (%).
$%time_in_forcestringHow long the order stays open. Day expires at the applicable session cutoff, and gtc stays open until filled, canceled, or expired by the brokerage.
daygtciocfoktrading_sessionstring | nullWhen execution is eligible. Omit for the brokerage default. Premarket, after_hours and overnight are session-only. Extended adds premarket and after-hours to regular equity hours. 24_5 includes overnight, and 24_7 is for crypto. Check brokerage_metadata.trading_sessions for coverage.
regularpremarketafter_hoursextendedovernight24_524_7account_idnumber | stringID of the brokerage account to trade in, from get_accounts. Omit to use the user's default account.
create_options_trade
Create an options trade order with one or more legs (spreads, single options, etc.). Each leg represents a position in the options trade. For option legs, the OCC (Options Clearing Corporation) format is required.
OCC format
OCC identifiers use YYMMDD[C|P]STRIKE.
| Part | Meaning |
|---|---|
YY | Two-digit year, such as 24 for 2024. |
MM | Two-digit month, zero-padded, such as 01 for January. |
DD | Two-digit day, zero-padded, such as 19 for the 19th. |
C or P | Call or put option. |
STRIKE | Eight-digit strike price multiplied by 1000 and zero-padded, without a decimal point. |
Examples
| Example | Parameters |
|---|---|
| Single call: Buy 1 SPX call with a $1950 strike, expiring January 19, 2024 | {"symbol": "SPX", "legs": [{"type": "option", "action": "buy", "position_effect": "open", "occ": "240119C00195000", "quantity": 1}]} |
| Put spread: Buy 1 SPX $1950 put and sell 1 SPX $1900 put, both expiring January 19, 2024 | {"symbol": "SPX", "legs": [{"type": "option", "action": "buy", "position_effect": "open", "occ": "240119P00195000", "quantity": 1}, {"type": "option", "action": "sell", "position_effect": "open", "occ": "240119P00190000", "quantity": 1}]} |
| Mixed legs: Buy 100 shares of SPX and buy 1 call option | {"symbol": "SPX", "legs": [{"type": "equity", "action": "buy", "position_effect": null, "occ": null, "quantity": 100}, {"type": "option", "action": "buy", "position_effect": "open", "occ": "240119C00195000", "quantity": 1}]} |
| Futures option: Buy 1 E-mini S&P 500 6000 call expiring November 20, 2026 | {"symbol": "/ES", "order_type": "limit", "limit_price": 25.5, "legs": [{"type": "future_option", "action": "buy", "position_effect": "open", "occ": null, "symbol": "./ESZ26 EW3X26 261120C6000", "quantity": 1}]} |
Futures options
Futures options trade on a futures root such as /ES, through an account at Tastytrade. Each leg names its contract with its exact symbol, e.g. ./ESZ26 EW3X26 261120C6000: the future it exercises into (/ESZ26), the option series (EW3X26), the expiration (261120), call or put, and the strike in futures points. Prices are in futures points: a 25.50 premium on /ES is 25.50 × 50 = $1,275. Spreads need a limit order, and futures and futures-option legs cannot be mixed. Auto-execution follows the "Always Confirm Futures" setting.
Order types
| Type | Behavior |
|---|---|
market (default) | Executes immediately at current market price. |
limit | Executes only at a specific limit_price or better. Requires limit_price. |
stop | Triggers a market order when stop_price is reached. Requires stop_price. |
stop_limit | Triggers a limit order when stop_price is reached. Requires both stop_price and limit_price. |
Trading session and time in force
For eligible TradeStation options, set trading_session: "extended" on a limit order to include the contract's extended sessions. See Supported Brokerages for coverage. Omit the session to use the brokerage default.
| Value | Behavior |
|---|---|
day | Expires at end of trading day. |
gtc | Good until canceled. |
Direction
| Value | Behavior |
|---|---|
debit | You pay money to open the position (net cost). |
credit | You receive money to open the position (net credit). |
even | No money changes hands (zero-net limit order). |
Note: Option legs must have a valid OCC string. Equity legs should have occ set to null.
Parameters
symbol*stringTicker symbol of the underlying asset, e.g. SPX or TSLA, or a futures root such as /ES for futures options
Array of trade legs. At least one leg is required.
type*stringWhether the leg trades an option contract, shares of the underlying, or an option on a futures contract.
optionequityfuture_optionaction*stringWhether the leg buys or sells.
buysellposition_effectstring | nullWhether an option leg opens a new position or closes an existing one. Use null for equity legs.
opencloseocc*string | nullOption contract in OCC format without the root symbol: YYMMDD, C or P, then the strike x1000 zero-padded to 8 digits, e.g. "240119C00195000" for the Jan 19, 2024 $195 call. Use null for equity and futures-option legs.
symbolstringExact futures option contract symbol for future_option legs, e.g. "./ESZ26 EW3X26 261120C6000". Omit for other legs.
quantity*numberNumber of contracts for options or shares for equity
directionstringNet cash flow of a multi-leg spread: debit when paying, credit when receiving, even for zero-net. Set for multi-leg spreads only.
debitcreditevenlimit_pricenumberNet price per spread unit for limit and stop_limit orders, in the asset currency. Use 0 with direction even for a zero-net spread.
order_typestringHow the order is priced. Omit for a market order.
marketlimitstopstop_limitstop_pricenumberPrice per share, in the asset currency, that triggers the order. Set for stop and stop_limit orders.
time_in_forcestringHow long the order stays open. Day expires at the applicable session cutoff, and gtc stays open until filled, canceled, or expired by the brokerage.
daygtciocfoktrading_sessionstring | nullWhen execution is eligible. Omit for the brokerage default. Premarket, after_hours and overnight are session-only. Extended adds premarket and after-hours to regular equity hours. 24_5 includes overnight, and 24_7 is for crypto. Check brokerage_metadata.trading_sessions for coverage.
regularpremarketafter_hoursextendedovernight24_524_7account_idnumber | stringID of the brokerage account to trade in, from get_accounts. Omit to use the user's default account.
create_trade_link
Prepare a stock, crypto, options, or futures trade as a shareable link for the user's approval. The link opens in their browser, where they can review, edit, and place the trade in one click through any of their connected brokerages. This tool only creates the link; submitting the order requires the user's action.
Use this for trade alerts, shared trade ideas, or any flow where the recipient should review the trade before placing it.
Examples
| Example | Parameters |
|---|---|
| Share a simple stock idea | {"config": {"ticker": "TSLA", "trade_type": 0, "action": "buy", "amount": 1000, "unit": "dollars"}} |
| Share a two-leg options spread with a $1.25 net-debit limit | {"config": {"ticker": "MSFT", "trade_type": 1, "direction": "debit", "order_type": "limit", "limit_price": 1.25, "legs": [{"type": "option", "action": "buy", "position_effect": "open", "occ": "260717C00435000", "quantity": 1}, {"type": "option", "action": "sell", "position_effect": "open", "occ": "260717C00440000", "quantity": 1}]}} |
| Share an /ES put credit spread for 12.25 points | {"config": {"ticker": "/ES", "trade_type": 1, "direction": "credit", "order_type": "limit", "limit_price": 12.25, "legs": [{"type": "future_option", "action": "sell", "position_effect": "open", "occ": null, "symbol": "./ESZ26 EW3X26 261120P6000", "quantity": 1}, {"type": "future_option", "action": "buy", "position_effect": "open", "occ": null, "symbol": "./ESZ26 EW3X26 261120P5950", "quantity": 1}]}} |
Futures option links use the futures root as the ticker and future_option legs with exact contract symbols. Spreads need a limit order, and prices are in futures points.
Parameters
ticker*stringTicker symbol of the asset, or the underlying for options, e.g. TSLA. Futures use the product root with its slash, e.g. /ES.
trade_typenumber0 for a single buy or sell using action, amount, and unit; 1 for an options or multi-leg trade using legs and direction.
01actionstringWhether a simple trade buys or sells. Set when trade_type is 0.
buysellamountnumberHow much a simple trade buys or sells,, as dollars or shares per unit.
unitstringWhether amount is a dollar value, a share count, or (futures only) a contract count.
dollarssharescontractscontractstringFutures contract month code, e.g. Z26 for December 2026. Omit to trade the active month when the link is opened.
directionstringNet cash flow of a multi-leg trade: debit when paying, credit when receiving, even for zero-net.
debitcreditevenLegs of an options or multi-leg trade. Set when trade_type is 1.
type*stringWhether the leg trades an equity option, the underlying stock, or an option on a futures contract.
optionequityfuture_optionaction*stringWhether the leg buys or sells.
buysellposition_effect*string | nullWhether the leg opens or closes a position.
opencloseocc*string | nullOCC option contract symbol, e.g. 260717C00435000. Null for stock and futures-option legs.
symbolstringWhat the leg trades: the ticker for a stock leg, e.g. AAPL; the ticker followed by the OCC symbol for an option leg, e.g. AAPL260717C00435000; or the futures option symbol for a futures-option leg, e.g. ./ESZ26 EW3X26 261120C6000 (underlying contract, option series, expiration, call or put, strike).
quantity*numberNumber of option contracts, or shares for a stock leg.
order_typestringHow the order is priced. Omit for a market order.
marketlimitstopstop_limitlimit_pricenumberLimit price in the asset currency for limit and stop_limit orders; per spread unit for multi-leg trades, where 0 with direction even means zero-net.
stop_pricenumberPrice in the asset currency that triggers stop and stop_limit orders.
time_in_forcestringHow long the order stays open. Day expires at the applicable session cutoff.
daygtciocfoktrading_sessionstringWhen execution is eligible. Session availability depends on the brokerage and instrument.
regularpremarketafter_hoursextendedovernight24_524_7Take-profit exit for bracket Buy entries or OCO Sell orders. Not supported by all brokerages.
value*numberExit trigger level
unitstringAbsolute price ($) or percent from entry price (%).
$%Stop-loss exit for bracket Buy entries or OCO Sell orders. Not supported by all brokerages.
value*numberExit trigger level
unitstringAbsolute price ($) or percent from entry price (%).
$%utm_referredstringReferral source label stored with the link for tracking, e.g. a newsletter name.
cancel_trade
Cancel a draft or cancellable brokerage order. Draft trades are canceled immediately. Submitted orders are canceled at the brokerage when their current state permits it. Because an order may fill while cancellation is in progress, always use the returned trade status as the latest known state.
Parameters
trade_id*number | stringID of the trade to cancel, from create_trade, create_options_trade, or get_trades.
execute_trade
Execute a draft trade order. We recommend user review and approval before execution. Platforms control their consent flow, including whether to rely on prior or blanket consent.
If submission fails during execution, the result is a trade with status: failed, a machine-readable error_code, and an error_message when available.
insufficient_buying_power— The account cannot fund the order. Confirm sufficient buying power before retrying.market_closed— The market or trading session is closed for this order. Wait for an eligible session.invalid_order— Order validation failed, for example because of the price, quantity, or order type. Correct the order before resubmitting.not_tradable— A restriction on the asset prevented the trade, such as a halted symbol or an option contract that no longer trades. Do not retry automatically.account_action_required— The brokerage needs the user to act on their account first, such as accepting an agreement or risk disclosure, raising their options approval level, or using a margin account. Do not retry until the user confirms it is done.brokerage_rate_limited— The brokerage throttled the request. Back off before retrying.brokerage_unavailable— The brokerage request timed out or encountered a service error. The order may still have reached the brokerage, so check get_trades with refresh: true before retrying.needs_relink— The user must reconnect the brokerage before trading.
A missing or null error_code means Trade It could not identify the cause. Review error_message before retrying.
Parameters
trade_id*number | stringID of the draft trade to execute, as returned by create_trade or create_options_trade.
get_accounts
Get all brokerage accounts for the user and link new ones. Use refresh=true to pull fresh balances and buying power from the brokerage when eligible with a Pro plan; otherwise the last synced values are returned. Check each account's synced_at to see how fresh the values are. Currently supported: Charles Schwab, Coinbase, ETrade, Kraken, Moomoo, Public, Robinhood, Tastytrade, TradeStation, TradeStation Paper, Webull
Parameters
refreshbooleanWhen true, requests the freshest available brokerage data. Real-time refresh requires a Pro plan and has a 1 minute per-account cooldown. Omit or false to return the last synced data.
get_holdings
Get holdings for a brokerage account. Use refresh=true to request fresh data when eligible with a Pro plan; otherwise cached daily data is returned.
Parameters
account_id*number | stringID of the brokerage account to inspect, from get_accounts.
refreshbooleanWhen true, requests the freshest available brokerage data. Real-time refresh requires a Pro plan and has a 1 minute per-account cooldown. Omit or false to return the last synced data.
get_trades
Get the user's recent trades with cursor pagination. Optionally pass account_id to return only one account's trades. Use refresh=true to request fresh brokerage sync when eligible with a Pro plan; otherwise existing synced trades are returned. Failed trades can include an error code and a readable error message.
Parameters
limitintegerNumber of trades to return per page. Omit for 12.
cursornumber | stringCursor from a previous get_trades response. Pass next_cursor to continue paginating older trades.
account_idnumber | stringOnly return trades for this brokerage account. Omit for every account.
statusstringOnly return trades in this status group. Omit or pass all for every status.
allopendraftscompletedfailedrefreshbooleanWhen true, requests the freshest available brokerage data. Real-time refresh requires a Pro plan and has a 1 minute per-account cooldown. Omit or false to return the last synced data.
search_assets
Gets info on a stock, crypto, or futures product by ticker symbol or name. Returns latest price and metadata.
Futures symbols start with a slash, such as /ES. Search returns futures product metadata. Use get_future_contracts for contract months and quotes from an eligible brokerage account.
Examples
| Example | Parameters |
|---|---|
| Look up Tesla | {"query": "TSLA"} |
| Look up Bitcoin | {"query": "BTC"} |
| Look up E-mini S&P 500 futures | {"query": "/ES"} |
Parameters
query*stringThe ticker symbol or name of the asset