Skip to main content
Glama
TeacherLi07

htx-mcp

by TeacherLi07

HTX Get Technical Indicators

htx_get_technical_indicators
Read-onlyIdempotent

Get decimal-calculated technical indicators (SMA, EMA, RSI, MACD, KDJ, ATR) from completed HTX candles for spot and perpetual swaps, providing no-repaint signals for trading decisions.

Instructions

Return only the requested, Decimal-calculated technical indicators.

The model chooses which named indicators to inspect; it never calculates them itself. Results are display-rounded only at response time: EMA uses candle price precision plus one decimal, MACD uses it plus three, and RSI/KDJ use two decimal places. Raw K-lines remain available solely through the opt-in advanced compatibility toolset for research and diagnostics.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
periodNoHTX candle interval: 1min, 5min, 15min, 30min, 60min, 4hour, 1day, 1week, or 1mon.60min
productYesHTX product family: spot or USDT-margined perpetual swap.
indicatorsYesIndicators to calculate. Use sma:N (or ma:N), ema:N, rsi:N, atr:N, volume_sma:N, bbands:N,multiplier, macd:fast,slow,signal, or kdj:N,k_smoothing,d_smoothing. Example: ['sma:20', 'sma:60', 'rsi:14', 'macd:12,26,9']. Values are calculated deterministically from completed HTX candles.
instrumentYesSpot symbol such as 'btcusdt' or swap contract such as 'BTC-USDT'.
candle_sizeNoMaximum HTX candles to fetch. It must cover the largest requested indicator lookback; 300 is suitable for most standard indicators.
include_current_candleNoInclude the still-forming candle when true. Defaults to false so decisions use only completed candles and do not repaint.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
periodYes
productYes
as_of_msYes
indicatorsYes
instrumentYes
completed_candlesYes
latest_completed_open_msYes
omitted_incomplete_candlesYes

Schema Changelog

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

  1. First observedv0.7.3

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnlyHint and idempotentHint annotations, the description adds meaningful behavioral details: deterministic calculation from completed candles, display rounding behavior, and the default exclusion of the current candle to avoid repainting. These enrich the agent's understanding of side effects and output semantics.

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 concise, front-loaded with the core purpose, and structured to communicate key constraints (rounding, completed candles) without verbosity. Every sentence serves a distinct informative purpose.

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?

The description is complete for the tool's scope: it explains the output type, calculation basis, defaults, and the availability of raw data elsewhere. With an output schema present, no further return-value explanation is necessary.

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?

The schema descriptions already cover all parameters with detailed formats, enumerations, and examples. The tool description itself adds no additional parameter meaning, so it does not exceed the baseline for full schema coverage.

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 clearly states the tool returns requested technical indicators, specifying that the model chooses indicators and the tool calculates them. It is distinct from raw market data tools and establishes a clear resource and action.

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 description implies when to use the tool ('Return only the requested indicators', 'never calculates them itself') and contrasts with raw K-line availability, though it does not explicitly name sibling alternatives. This is clear but not fully explicit about when not to use it in favor of other tools.

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