Skip to main content
The Decibel MCP server exposes 25 tools. Each tool accepts a JSON input validated with Zod schemas and returns JSON results.

Trading tools

place_limit_order

Place a limit order on Decibel DEX. Returns order ID and transaction hash on success.

place_market_order

Place a market order. Executes immediately at current price with slippage tolerance.

place_stop_limit_order

Place a stop limit order. Triggers when the market reaches the stop price, then posts as a limit order at the specified price.

place_stop_market_order

Place a stop market order. Triggers when the market reaches the stop price, then executes immediately with slippage tolerance.

place_twap_order

Place a TWAP (Time-Weighted Average Price) order. Splits execution across a duration at regular intervals.

Order management tools

close_position

Close an open position. Places a reduce-only market order in the opposite direction. Supports partial closes.

cancel_order

Cancel an open order by order ID.

cancel_all_orders

Cancel all open orders. Optionally filter by market.

cancel_twap_order

Cancel an active TWAP order by order ID.

place_tp_sl

Set take-profit and/or stop-loss for an existing position. Omit size fields to apply to the full position.

cancel_tp_sl

Cancel a TP/SL order for a position.

Account query tools

get_positions

Get all open positions for the account. No parameters required.

get_orders

Get all open orders for the account. No parameters required.

get_balances

Get account balances including wallet USDC, trading account value, and margin info. No parameters required.

get_active_twaps

Get all active TWAP orders for the account. No parameters required.

get_trade_history

Get recent trade fill history.

get_order_history

Get order history for the account (all states including filled, cancelled, etc.).

get_twap_history

Get TWAP order history (completed and cancelled TWAPs).

get_funding_history

Get funding rate payment history.

get_tp_sl

Get all TP/SL orders for a market position, including position-level and fixed-size TP/SL orders.

Market data tools

get_markets

List all available markets on Decibel DEX with their configurations. No parameters required.

get_price

Get current price, funding rate, and open interest for a market.

get_orderbook

Get the order book (bids and asks) for a market.

Configuration tools

set_leverage

Set leverage for a market.

set_margin_type

Switch margin type for a market between cross and isolated. Preserves current leverage.