Skip to main content
Glama
htx-global-crypto-markets-mcp

htx-global-crypto-markets-mcp

Get HTX orderbook depth

get_htx_orderbook_depth
Read-onlyIdempotent

Fetches HTX Global aggregated L2 orderbook bids and asks with best bid/ask, mid-price, and spread in basis points to gauge market depth and liquidity.

Instructions

Fetch HTX Global aggregated L2 orderbook bids and asks along with best bid, best ask, mid-price, and spread in basis points.

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": "get_htx_orderbook_depth"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoPrice aggregation depth step (default "step0" for raw book).
depthNoNumber of price levels per side (5, 10, or 20; default 20).
symbolNoLowercase HTX spot pair symbol (default "btcusdt").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so the safety profile is fully covered by structured fields. The description adds value by disclosing the returned metrics (best bid/ask, mid, spread in bps) and that the book is 'aggregated', but says nothing about snapshot vs streaming behavior, exchange-side aggregation semantics, or call cost.

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 sentence that front-loads the exchange, the data type, and the returned fields with zero filler or repetition of the title.

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?

With no output schema, the description carries the burden of describing return values, and it does so by naming the book sides plus the four derived metrics. It is nearly complete for a read-only market-data tool; only pagination/snapshot semantics are unstated.

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 schema already documents the symbol format, the depth enum, and the step enum with defaults. The description's mention of 'aggregated L2' only loosely gestures at the step parameter and adds no syntax or behavioral detail beyond the schema, so the baseline 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?

The description uses a specific verb ('Fetch') and a specific resource ('HTX Global aggregated L2 orderbook bids and asks'), and enumerates the derived metrics returned (best bid/ask, mid-price, spread in bps). It does not explicitly name a sibling to differentiate from, but the resource itself is clearly distinct from klines, tickers, and trades.

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 when-to-use guidance, no exclusion of alternatives (e.g. recent trades or merged ticker), and no statement of prerequisites or rate-limit context. The agent must infer applicability purely from the resource name.

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