Skip to main content
Glama

x402_dydx_get_v1_orderbook_market

Fetches the current dYdX v4 order book for a specified perpetual market, showing bids and asks to support trading and market analysis.

Instructions

dydx — dYdX v4 indexer public data: perpetual markets, order books, candles [GET /v1/orderbook/{market}] $0.005 USDC on eip155:8453+137+42161+480. Example: /v1/orderbook/BTC-USD

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "x402_dydx_get_v1_orderbook_market"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoJSON body for POST/PUT/PATCH/DELETE
queryNoQuery parameters, e.g. {base:'USD', quote:'EUR'}
restartNoExplicitly re-run a previously failed/unknown operation. Never set for unknown outcomes unless you know the paid call did not complete.
operationIdNoDurable operation id for this intent. Supply a stable id (e.g. your job/run id) to dedupe retries; omit to derive one from the arguments.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations at all, the description carries the full behavioral burden. It does disclose valuable non-schema context — this is a paid call costing $0.005 USDC on four chains (eip155:8453/137/42161/480) — which is genuinely useful. However it never states that this is a read-only public-data fetch, nor describes the response shape, pagination, or failure behavior.

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

Conciseness4/5

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

The definition is compact and front-loaded with the family, endpoint, and cost, then finishes with a concrete example. The chain-id list ('8453+137+42161+480') is dense noise for most callers, but overall there is little waste.

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

Completeness3/5

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

There is no output schema, so the description is the only source of return-value information, and it provides none. Combined with the undocumented path parameter and missing usage guidance against three close siblings, the definition is adequate to identify the tool but not fully sufficient to call it confidently.

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%, so the generic body/query/restart/operationId parameters are already documented and the baseline is 3. Critically, the actual required path parameter '{market}' is absent from the schema, and the description only partially compensates by showing '/v1/orderbook/BTC-USD' — it never explains the market identifier format or how the path is supplied.

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?

The description names a specific resource and endpoint: 'GET /v1/orderbook/{market}', making clear this retrieves an order book for a given market. The prefatory clause 'perpetual markets, order books, candles' describes the whole dYdX family and slightly blurs which of those this tool returns, but the bracketed endpoint and the '/v1/orderbook/BTC-USD' example disambiguate it.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance, and no routing to the obvious siblings such as x402_dydx_get_v1_candles_market or x402_dydx_get_v1_perpetual_markets. The endpoint path implies the resource, but the agent must infer that candles/markets data belongs to the other tools.

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

Deploy Server

Other Tools