Skip to main content
Glama
dydx-perps-markets-api-mcp

dydx-perps-markets-api-mcp

Get dYdX market orderbook

get_dydx_market_orderbook
Read-onlyIdempotent

Fetch live L2 bids, asks, best bid/ask, mid-price, and spread in basis points for a specified dYdX v4 perpetual market by ticker.

Instructions

Fetch live L2 bids, asks, best bid/ask, mid-price, and spread in basis points for a dYdX v4 perpetual market.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "ticker": "<ticker>"
    },
    "name": "get_dydx_market_orderbook"
  }
}

Input Schema

NameRequiredDescriptionDefault
depthNoMaximum price levels per side (1-50, default 10).
tickerYesdYdX perpetual market ticker (e.g. "BTC-USD", "ETH-USD").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A3.6/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly, idempotent, open-world and non-destructive, so the safety profile is covered. The description adds value by enumerating the payload (L2 book, best bid/ask, mid, spread in bps), but 'live' is left ambiguous between a one-shot snapshot and a streaming feed, and nothing is said about rate limits or market-availability behavior — a meaningful gap for a market data call.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no filler; the resource and the returned metrics appear before any secondary detail. Nothing could be removed without losing information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter read-only market data tool, the description covers the resource, the market scope, and the returned fields, which compensates for the absence of an output schema. The only real gap is whether the orderbook is a point-in-time snapshot or a live subscription.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, documenting both ticker format and the 1-50 depth bound with its default. The description adds no syntax, ticker conventions, or depth semantics beyond the schema, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Specific verb ('Fetch') plus a precisely enumerated resource: live L2 bids, asks, best bid/ask, mid-price, spread in bps for a dYdX v4 perpetual market. This clearly distinguishes it from siblings like get_dydx_market_candles or get_dydx_historical_funding_rates without naming them, though no explicit sibling routing is given.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied by the word 'live' plus the listed book metrics — an agent can infer this is for current orderbook state rather than historical data. There is no explicit when-to-use statement, no when-not-to-use, and no pointer to list_dydx_perpetual_markets for discovering valid tickers.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.