Skip to main content
Glama
kevynf

AKBridge MCP Server

by kevynf

get_rank_sum_daily

Read-onlyIdempotent

Collect top 5, 10, 15, and 20 member position rankings from four Chinese futures exchanges, filtered by date and contract, to analyze long, short, and volume concentration.

Instructions

采集四个期货交易所前 5、前 10、前 15、前 20 会员持仓排名数据 注1:由于上期所和中金所只公布每个品种内部的标的排名,没有公布品种的总排名; 所以函数输出的品种排名是由品种中的每个标的加总获得,并不是真实的品种排名列表 注2:大商所只公布了品种排名,未公布标的排名 :param start_day: 开始日期 format: YYYY-MM-DD 或 YYYYMMDD 或 datetime.date对象 为空时为当天 :type start_day: str :param end_day: 结束数据 format: YYYY-MM-DD 或 YYYYMMDD 或 datetime.date对象 为空时为当天 :type end_day: str :param vars_list: 合约品种如 ['RB'、'AL'] 等列表为空时为所有商品 :type vars_list: list :return: 会员持仓排名数据 :rtype: pandas.DataFrame symbol 标的合约 string var 商品品种 string vol_top5 成交量前5会员成交量总和 int vol_chg_top5 成交量前5会员成交量变化总和 int long_open_interest_top5 持多单前5会员持多单总和 int long_open_interest_chg_top5 持多单前5会员持多单变化总和 int short_open_interest_top5 持空单前5会员持空单总和 int short_open_interest_chg_top5 持空单前5会员持空单变化总和 int vol_top10 成交量前10会员成交量总和 int

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
end_dayNo20210510
start_dayNo20210510
vars_listNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld/idempotent/non-destructive, so the bar is lower, and the description adds genuinely useful data-provenance caveats: SHFE/CFFEX publish only per-symbol rankings so the returned variety ranking is a synthetic aggregation, while DCE publishes only variety-level rankings. That materially affects how an agent should interpret results. It does not mention retrieval cost, rate limits, or whether the underlying endpoints throttle.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose sentence is correctly front-loaded and the exchange caveats earn their place, but the Sphinx :param:/:rtype: scaffolding is verbose for three optional params, and the DataFrame field listing is truncated mid-schema (it stops at vol_top10 despite advertising top 5/10/15/20), which reads as sloppy rather than efficient.

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?

No output schema exists, so documenting the returned DataFrame columns is valuable, and parameters plus safety-relevant caveats are covered. It falls short only because the return-field list is cut off and nothing is said about row ordering, pagination, or data latency.

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 description coverage is 0%, so the description must carry the burden, and it does: start_day/end_day accept YYYY-MM-DD, YYYYMMDD, or datetime.date and default to the current day when empty, and vars_list takes a symbol list defaulting to all commodities. One wrinkle: the description says empty means 'today', while the schema hard-codes a 20210510 default, an inconsistency the agent must resolve.

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 a concrete verb and resource: collecting top 5/10/15/20 member position ranking data from four futures exchanges (采集…会员持仓排名数据). It is specific about scope and cadence, but never names a sibling such as get_rank_sum, futures_dce_position_rank, or get_rank_table_czce, so the agent cannot distinguish it from those without inspecting schemas.

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: the reader infers 'call this to get member position rankings for a date range / commodity list'. There is no explicit when-to-use statement, no exclusion ('do not use for X'), and no pointer to the get_rank_sum or get_rank_table_* alternatives that overlap in name and data.

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

Deploy Server

Other Tools