Skip to main content
Glama
TeacherLi07

htx-mcp

by TeacherLi07

HTX Get Market Context

htx_get_market_context
Read-onlyIdempotent

Need more than indicators? Retrieve inspectable OHLCV candles, recent trade tape, and swap funding history for HTX spot or perpetual contracts. Returns a bounded REST snapshot without exposing raw exchange envelopes.

Instructions

Return bounded research context without exposing raw HTX envelopes.

Use this when indicators alone are insufficient and a trader needs inspectable OHLCV, a recent public trade tape, or swap funding history. It is a REST snapshot, not a low-latency stream.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
includeNoOptional context sections. Omit for candles and recent trades; funding_history is available only for swaps.
productYesHTX product family: spot or USDT-margined perpetual swap.
instrumentYesSpot symbol such as 'btcusdt' or swap contract such as 'BTC-USDT'.
candle_sizeNoNumber of normalized candles (1-500).
candle_periodNoHTX candle interval for candles: 1min, 5min, 15min, 30min, 60min, 4hour, 1day, 1week, or 1mon.60min
recent_trade_limitNoNumber of normalized tape records (1-200).
funding_history_limitNoNumber of swap funding-rate records (1-50).

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.7.3

TDQS

A3.8/5.0
Behavior3/5

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

The description adds the behavioral trait of being a non-streaming snapshot, but the read-only, idempotent, and non-destructive aspects are already covered by annotations. It does not mention rate limits or other potential side effects.

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 two sentences, immediately states the purpose, and efficiently covers usage and nature without any fluff. It is well-structured and front-loaded.

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?

The description provides purpose, usage conditions, and a behavioral distinction, which is sufficient given the full schema and output schema. The only minor gap is the vague 'raw HTX envelopes' phrasing, which could reduce clarity.

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 baseline is 3. The tool description does not add parameter-specific meanings beyond what is already in the schema, but it doesn't need to.

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 states the core purpose—'return bounded research context'—and enumerates the included data types (OHLCV, recent public trade tape, swap funding history). However, the phrase 'raw HTX envelopes' is ambiguous and could confuse agents.

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?

It clearly specifies when to use the tool ('when indicators alone are insufficient') and contrasts it with streaming via 'REST snapshot, not a low-latency stream'. This gives agents a concrete decision condition.

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/TeacherLi07/htx-mcp'

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