Skip to main content
Glama
This connector has been deprecated

Replaced by echopai-mcp.

Duplicate listing; superseded by io.github.echopai/echopai-mcp (official MCP Registry entry).

etf_rank

全市场 ETF 排行榜。kind=flows(默认)排估算净申赎额(window=1d|5d|20d,direction=in|out,不传 asset_class 货币 ETF 易霸榜,null 非 0 须看 valid_days);kind=premiums(传 basis 或 direction=high|low 自动推断)排折溢价率(basis=same_day 同日真实溢价 / ref 参考溢价 / iopv 盘中实时 IOPV 溢价,比率 0.05=5%)。共用 asset_class 与 market_scope。

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

Input Schema

NameRequiredDescriptionDefault
_jqNoJMESPath,对 data 求值(写 items[*].id)
kindNoRanking kind: flows (net creation, default) or premiums (premium/discount rate)
basisNoPremiums kind only: same_day (default), ref, or iopv (live intraday)
limitNoMax items (default 50)
_spillNotrue=全量落盘,只回摘要与取数地址
windowNoFlows kind only: accumulation window (default 1d)
_fieldsNo逗号分隔的直接字段;有 items 时投影每行,否则投影 data;外层字段或嵌套结构用 _jq
_intentNo用户原问题一句话,仅分析用,可留空
directionNoflows: in (default) / out; premiums: high (default) / low
_max_bytesNo响应字节上限,默认约 50 KB
asset_classNoAsset class (equity / bond / money / commodity, covers both SSE and SZSE)
market_scopeNoMarket scope (single / cross_market / cross_border, Shanghai ETFs only)
_max_bytes_modeNo正文超限处理,默认 truncate 保留前缀

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / basis / description
      Previous value: -"Premiums kind only: same_day (default) or ref"New value: +"Premiums kind only: same_day (default), ref, or iopv (live intraday)"
    • changedInput schema / properties / basis / enum
      Previous value: -[
      -  "same_day",
      -  "ref"
      -]New value: +[
      +  "same_day",
      +  "ref",
      +  "iopv"
      +]
  2. Added

TDQS

A3.9/5.0
Behavior3/5

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

Beyond the annotations, the description discloses real behavioral caveats: data-quality gaps signalled by valid_days, the fact that iopv basis is live intraday versus same_day being a true end-of-day premium, and the asset_class skew on the money segment. It says nothing about permissions, costs, or the shape of the returned leaderboard, and it gives no hint that would reconcile the read-only-looking nature of a ranking query with the supplied readOnlyHint=false / idempotentHint=false flags.

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?

It is one dense paragraph that front-loads the tool's identity and then walks the two modes in the order an agent would branch on them. Given how many mode-dependent constraints it compresses (defaults, auto-inference, data-quality warning, unit convention), almost nothing could be removed without losing operational meaning.

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 13-parameter, two-mode tool with no output schema, it covers the branching logic, defaults, and pitfalls well enough to invoke correctly. The remaining gap is the return payload: it never says what a ranking row contains (rank, code, name, flow amount, premium rate), so an agent must discover the output shape empirically.

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 already 100%, so the baseline is a 3, and this definition earns above that: it explains the mode-conditional relevance of window, direction, and basis, states that the ratios are fractions (0.05 = 5%), and describes the interaction where direction=high|low causes basis to be inferred. It leaves only the output-control parameters (_jq, _fields, _spill, _max_bytes) to the schema's own descriptions.

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 opens with a specific verb and resource, "全市场 ETF 排行榜" (whole-market ETF ranking), and then splits that scope into two well-defined modes, `kind=flows` (estimated net creation/redemption) and `kind=premiums` (premium/discount rate). An agent can tell this apart from etf_list or etf_show just by reading the scoping words, but the definition never actually names a sibling or explicitly states the boundary.

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 gives concrete instructions on which parameters to combine with which mode: window/direction for flows, basis or direction=high|low for premiums, and it notes that basis is auto-inferred when direction=high|low. It also warns that omitting asset_class lets money-market ETFs dominate the board and that null/non-zero entries require checking valid_days. What it lacks is any voice on when to use this tool rather than etf_list, etf_show, or fundflow, so it is strong intra-tool guidance without inter-tool guidance.

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.

Resources