Skip to main content
Glama
agasavenue17

dreamDEX Perps MCP

by agasavenue17

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
WS_RPC_URLNoWebSocket RPC URL to use, for example when running behind a proxy with the bundled ws-bridge.
PRIVATE_KEYNoTestnet signing key. If unset, the server is read-only with no signing. In trading-key mode this should be a linked bot key.
OWNER_ADDRESSNoDreamDEX account address when using trading-key mode with a linked bot key. If set, write tools act on this account via placeOrderFor/cancelOrderFor.
TRADING_ENABLEDNoSet to true to allow write tools when PRIVATE_KEY is present. If unset, write tools refuse even with a key.
MAX_ORDER_NOTIONAL_USDNoHard cap for every order's USD notional value. Orders above this are rejected in code.50

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_marketsA

List all dreamDEX perpetual markets live on the Somnia Hideki testnet, with pool addresses, margin requirements and order-size rules.

get_marketA

Get one perp market by base symbol (e.g. BTC, ETH, SOL): pool, tick/lot sizes, min quantity, margin and leverage.

get_accountB

Full perp account snapshot for an address (defaults to the server wallet): open orders, recent fills, open positions, margin account and paper-USDso voucher eligibility.

claim_voucherA

Claim the one-time 1,000 paper USDso perps credit for the server wallet (testnet play money). Only works if the wallet holds no perp positions or orders.

place_orderA

Place a perp order on dreamDEX testnet for the server wallet. Guarded: trading must be enabled, notional is capped by MAX_ORDER_NOTIONAL_USD, quantity/price are rounded to the market's lot/tick, and the order is pre-checked with getMaxPerpOrderSize before sending.

cancel_orderA

Cancel a resting perp order by its order id (see get_account for open orders).

close_positionA

Close the server wallet's entire position in one market with an opposite-side IOC market order sized exactly to the open position.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4/5.0

Scored across 7 tools

Disambiguation5/5

Each tool targets a clearly distinct action: market listing vs single-market lookup, account snapshot, voucher claim, and three unmistakable order operations (place, cancel, close). There is no ambiguous overlap between any pair.

Naming Consistency5/5

All seven tools follow a strict verb_noun snake_case convention (list_markets, get_market, get_account, claim_voucher, place_order, cancel_order, close_position). The pattern is uniform and predictable throughout.

Tool Count5/5

Seven tools is well-scoped for a perps trading server, covering market data, account state, funding, and core order actions without bloat. Every tool earns its place with a distinct role.

Completeness4/5

Core lifecycle is covered: market discovery, account/position reads, order placement, cancellation, and position closing. Minor gaps remain—no order-modify/amend tool and no explicit leverage-adjustment tool despite leverage being central to perps.

Maintenance

ActivityMaintained
ResponsivenessNo issues