Skip to main content
Glama
alekskram

dydx-agent-gateway

Market Detail

market_detail
Read-only

Get a complete snapshot of one perpetual market: oracle price, open interest, funding rate, 24h volume, 24h change, and latest candles. Use it to assess market health and basis before trading.

Instructions

One perpetual market in depth: prices, 24h stats computed from candles (the raw API priceChange field is unreliable), OI, funding. Returns oraclePrice, openInterest, nextFundingRate_pct_1h (pct/hour), volume24h_USD, change24h_pct_from_candles (24h pct change, computed from 25 x 1h candles), trades24h, basis_pct (mark-vs-oracle deviation in pct: (last candle close - oraclePrice) / oraclePrice x 100), and the latest three 1h candles (t/open/close/usdVolume). An unknown or delisted ticker raises an error (MCP isError) — settled markets are not served. Example: market_detail(ticker="BTC-USD")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tickerYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.3.0

TDQS

A4.7/5.0
Behavior5/5

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

The description discloses significant behavioral detail beyond the annotations: it warns that the raw API priceChange field is unreliable, explains that 24h stats are computed from 25 x 1h candles, gives the exact basis formula, and documents error behavior for unknown/delisted tickers. These are exactly the kind of non-obvious behaviors that help an agent use the tool correctly.

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?

The description is information-dense but well organized: a one-sentence summary up front, then the returned fields, then error behavior, then an example. Every sentence contributes either to what the tool does, how it computes values, or how to call it. No filler or repetition.

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

Completeness5/5

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

For a single-parameter tool with an output schema present, the description is complete. It explains the input, the returned fields, the derivation logic, the reliability caveat, and the failure mode for invalid inputs. An agent has everything it needs to select and invoke this tool correctly.

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

Parameters4/5

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

The schema only defines ticker as a string with zero description coverage, so the description must compensate. It does by providing a concrete example, market_detail(ticker="BTC-USD"), and by explaining that the ticker must refer to a currently served perpetual market. It could be even more explicit about ticker format rules, but for a single required parameter the example is sufficient guidance.

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

Purpose5/5

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

The description opens with 'One perpetual market in depth,' naming the exact resource and scope, then enumerates the concrete data returned: prices, 24h stats, OI, funding, candles, and basis. This makes the tool's purpose unambiguous and distinguishes it from list-level tools like list_markets and from pure candle history tools like candles. The example call reinforces the intended usage.

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

Usage Guidelines4/5

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

The first sentence gives clear context for when to use the tool: when you need detailed stats for a single perpetual market. It also provides a useful negative constraint by stating that unknown or delisted tickers raise an error and that settled markets are not served. However, it does not explicitly name sibling alternatives or state when to prefer one of those instead.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/alekskram/dydx-agent-gateway'

If you have feedback or need assistance with the MCP directory API, please join our Discord server