Coinbase Agents MCP
coinbase_agents_mcpCoinbase Agents MCP lets authorized agents inspect portfolios, accounts, products, fees, orders, fills, and market data, and perform permitted conversions, trades, transfers, portfolio changes, and x402 payments.
Acciones disponibles (29)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Coinbase balanceCOINBASE_AGENTS_MCP_COINBASE_BALANCEAcciónReturns account balances for exactly one portfolio. If portfolio_id is omitted, only the default portfolio is returned. Results are not aggregated across portfolios; use coinbase_portfolios_list and query each portfolio for a complete multi-portfolio view. The response portfolio_id identifies the effective portfolio queried. Balances show available funds and amounts on hold; available_balance excludes funds held by open orders. Use before trading or transferring to confirm available funds. (4 fields, 0 required)
COINBASE_AGENTS_MCP_COINBASE_BALANCEAcciónReturns account balances for exactly one portfolio. If portfolio_id is omitted, only the default portfolio is returned. Results are not aggregated across portfolios; use coinbase_portfolios_list and query each portfolio for a complete multi-portfolio view. The response portfolio_id identifies the effective portfolio queried. Balances show available funds and amounts on hold; available_balance excludes funds held by open orders. Use before trading or transferring to confirm available funds. (4 fields, 0 required)
Parámetros de entrada
limitintegerResults per page
cursorstringPagination cursor
show_zerobooleanInclude zero-balance accounts (default false)
portfolio_idstringUUID of the single portfolio to query. Omit to query only the default portfolio.
Parámetros de salida
sizeintegercursorstringaccountsobject[]has_nextbooleanportfolio_idstringObligatorioUUID of the single portfolio whose accounts and pagination metadata are returned; this response is not aggregated across portfolios.
Coinbase convert executeCOINBASE_AGENTS_MCP_COINBASE_CONVERT_EXECUTEAcciónExecutes a previously quoted conversion using the quote_id from convert_quote. This moves funds at the quoted rate — get a fresh quote first since quotes expire. The from/to currencies must match the original quote. (3 fields, 3 required)
COINBASE_AGENTS_MCP_COINBASE_CONVERT_EXECUTEAcciónExecutes a previously quoted conversion using the quote_id from convert_quote. This moves funds at the quoted rate — get a fresh quote first since quotes expire. The from/to currencies must match the original quote. (3 fields, 3 required)
Parámetros de entrada
tostringObligatorioTarget currency
fromstringObligatorioSource currency
quote_idstringObligatorioQuote ID from convert quote response
Parámetros de salida
tradeobject
Coinbase convert getCOINBASE_AGENTS_MCP_COINBASE_CONVERT_GETAcciónCheck status of a conversion by quote ID. (3 fields, 3 required)
COINBASE_AGENTS_MCP_COINBASE_CONVERT_GETAcciónCheck status of a conversion by quote ID. (3 fields, 3 required)
Parámetros de entrada
tostringObligatorioTarget currency
fromstringObligatorioSource currency
quote_idstringObligatorioQuote ID
Parámetros de salida
idstringstatusstringexchange_rateobjectsource_currencystringtarget_currencystring
Coinbase convert quoteCOINBASE_AGENTS_MCP_COINBASE_CONVERT_QUOTEAcciónQuotes stablecoin↔fiat and stablecoin↔stablecoin conversions, returning rate, fees, and a quote ID. It does not support BTC, ETH, or other non-stablecoin assets; use an order to trade those assets. Pass the ID to convert_execute promptly because quotes expire. (3 fields, 3 required)
COINBASE_AGENTS_MCP_COINBASE_CONVERT_QUOTEAcciónQuotes stablecoin↔fiat and stablecoin↔stablecoin conversions, returning rate, fees, and a quote ID. It does not support BTC, ETH, or other non-stablecoin assets; use an order to trade those assets. Pass the ID to convert_execute promptly because quotes expire. (3 fields, 3 required)
Parámetros de entrada
tostringObligatorioTarget currency
fromstringObligatorioSource currency
amountstringObligatorioAmount to convert
Parámetros de salida
tradeobject
Coinbase feesCOINBASE_AGENTS_MCP_COINBASE_FEESAcciónFee tier, maker/taker rates, and 30-day volume. (1 field, 0 required)
COINBASE_AGENTS_MCP_COINBASE_FEESAcciónFee tier, maker/taker rates, and 30-day volume. (1 field, 0 required)
Parámetros de entrada
product_typestringenumFUTURE = CFM dated futures. Trading futures requires separate approval on the account beyond spot — if a futures order is rejected for eligibility, or the user asks how to get access, point them to https://help.coinbase.com/en/coinbase/trading-and-funding/derivatives/futures-intro to apply.
SPOTFUTUREEQUITY
Parámetros de salida
fee_tierobjectObligatoriototal_feesnumberObligatorioTotal fees (USD)
margin_rateobjectMargin rate (FUTURE only)
total_balancestringTotal balance (USD)
coinbase_pro_feesnumbercoinbase_pro_volumenumberadvanced_trade_only_feesnumberAdvanced Trade fees (USD)
has_cost_plus_commissionbooleanadvanced_trade_only_volumenumberAdvanced Trade volume (USD)
Coinbase orders cancelCOINBASE_AGENTS_MCP_COINBASE_ORDERS_CANCELAcciónCancels one or more open orders by ID. Removes resting orders from the book so reserved funds are released; already-filled portions are unaffected. Returns per-order success so a partial batch can fail. (1 field, 1 required)
COINBASE_AGENTS_MCP_COINBASE_ORDERS_CANCELAcciónCancels one or more open orders by ID. Removes resting orders from the book so reserved funds are released; already-filled portions are unaffected. Returns per-order success so a partial batch can fail. (1 field, 1 required)
Parámetros de entrada
order_idsstring[]ObligatorioOrder IDs to cancel
Parámetros de salida
resultsobject[]
Coinbase orders close positionCOINBASE_AGENTS_MCP_COINBASE_ORDERS_CLOSE_POSITIONAcciónPlaces a market order to flatten an open position for a product, moving funds immediately. Omit size for a full close or set it for a partial close. Preview the equivalent order first if fee or slippage impact matters. (3 fields, 2 required)
COINBASE_AGENTS_MCP_COINBASE_ORDERS_CLOSE_POSITIONAcciónPlaces a market order to flatten an open position for a product, moving funds immediately. Omit size for a full close or set it for a partial close. Preview the equivalent order first if fee or slippage impact matters. (3 fields, 2 required)
Parámetros de entrada
sizestringPartial close size (omit for full close)
product_idstringObligatorioProduct to close
client_order_idstringObligatorioIdempotency key
Parámetros de salida
successbooleanWhether the closing order was accepted
order_idstringID of the market order placed to close the position
product_idstringProduct whose position was closed
Coinbase orders createCOINBASE_AGENTS_MCP_COINBASE_ORDERS_CREATEAcciónPlace a market, limit, stop_limit, bracket, twap, or scaled order, subject to venue eligibility. Equities: use market or limit. Spot brackets require SELL; for entry, use market/limit BUY with attached exits. Futures brackets support BUY/SELL. Bracket stops become aggressive limit exits; fills and loss limits are not guaranteed. TWAP requires base_size, start_time, end_time, and a positive limit_price; slice count is automatic. Use orders_preview for optional fee, fill, and execution-plan estimates. Set exactly one size: limit and market SELL convert quote_size to base_size; market BUY spends quote_size; stop_limit/bracket/twap/scaled require base_size. Attached exits require market/limit parents and activate as the parent fills, including partial fills. If a FUTURE order is rejected for account eligibility, direct the user to https://help.coinbase.com/en/coinbase/trading-and-funding/derivatives/futures-intro to apply. (24 fields, 3 required)
COINBASE_AGENTS_MCP_COINBASE_ORDERS_CREATEAcciónPlace a market, limit, stop_limit, bracket, twap, or scaled order, subject to venue eligibility. Equities: use market or limit. Spot brackets require SELL; for entry, use market/limit BUY with attached exits. Futures brackets support BUY/SELL. Bracket stops become aggressive limit exits; fills and loss limits are not guaranteed. TWAP requires base_size, start_time, end_time, and a positive limit_price; slice count is automatic. Use orders_preview for optional fee, fill, and execution-plan estimates. Set exactly one size: limit and market SELL convert quote_size to base_size; market BUY spends quote_size; stop_limit/bracket/twap/scaled require base_size. Attached exits require market/limit parents and activate as the parent fills, including partial fills. If a FUTURE order is rejected for account eligibility, direct the user to https://help.coinbase.com/en/coinbase/trading-and-funding/derivatives/futures-intro to apply. (24 fields, 3 required)
Parámetros de entrada
sidestringObligatorioenumBUY or SELL
BUYSELLtypestringObligatorioenummarket: current price. limit: specified price or better. stop_limit: stop triggers a limit order. bracket: take-profit limit and stop-triggered aggressive limit exit; fills and loss limits are not guaranteed; spot SELL or eligible futures BUY/SELL. twap: split base_size over start_time/end_time with a positive limit_price and automatic slice count; requires GTD. scaled: 2 to 20 limit child orders between positive min_price/max_price. Equities: use market/limit. Other types depend on venue eligibility.
marketlimitstop_limitbrackettwapscaledend_timestringdate-timeExpiry or execution end time (RFC 3339). Required for GTD and twap. The TWAP schedule may be adjusted.
base_sizestringBase currency amount (e.g. 0.001 BTC). Mutually exclusive with quote_size. Required for stop_limit, bracket, twap, and scaled. Max 15,000 USD notional.
max_pricestringHighest child limit price. Required for scaled. Must be positive and above min_price.
min_pricestringLowest child limit price. Required for scaled. Must be positive and below max_price.
post_onlybooleanPost-only limit order: rejects if it would take liquidity. true is rejected for non-limit types.
num_ordersintegerNumber of limit child orders, from 2 to 20. Required for scaled.
product_idstringObligatorioTrading pair (BASE-QUOTE, e.g. BTC-USD or BTC-USDC) for spot crypto, a dated-futures contract code for CFM. For equities, use TICKER-QUOTE (e.g. AAPL-USD or AAPL-USDC). If the user names a quote currency (e.g. "use my USDC"), use that pair — never default to USD instead. If they don't say, check the balance for this request's portfolio_id (or the default portfolio if omitted) and use whichever of USD/USDC they hold there; if both, prefer the USDC pair. If the resulting pair doesn't exist, tell the user rather than silently substituting a different one.
quote_sizestringQuote-currency amount (e.g. $100 USD). Mutually exclusive with base_size. Market BUYs spend this amount; limit and market SELL convert it to base_size. Not supported for stop_limit, bracket, twap, or scaled — use base_size for those. Max 15,000 USD notional.
start_timestringdate-timeRequested execution start (RFC 3339). Required for twap. Slice count is automatic.
stop_pricestringStop trigger for stop_limit. For bracket, required positive decimal: above limit_price for futures BUY, below for SELL. Bracket stops become aggressive limit exits; no guaranteed fill or loss cap.
limit_pricestringRequired limit price for limit/stop_limit/bracket/twap. Bracket take-profit and TWAP execution price ceiling/floor must be strictly positive decimals.
reduce_onlybooleanRestrict the order to reducing existing exposure. Supported for INTX perpetuals; US dated futures, spot, and equities may reject it. Not supported for scaled.
portfolio_idstringThe optional UUID of a portfolio containing accounts with which to trade. Defaults to the default portfolio when no portfolio_id is provided.
time_in_forcestringenumGTC=good til cancelled. IOC=immediate or cancel. FOK=fill or kill. GTD=good til date; requires end_time. stop_limit, bracket, and scaled support GTC/GTD. twap requires GTD. Extended-hours equity orders require GTD.
GTCIOCFOKGTDstop_directionstringenumstop_limit only. Bracket direction is implied by side.
updownclient_order_idstringIdempotency key (auto-generated if omitted)
equity_order_datestringdateEquity trade date (YYYY-MM-DD). Ignored for crypto and futures.
size_distributionstringenumScaled size distribution. Defaults to an even split across child orders.
INCREASINGDECREASINGEVENLY_SPLITprice_distributionstringenumScaled price spacing. Defaults to FLAT (evenly spaced prices).
FLATLINEAR_INCREASINGLINEAR_DECREASINGequity_trading_sessionstringenumEquity trading session. Ignored for crypto and futures.
NORMALPRE_MARKETAFTER_HOURSOVERNIGHTMULTI_SESSIONattached_stop_loss_pricestringPositive decimal stop trigger, activated as a market/limit parent fills (including partial fills). Becomes an aggressive limit exit, not a guaranteed fill or loss cap. May combine with attached_take_profit_price. Spot: BUY parent only. Futures: BUY/SELL subject to venue eligibility. Not equities.
attached_take_profit_pricestringPositive decimal take-profit limit exit, activated as a market/limit parent fills (including partial fills). May combine with attached_stop_loss_price. Spot: BUY parent only. Futures: BUY/SELL subject to venue eligibility. Not equities. No guaranteed fill.
Parámetros de salida
sidestringorder_idstringproduct_idstringclient_order_idstring
Coinbase orders editCOINBASE_AGENTS_MCP_COINBASE_ORDERS_EDITAcciónAtomically update an open order's price or size without cancelling. Omit attached fields to keep existing exits. Attach or change exits only on eligible unfilled limit orders: spot BUY or futures BUY/SELL, not equities. Exits activate as the parent fills, including partial fills. Stops become aggressive limit exits; fills and loss limits are not guaranteed. Attached updates replace both legs: send attached_take_profit_price and attached_stop_loss_price to keep both, even when changing one. Read orders_get first: attached_order_configuration.trigger_bracket_gtc.limit_price maps to attached_take_profit_price; stop_trigger_price maps to attached_stop_loss_price. cancel_attached_order removes both legs, but may be rejected after an exit activates. (6 fields, 1 required)
COINBASE_AGENTS_MCP_COINBASE_ORDERS_EDITAcciónAtomically update an open order's price or size without cancelling. Omit attached fields to keep existing exits. Attach or change exits only on eligible unfilled limit orders: spot BUY or futures BUY/SELL, not equities. Exits activate as the parent fills, including partial fills. Stops become aggressive limit exits; fills and loss limits are not guaranteed. Attached updates replace both legs: send attached_take_profit_price and attached_stop_loss_price to keep both, even when changing one. Read orders_get first: attached_order_configuration.trigger_bracket_gtc.limit_price maps to attached_take_profit_price; stop_trigger_price maps to attached_stop_loss_price. cancel_attached_order removes both legs, but may be rejected after an exit activates. (6 fields, 1 required)
Parámetros de entrada
order_idstringObligatorioOrder to edit
base_sizestringNew base size
limit_pricestringNew limit price
cancel_attached_orderbooleanRemove both attached exit legs while keeping the parent order. Cannot be combined with attached_take_profit_price or attached_stop_loss_price. May be rejected after an exit activates.
attached_stop_loss_pricestringPositive stop trigger for an eligible unfilled limit order. Send both attached prices to keep both legs. Triggers an aggressive limit exit; fills and loss limits are not guaranteed. Spot BUY or eligible futures BUY/SELL; not equities.
attached_take_profit_pricestringPositive take-profit limit price for an eligible unfilled limit order. Send both attached prices to keep both legs. Spot BUY or eligible futures BUY/SELL; not equities.
Parámetros de salida
statusstringorder_idstring
Coinbase orders edit previewCOINBASE_AGENTS_MCP_COINBASE_ORDERS_EDIT_PREVIEWAcciónEstimate the result, fees, fill price, and slippage of changing an open order's size or limit price without editing it. Hosted OAuth requires mcp:orders:create. CDP API-key callers may use rat#view where supported. Unsupported replacements return errors. (3 fields, 1 required)
COINBASE_AGENTS_MCP_COINBASE_ORDERS_EDIT_PREVIEWAcciónEstimate the result, fees, fill price, and slippage of changing an open order's size or limit price without editing it. Hosted OAuth requires mcp:orders:create. CDP API-key callers may use rat#view where supported. Unsupported replacements return errors. (3 fields, 1 required)
Parámetros de entrada
order_idstringObligatorioOpen order UUID to preview editing
base_sizestringPositive decimal replacement base size
limit_pricestringPositive decimal replacement limit price
Parámetros de salida
best_askstringbest_bidstringslippagestringbase_sizestringquote_sizestringorder_totalstringcommission_totalstringpnl_configurationobjectorder_margin_totalstringaverage_filled_pricestringcommission_detail_totalobject
Coinbase orders fillsCOINBASE_AGENTS_MCP_COINBASE_ORDERS_FILLSAcciónLists individual trade executions with commissions and maker/taker indicator, filterable by product, order, side, and time range. Use this to reconcile actual fill prices and fees paid. For EQUITY fills, product_id is TICKER-QUOTE (e.g. AAPL-USD), the same form orders_create expects. (8 fields, 0 required)
COINBASE_AGENTS_MCP_COINBASE_ORDERS_FILLSAcciónLists individual trade executions with commissions and maker/taker indicator, filterable by product, order, side, and time range. Use this to reconcile actual fill prices and fees paid. For EQUITY fills, product_id is TICKER-QUOTE (e.g. AAPL-USD), the same form orders_create expects. (8 fields, 0 required)
Parámetros de entrada
endstringdate-timeEnd time (RFC 3339 with timezone, e.g. 2024-12-31T23:59:59Z)
sidestringenumBUY or SELL
BUYSELLlimitintegerResults per page
startstringdate-timeStart time (RFC 3339 with timezone, e.g. 2024-01-01T00:00:00Z)
cursorstringPagination cursor
order_idsstring[]Filter by order ID
product_idsstringFilter by product (e.g. BTC-USD)
portfolio_idstringScope to a specific portfolio (defaults to all portfolios the caller can access)
Parámetros de salida
fillsobject[]cursorstring
Coinbase orders getCOINBASE_AGENTS_MCP_COINBASE_ORDERS_GETAcciónRetrieves the full status and fill details of a single order by ID. Use after creating an order to confirm execution, and before orders_edit to see the current attached take-profit/stop-loss (attached_order_id / attached_order_configuration). For EQUITY orders, product_id is TICKER-QUOTE (e.g. AAPL-USD), the same form orders_create expects. (1 field, 1 required)
COINBASE_AGENTS_MCP_COINBASE_ORDERS_GETAcciónRetrieves the full status and fill details of a single order by ID. Use after creating an order to confirm execution, and before orders_edit to see the current attached take-profit/stop-loss (attached_order_id / attached_order_configuration). For EQUITY orders, product_id is TICKER-QUOTE (e.g. AAPL-USD), the same form orders_create expects. (1 field, 1 required)
Parámetros de entrada
order_idstringObligatorioOrder ID
Parámetros de salida
sidestringObligatorioenumBUY or SELL
BUYSELLstatusstringObligatorioorder_idstringObligatorioproduct_idstringObligatorioTrading pair. EQUITY orders use TICKER-QUOTE (e.g. AAPL-USD), as in orders_create.
total_feesstringfilled_sizestringcreated_timestringlast_fill_timestringnumber_of_fillsstringattached_order_idstringThe ID of this order's attached bracket exit, if one is set.
order_configurationobjectaverage_filled_pricestringcompletion_percentagestringtotal_value_after_feesstringattached_order_configurationobjectAttached exits, if set. trigger_bracket_gtc.limit_price is the take-profit limit; stop_trigger_price is the stop-loss trigger.
Coinbase orders listCOINBASE_AGENTS_MCP_COINBASE_ORDERS_LISTAcciónLists orders with optional filters by status, product, side, and time range. Use status=OPEN to find resting orders that can be edited or cancelled. For EQUITY orders, product_id is TICKER-QUOTE (e.g. AAPL-USD), the same form orders_create expects. (9 fields, 0 required)
COINBASE_AGENTS_MCP_COINBASE_ORDERS_LISTAcciónLists orders with optional filters by status, product, side, and time range. Use status=OPEN to find resting orders that can be edited or cancelled. For EQUITY orders, product_id is TICKER-QUOTE (e.g. AAPL-USD), the same form orders_create expects. (9 fields, 0 required)
Parámetros de entrada
endstringdate-timeEnd date (RFC 3339 with timezone, e.g. 2024-12-31T23:59:59Z)
sidestringenumBUY or SELL
BUYSELLlimitintegerResults per page
startstringdate-timeStart date (RFC 3339 with timezone, e.g. 2024-01-01T00:00:00Z)
cursorstringPagination cursor
statusstringFilter by status
product_idsstringFilter by product (e.g. BTC-USD). Comma-separated for multiple.
portfolio_idstringScope to a specific portfolio (defaults to all portfolios the caller can access)
product_typestringenumFUTURE = CFM dated futures. Trading futures requires separate approval on the account beyond spot — if a futures order is rejected for eligibility, or the user asks how to get access, point them to https://help.coinbase.com/en/coinbase/trading-and-funding/derivatives/futures-intro to apply.
SPOTFUTUREEQUITY
Parámetros de salida
cursorstringObligatorioordersobject[]Obligatoriohas_nextbooleanObligatorio
Coinbase orders previewCOINBASE_AGENTS_MCP_COINBASE_ORDERS_PREVIEWAcciónEstimate fees, fill price, slippage, and execution plans without placing an order. Optional before orders_create; the same order-type and asset-class restrictions apply. Futures previews also estimate margin, leverage, and liquidation impact: compare current and projected margin ratios and liquidation buffers. If a FUTURE preview is rejected for account eligibility, direct the user to https://help.coinbase.com/en/coinbase/trading-and-funding/derivatives/futures-intro to apply. (23 fields, 3 required)
COINBASE_AGENTS_MCP_COINBASE_ORDERS_PREVIEWAcciónEstimate fees, fill price, slippage, and execution plans without placing an order. Optional before orders_create; the same order-type and asset-class restrictions apply. Futures previews also estimate margin, leverage, and liquidation impact: compare current and projected margin ratios and liquidation buffers. If a FUTURE preview is rejected for account eligibility, direct the user to https://help.coinbase.com/en/coinbase/trading-and-funding/derivatives/futures-intro to apply. (23 fields, 3 required)
Parámetros de entrada
sidestringObligatorioenumBUY or SELL
BUYSELLtypestringObligatorioenummarket: current price. limit: specified price or better. stop_limit: stop triggers a limit order. bracket: take-profit limit and stop-triggered aggressive limit exit; fills and loss limits are not guaranteed; spot SELL or eligible futures BUY/SELL. twap: split base_size over start_time/end_time with a positive limit_price and automatic slice count; requires GTD. scaled: 2 to 20 limit child orders between positive min_price/max_price. Equities: use market/limit. Other types depend on venue eligibility.
marketlimitstop_limitbrackettwapscaledend_timestringdate-timeExpiry or execution end time (RFC 3339). Required for GTD and twap. The TWAP schedule may be adjusted.
base_sizestringBase currency amount (e.g. 0.001 BTC). Mutually exclusive with quote_size. Required for stop_limit, bracket, twap, and scaled.
max_pricestringHighest child limit price. Required for scaled. Must be positive and above min_price.
min_pricestringLowest child limit price. Required for scaled. Must be positive and below max_price.
post_onlybooleanPost-only limit order: rejects if it would take liquidity. true is rejected for non-limit types.
num_ordersintegerNumber of limit child orders, from 2 to 20. Required for scaled.
product_idstringObligatorioTrading pair (BASE-QUOTE, e.g. BTC-USD or BTC-USDC) for spot crypto, a dated-futures contract code for CFM. For equities, use TICKER-QUOTE (e.g. AAPL-USD or AAPL-USDC). If the user names a quote currency (e.g. "use my USDC"), use that pair — never default to USD instead. If they don't say, check the balance for this request's portfolio_id (or the default portfolio if omitted) and use whichever of USD/USDC they hold there; if both, prefer the USDC pair. If the resulting pair doesn't exist, tell the user rather than silently substituting a different one.
quote_sizestringQuote currency amount (e.g. spend $100 USD). Mutually exclusive with base_size. Not supported for stop_limit, bracket, twap, or scaled — use base_size for those.
start_timestringdate-timeRequested execution start (RFC 3339). Required for twap. Slice count is automatic.
stop_pricestringStop trigger for stop_limit. For bracket, required positive decimal: above limit_price for futures BUY, below for SELL. Bracket stops become aggressive limit exits; no guaranteed fill or loss cap.
limit_pricestringRequired limit price for limit/stop_limit/bracket/twap. Bracket take-profit and TWAP execution price ceiling/floor must be strictly positive decimals.
reduce_onlybooleanRestrict the order to reducing existing exposure. Supported for INTX perpetuals; US dated futures, spot, and equities may reject it. Not supported for scaled.
portfolio_idstringThe optional UUID of a portfolio containing accounts with which to trade. Defaults to the default portfolio when no portfolio_id is provided.
time_in_forcestringenumGTC=good til cancelled. IOC=immediate or cancel. FOK=fill or kill. GTD=good til date; requires end_time. stop_limit, bracket, and scaled support GTC/GTD. twap requires GTD. Extended-hours equity orders require GTD.
GTCIOCFOKGTDstop_directionstringenumstop_limit only. Bracket direction is implied by side.
updownequity_order_datestringdateEquity trade date (YYYY-MM-DD). Ignored for crypto and futures.
size_distributionstringenumScaled size distribution. Defaults to an even split across child orders.
INCREASINGDECREASINGEVENLY_SPLITprice_distributionstringenumScaled price spacing. Defaults to FLAT (evenly spaced prices).
FLATLINEAR_INCREASINGLINEAR_DECREASINGequity_trading_sessionstringenumEquity trading session. Ignored for crypto and futures.
NORMALPRE_MARKETAFTER_HOURSOVERNIGHTMULTI_SESSIONattached_stop_loss_pricestringPositive decimal stop trigger, activated as a market/limit parent fills (including partial fills). Becomes an aggressive limit exit, not a guaranteed fill or loss cap. May combine with attached_take_profit_price. Spot: BUY parent only. Futures: BUY/SELL subject to venue eligibility. Not equities.
attached_take_profit_pricestringPositive decimal take-profit limit exit, activated as a market/limit parent fills (including partial fills). May combine with attached_stop_loss_price. Spot: BUY parent only. Futures: BUY/SELL subject to venue eligibility. Not equities. No guaranteed fill.
Parámetros de salida
warningstring[]Preview warning codes.
best_askstringbest_bidstringleveragestringFutures orders only. Effective leverage for this order's side.
slippagestringbase_sizestringquote_sizestringorder_totalstringmax_leveragestringFutures/perpetual orders only. Maximum leverage allowed for this product.
long_leveragestringFutures/perpetual orders only.
short_leveragestringFutures/perpetual orders only.
scaled_metadataobjectEstimated child-order distribution. Check each child's errors and warnings before placing.
commission_totalstringmargin_ratio_dataobjectFutures orders only. Account-level margin-ratio impact of placing this order — compare the two to see how much closer to margin call/liquidation this order moves the account.
order_margin_totalstringFutures orders only. Margin required to place this order.
twap_bucket_metadataobjectEstimated TWAP slices. Slice count is automatic; the schedule may change during execution.
available_buying_powerstringFutures/perpetual orders only.
position_notional_limitstringFutures/perpetual orders only.
est_average_filled_pricestringcurrent_liquidation_bufferstringFutures orders only. Liquidation buffer before this order, for comparison against projected_liquidation_buffer.
predicted_liquidation_pricestringPredicted liquidation price for CFM dated futures. Check alongside current position risk from portfolios_get before confirming.
projected_liquidation_bufferstringFutures orders only. Liquidation buffer if this order is placed.
Coinbase portfolios createCOINBASE_AGENTS_MCP_COINBASE_PORTFOLIOS_CREATEAcciónCreates a new named portfolio for segregating funds and positions. Does not move any funds; use transfer afterward to fund it. (1 field, 1 required)
COINBASE_AGENTS_MCP_COINBASE_PORTFOLIOS_CREATEAcciónCreates a new named portfolio for segregating funds and positions. Does not move any funds; use transfer afterward to fund it. (1 field, 1 required)
Parámetros de entrada
namestringObligatorioPortfolio name
Parámetros de salida
namestringtypestringenumDEFAULT (the primary portfolio), CONSUMER (Coinbase app)
DEFAULTCONSUMERuuidstringdeletedboolean
Coinbase portfolios deleteCOINBASE_AGENTS_MCP_COINBASE_PORTFOLIOS_DELETEAcciónPermanently deletes a portfolio. The portfolio must be empty first — transfer out any remaining funds and close all positions before deleting. The DEFAULT portfolio cannot be deleted. (1 field, 1 required)
COINBASE_AGENTS_MCP_COINBASE_PORTFOLIOS_DELETEAcciónPermanently deletes a portfolio. The portfolio must be empty first — transfer out any remaining funds and close all positions before deleting. The DEFAULT portfolio cannot be deleted. (1 field, 1 required)
Parámetros de entrada
portfolio_idstringObligatorioPortfolio UUID
Parámetros de salida
Sin parámetros.
Coinbase portfolios editCOINBASE_AGENTS_MCP_COINBASE_PORTFOLIOS_EDITAcciónRenames an existing portfolio. Does not affect balances or positions. (2 fields, 1 required)
COINBASE_AGENTS_MCP_COINBASE_PORTFOLIOS_EDITAcciónRenames an existing portfolio. Does not affect balances or positions. (2 fields, 1 required)
Parámetros de entrada
namestringNew portfolio name
portfolio_idstringObligatorioPortfolio UUID
Parámetros de salida
namestringtypestringenumDEFAULT (the primary portfolio), CONSUMER (Coinbase app)
DEFAULTCONSUMERuuidstringdeletedboolean
Coinbase portfolios getCOINBASE_AGENTS_MCP_COINBASE_PORTFOLIOS_GETAcciónReturns portfolio metadata, balances, and positions. (2 fields, 1 required)
COINBASE_AGENTS_MCP_COINBASE_PORTFOLIOS_GETAcciónReturns portfolio metadata, balances, and positions. (2 fields, 1 required)
Parámetros de entrada
currencystringCurrency for balance denomination
portfolio_idstringObligatorioPortfolio UUID
Parámetros de salida
portfolioobjectspot_positionsobject[]equity_positionsobject[]futures_positionsobject[]portfolio_balancesobject
Coinbase portfolios listCOINBASE_AGENTS_MCP_COINBASE_PORTFOLIOS_LISTAcciónLists all portfolios on the account, including their UUIDs and types. Use this to find the portfolio_id needed for orders, transfers, and balance queries. (1 field, 0 required)
COINBASE_AGENTS_MCP_COINBASE_PORTFOLIOS_LISTAcciónLists all portfolios on the account, including their UUIDs and types. Use this to find the portfolio_id needed for orders, transfers, and balance queries. (1 field, 0 required)
Parámetros de entrada
portfolio_typestringenumDEFAULT (the primary portfolio), CONSUMER (Coinbase app)
DEFAULTCONSUMER
Parámetros de salida
portfoliosobject[]
Coinbase products best bid askCOINBASE_AGENTS_MCP_COINBASE_PRODUCTS_BEST_BID_ASKAcciónReturns best bid and ask for one or more products in a single call. Omit product_ids to return pricebooks for all products. Not currently available for equities. (1 field, 0 required)
COINBASE_AGENTS_MCP_COINBASE_PRODUCTS_BEST_BID_ASKAcciónReturns best bid and ask for one or more products in a single call. Omit product_ids to return pricebooks for all products. Not currently available for equities. (1 field, 0 required)
Parámetros de entrada
product_idsstring[]Product IDs (e.g. BTC-USD and ETH-USD). Omit to return all products.
Parámetros de salida
pricebooksobject[]
Coinbase products bookCOINBASE_AGENTS_MCP_COINBASE_PRODUCTS_BOOKAcciónReturns the current bid/ask order book for a product. Use to gauge available liquidity and likely slippage before sizing a market order. Not currently available for equities. (2 fields, 1 required)
COINBASE_AGENTS_MCP_COINBASE_PRODUCTS_BOOKAcciónReturns the current bid/ask order book for a product. Use to gauge available liquidity and likely slippage before sizing a market order. Not currently available for equities. (2 fields, 1 required)
Parámetros de entrada
limitintegerNumber of levels
product_idstringObligatorioProduct ID
Parámetros de salida
pricebookobject
Coinbase products candlesCOINBASE_AGENTS_MCP_COINBASE_PRODUCTS_CANDLESAcciónReturns historical OHLCV candles for a product at a chosen granularity and time range. Use for price history and technical analysis. Not currently available for equities. (5 fields, 1 required)
COINBASE_AGENTS_MCP_COINBASE_PRODUCTS_CANDLESAcciónReturns historical OHLCV candles for a product at a chosen granularity and time range. Use for price history and technical analysis. Not currently available for equities. (5 fields, 1 required)
Parámetros de entrada
endstringdate-timeEnd time (RFC 3339, e.g. 2024-01-01T00:00:00Z). Defaults to now.
limitintegerMax candles
startstringdate-timeStart time (RFC 3339, e.g. 2024-01-01T00:00:00Z). Defaults to 60 candles before end.
product_idstringObligatorioTrading pair (e.g. BTC-USD)
granularitystringenumCandle interval: 1m, 5m, 15m, 30m, 1h, 2h, 4h, 6h, 1d. Defaults to 1h.
1m5m15m30m1h2h4h6h1d
Parámetros de salida
candlesobject[]truncatedbooleanTrue when the requested time window was clamped (to the most-recent allowed span, or a future end pulled back to now); the returned candles cover a narrower window than requested.
Coinbase products getCOINBASE_AGENTS_MCP_COINBASE_PRODUCTS_GETAcciónViewing a product, including a FUTURE one, doesn't require any special account approval. Trading it is a separate matter — see the product_type field description. (1 field, 1 required)
COINBASE_AGENTS_MCP_COINBASE_PRODUCTS_GETAcciónViewing a product, including a FUTURE one, doesn't require any special account approval. Trading it is a separate matter — see the product_type field description. (1 field, 1 required)
Parámetros de entrada
product_idstringObligatorioProduct ID (e.g. BTC-USD)
Parámetros de salida
pricestringstatusstringproduct_idstringTrading pair. EQUITY products use TICKER-QUOTE (e.g. AAPL-USD); see base_currency_id/quote_currency_id for the parts.
volume_24hstringproduct_typestringFUTURE = CFM dated futures, which requires separate account approval beyond spot. See https://help.coinbase.com/en/coinbase/trading-and-funding/derivatives/futures-intro to apply.
base_max_sizestringbase_min_sizestringbase_incrementstringquote_max_sizestringquote_min_sizestringquote_incrementstringbase_currency_idstringquote_currency_idstringfuture_product_detailsobjectFUTURE products only (CFM dated futures).
fcm_trading_session_detailsobjectFUTURE products only. Current trading-session state for this contract.
price_percentage_change_24hstring
Coinbase products listCOINBASE_AGENTS_MCP_COINBASE_PRODUCTS_LISTAcciónViewing products, including FUTURE ones, doesn't require any special account approval. Trading them is a separate matter — see the product_type field description. (5 fields, 0 required)
COINBASE_AGENTS_MCP_COINBASE_PRODUCTS_LISTAcciónViewing products, including FUTURE ones, doesn't require any special account approval. Trading them is a separate matter — see the product_type field description. (5 fields, 0 required)
Parámetros de entrada
limitintegerResults per page
cursorstringPagination cursor
symbolstringFilter products by symbol, matches base or quote side (e.g. USD, BTC). For a specific product use products_get (e.g. BTC-USD). Pagination ignored when set.
product_idsstringComma-separated product IDs
product_typestringenumFUTURE = CFM dated futures. Trading futures requires separate approval on the account beyond spot — if a futures order is rejected for eligibility, or the user asks how to get access, point them to https://help.coinbase.com/en/coinbase/trading-and-funding/derivatives/futures-intro to apply.
SPOTFUTUREEQUITY
Parámetros de salida
cursorstringhas_nextbooleanproductsobject[]num_productsinteger
Coinbase products tickerCOINBASE_AGENTS_MCP_COINBASE_PRODUCTS_TICKERAcciónReturns recent trade prints plus the current best bid/ask for a product. Use for a quick spot-price snapshot before previewing or placing an order. Not currently available for equities. (2 fields, 1 required)
COINBASE_AGENTS_MCP_COINBASE_PRODUCTS_TICKERAcciónReturns recent trade prints plus the current best bid/ask for a product. Use for a quick spot-price snapshot before previewing or placing an order. Not currently available for equities. (2 fields, 1 required)
Parámetros de entrada
limitintegerNumber of trades. Defaults to 100.
product_idstringObligatorioTrading pair (e.g. BTC-USD)
Parámetros de salida
tradesobject[]best_askstringbest_bidstring
Coinbase transferCOINBASE_AGENTS_MCP_COINBASE_TRANSFERAcciónMoves funds of a single currency from one portfolio to another. This executes immediately and moves money — verify the source has sufficient available balance first. Both portfolio UUIDs come from portfolios_list. (4 fields, 4 required)
COINBASE_AGENTS_MCP_COINBASE_TRANSFERAcciónMoves funds of a single currency from one portfolio to another. This executes immediately and moves money — verify the source has sufficient available balance first. Both portfolio UUIDs come from portfolios_list. (4 fields, 4 required)
Parámetros de entrada
tostringObligatorioTarget portfolio UUID
fromstringObligatorioSource portfolio UUID
amountstringObligatorioAmount to transfer
currencystringObligatorioCurrency
Parámetros de salida
source_portfolio_uuidstringtarget_portfolio_uuidstring
Coinbase x402 fetchCOINBASE_AGENTS_MCP_COINBASE_X402_FETCHAcciónFetches a resource returned by x402_resources. On a 402 challenge, pays from the caller's custodial Base USDC via a pre-authorized hold, then retries with PAYMENT-SIGNATURE — no manual challenge handling. All currently supported x402 purchases through this connector use Base USDC, and max_amount uses its 6-decimal atomic units; for example, "50000" means "0.05 USDC". This tool accepts only resource URLs returned by x402_resources. max_amount is the spend control; when the user has requested the data or stated a budget, proceed in a single call rather than re-confirming. Protocol v2 only; v1 challenges are rejected. (6 fields, 1 required)
COINBASE_AGENTS_MCP_COINBASE_X402_FETCHAcciónFetches a resource returned by x402_resources. On a 402 challenge, pays from the caller's custodial Base USDC via a pre-authorized hold, then retries with PAYMENT-SIGNATURE — no manual challenge handling. All currently supported x402 purchases through this connector use Base USDC, and max_amount uses its 6-decimal atomic units; for example, "50000" means "0.05 USDC". This tool accepts only resource URLs returned by x402_resources. max_amount is the spend control; when the user has requested the data or stated a budget, proceed in a single call rather than re-confirming. Protocol v2 only; v1 challenges are rejected. (6 fields, 1 required)
Parámetros de entrada
inputobjectRequest parameters, exactly as described by the resource's inputSchema from coinbase_x402_resources — pass those properties flat, at the top level. The tool routes them to the query string or the request body per the resource's HTTP method; you do not construct the HTTP envelope. Validated strictly as a closed allowlist; unknown keys are rejected.
resourcestringObligatorioResource URL returned by coinbase_x402_resources, with any path parameters substituted. Any URL that does not match a catalog resource is rejected.
account_idstringOptional UUID of the USDC account to debit, within the chosen portfolio. Omit to use that portfolio's single USDC account; an error (not a guess) is returned when the portfolio has zero or multiple USDC accounts.
max_amountstringOptional caller-set spend cap in Base USDC's 6-decimal atomic units; for example, "50000" means "0.05 USDC". Defaults to the catalog advisory ceiling for the resource; when supplied the effective cap is min(max_amount, advisory ceiling). Never derived from the live 402 challenge.
portfolio_idstringOptional UUID of the consumer portfolio to pay from. Omit only when exactly one accessible non-deleted consumer portfolio is available and the caller has portfolio listing permission. If discovery is not authorized, provide portfolio_id explicitly. For OAuth, ask the user to reconnect and select "View your trading portfolios" in Coinbase consent. For an API key, ask the user to edit it, open Advanced Settings, and enable "View (read-only)" for every portfolio the agent needs. If multiple consumer portfolios are available, call coinbase_portfolios_list, select the funding portfolio with the user, and retry with that portfolio_id.
idempotency_keystringOptional caller-supplied idempotency key for the payment; must be a UUID. Omit it on a first attempt — one is generated and returned to you. Reuse the SAME key when retrying an outcome-unknown fetch so a duplicate hold is not placed. If the tool reports a terminal rejection, do not reuse that key; start a new payment attempt with a new key.
Parámetros de salida
dataobjectObligatorioThe resource's JSON response body.
paidbooleanObligatorioTrue when a payment was placed to obtain this response; false when the resource returned its data without a 402 challenge.
expires_atstringRFC 3339 time the payment authorization expires. Present only when paid is true.
payment_idstringIdentifier of the placed hold, for reconciliation. Present only when paid is true.
idempotency_keystringThe idempotency key generated for this payment. Present only when paid is true AND you omitted idempotency_key on the request; never echoes a key you supplied yourself.
Coinbase x402 payCOINBASE_AGENTS_MCP_COINBASE_X402_PAYAcciónTurns an x402 PaymentRequirements challenge into a ready-to-send payment header by placing a pre-authorized hold on the caller's Base USDC balance (EIP-3009 exact scheme, v0). All currently supported x402 purchases through this connector use Base USDC, and amount and max_amount use its 6-decimal atomic units; for example, "50000" means "0.05 USDC". Attach the returned header as X-PAYMENT for v1 or PAYMENT-SIGNATURE for v2. This authorizes moving funds up to max_amount — pass the smallest amount that satisfies the requirement. Funds-touching and gated internal-only behind a default-off feature flag. (12 fields, 7 required)
COINBASE_AGENTS_MCP_COINBASE_X402_PAYAcciónTurns an x402 PaymentRequirements challenge into a ready-to-send payment header by placing a pre-authorized hold on the caller's Base USDC balance (EIP-3009 exact scheme, v0). All currently supported x402 purchases through this connector use Base USDC, and amount and max_amount use its 6-decimal atomic units; for example, "50000" means "0.05 USDC". Attach the returned header as X-PAYMENT for v1 or PAYMENT-SIGNATURE for v2. This authorizes moving funds up to max_amount — pass the smallest amount that satisfies the requirement. Funds-touching and gated internal-only behind a default-off feature flag. (12 fields, 7 required)
Parámetros de entrada
assetstringObligatorioUSDC asset contract address on the network (the x402 asset field).
extraobjectFull extra object from the resource's 402 PaymentRequirements. Required when x402_version is 2; name and version must match the Base USDC EIP-712 domain.
amountstringObligatorioThe amount the resource requires, in Base USDC's 6-decimal atomic units; for example, "50000" means "0.05 USDC". Decimal string; never truncated.
pay_tostringObligatorioRecipient address the payment authorizes (the x402 payTo field).
schemestringObligatoriox402 payment scheme. Only "exact" is supported in v0.
networkstringObligatoriox402 network as a CAIP-2 chain id. Only "eip155:8453" (Base mainnet) is supported in v0.
account_idstringOptional UUID of the USDC account to debit, within the chosen portfolio. Omit to use that portfolio's single USDC account; the tool returns an error (it does NOT guess) when the portfolio has zero or multiple USDC accounts.
max_amountstringObligatorioCaller-set spend cap in Base USDC's 6-decimal atomic units; for example, "50000" means "0.05 USDC". The hold is rejected if amount exceeds this. Decimal string.
portfolio_idstringOptional UUID of the consumer portfolio to pay from. Omit only when exactly one accessible non-deleted consumer portfolio is available and the caller has portfolio listing permission. If discovery is not authorized, provide portfolio_id explicitly. For OAuth, ask the user to reconnect and select "View your trading portfolios" in Coinbase consent. For an API key, ask the user to edit it, open Advanced Settings, and enable "View (read-only)" for every portfolio the agent needs. If multiple consumer portfolios are available, call coinbase_portfolios_list, select the funding portfolio with the user, and retry with that portfolio_id.
x402_versionintegerx402 protocol version from the resource's 402 challenge. Pass the value the resource advertised. Optional; defaults to 1.
idempotency_keystringOptional caller-supplied idempotency key; must be a UUID. Omit it on a first attempt — one is generated and returned to you. Reuse the SAME key when retrying an outcome-unknown payment so a duplicate hold is not placed. If the tool reports a terminal rejection, do not reuse that key; start a new payment attempt with a new key.
max_timeout_secondsintegerObligatorioValidity window for the signed authorization, in seconds (the x402 maxTimeoutSeconds field). Must be between 1 and 300; the server caps how long the authorization stays valid. Pass a value no greater than the resource's advertised maxTimeoutSeconds (a shorter window is valid, and settlement is near-instant); requests above 300 are rejected.
Parámetros de salida
expires_atstringRFC 3339 time the authorization expires.
payment_idstringIdentifier of the placed hold for reconciliation.
payment_headerstringBase64 payment header: attach as X-PAYMENT for v1 or PAYMENT-SIGNATURE for v2.
idempotency_keystringThe effective idempotency key for this payment — the one you supplied, or the one generated for you when omitted. To retry an outcome-unknown payment safely (without placing a second hold), pass this value back as idempotency_key.
Coinbase x402 resourcesCOINBASE_AGENTS_MCP_COINBASE_X402_RESOURCESAcciónDiscover curated x402 resources: paid on-chain and market metrics, wallet and entity intelligence, and derivatives data. Discovery spends nothing. An optional keyword q filters the catalog; omit it to list all. Each result carries the resource URL, its advisory price, and its input and output schemas. All currently supported x402 purchases through this connector use Base USDC. accepts[].amount and coinbase_x402_fetch's max_amount use USDC's 6-decimal atomic units; for example, "50000" means "0.05 USDC". A result's inputSchema is coinbase_x402_fetch's input verbatim: pass those properties flat; do not build an HTTP envelope. The live 402 challenge sets the exact amount. (1 field, 0 required)
COINBASE_AGENTS_MCP_COINBASE_X402_RESOURCESAcciónDiscover curated x402 resources: paid on-chain and market metrics, wallet and entity intelligence, and derivatives data. Discovery spends nothing. An optional keyword q filters the catalog; omit it to list all. Each result carries the resource URL, its advisory price, and its input and output schemas. All currently supported x402 purchases through this connector use Base USDC. accepts[].amount and coinbase_x402_fetch's max_amount use USDC's 6-decimal atomic units; for example, "50000" means "0.05 USDC". A result's inputSchema is coinbase_x402_fetch's input verbatim: pass those properties flat; do not build an HTTP envelope. The live 402 challenge sets the exact amount. (1 field, 0 required)
Parámetros de entrada
qstringOptional keyword filter. Matched against each resource's description, provider name, and tags using case-insensitive token search. Omit to return the full catalog.
Parámetros de salida
resourcesobject[]Obligatorio