Skip to main content
Glama

查询K线行情

platform_market_quote
Read-only

【行情】查询平台行情 K 线。参数 symbol 为交易标的(如 BTCUSDT / ETHUSDT),timeframe 可选 1m/5m/15m/30m/1H/4H/1D,limit 最大 299。返回该标的的 K 线数组。(cost: free)

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "symbol": "<symbol>"
    },
    "name": "platform_market_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo返回 K 线条数上限(可选,最大 299)
symbolYes交易标的,如 BTCUSDT(必填)
timeframeNoK 线周期,如 1H / 4H / 1D(可选)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. First observed

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds useful context that the call is free (cost: free), that output is a K-line array, and that limit caps at 299, but says nothing about pagination, timezone, or whether the returned candles are ascending or descending.

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?

It is a single compact sentence chain that puts the resource and the required symbol parameter first, then the optional timeframe and limit, then the return type and cost. It is slightly dense with bracketed tags (【行情】, (cost: free)), but no sentence is wasted.

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?

For a three-parameter read-only market-data tool with no output schema, the definition covers the essentials: what is queried, the valid symbol format, the valid timeframe set, the limit ceiling, what comes back, and that it costs nothing. The remaining gap, such as candle ordering or timezone, is minor for this complexity level.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description goes beyond the schema by enumerating the accepted timeframe values (1m/5m/15m/30m/1H/4H/1D). The schema has no enum constraint on timeframe, so this enumeration is genuinely new information that prevents invalid calls.

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 and resource pair (查询平台行情 K 线 / query platform market candles) and states exactly what is returned (a K-line array for the symbol). It is clearly distinguishable from read-only info siblings like platform_market_ticker and platform_market_overview, but it never names those alternatives, so the differentiation is only implied.

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?

Usage is only implied by the resource type: an agent can infer this is the tool for OHLC candle series rather than last price or market summary. There is no explicit statement about when to choose this over platform_market_ticker or platform_market_overview, and no exclusions or prerequisites are given.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.