Skip to main content
Glama
openstockdata

stock-data-mcp

获取加密货币历史价格

okx_prices

Retrieve historical candlestick data for OKX crypto assets, including price, volume, and technical indicators. Supports customizable time frames and automatic retries.

Instructions

获取OKX加密货币的历史K线数据,包括价格、交易量和技术指标。支持自动重试。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
barNoK线时间粒度,仅支持: [1m/3m/5m/15m/30m/1H/2H/4H/6H/12H/1D/2D/3D/1W/1M/3M] 除分钟为小写m外,其余均为大写1H
limitNo返回数量(int),最大300,最小建议30
instIdNo产品ID,格式: BTC-USDTBTC-USDT
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It mentions automatic retry, which is a useful behavioral trait. However, it does not explicitly state that the tool is read-only or discuss rate limits, though it is implied by the nature of retrieving historical data.

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 very concise: two sentences that immediately state the purpose and key features. There is no irrelevant information, and every sentence adds value.

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?

Given that there is no output schema, the description compensates by mentioning the types of data returned (price, volume, technical indicators). However, it could be improved by specifying the exact output format or fields. Overall, it is quite complete for a data retrieval tool.

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 input schema covers all three parameters with detailed descriptions, achieving 100% schema coverage. The tool description adds no additional parameter guidance beyond what the schema provides, so the baseline score of 3 is appropriate.

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 it retrieves historical K-line data from OKX, including price, volume, and technical indicators. This distinguishes it from sibling tools like binance_ai_report or index_prices, which serve different purposes.

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

Usage Guidelines3/5

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

The description does not explicitly guide when to use this tool versus alternatives. While the purpose is clear, it lacks instructions on when not to use it or how it compares to sibling tools such as okx_taker_volume or index_prices.

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

Install Server

Other Tools

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/openstockdata/stock-data-mcp'

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