Skip to main content
Glama
kevynf

AKBridge MCP Server

by kevynf

get_rank_sum

Read-onlyIdempotent

Fetch top 5, 10, 15, and 20 futures exchange member position rankings by date and contract variety, returning volume and long/short open interest totals and changes.

Instructions

采集五个期货交易所前5、前10、前15、前20会员持仓排名数据 注1:由于上期所和中金所只公布每个品种内部的标的排名,没有公布品种的总排名; 所以函数输出的品种排名是由品种中的每个标的加总获得,并不是真实的品种排名列表 注2:大商所只公布了品种排名,未公布标的排名 :param date: 日期 format: YYYY-MM-DD 或 YYYYMMDD 或 datetime.date对象 为空时为当天 :type date: date :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
dateNo20210525
vars_listNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, covering the safety profile. The description adds valuable behavioral context beyond annotations: it discloses that the variety rankings are aggregated from symbol rankings for SHFE/CFFEX and thus not true exchange-wide rankings, and that DCE lacks symbol-level rankings. This data-quality caveat is crucial for correct result interpretation.

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 description is front-loaded with the purpose, followed by notes, parameter documentation, and a lengthy return column listing. While the return column list is useful given the absence of an output schema, the overall text is verbose and could be more tightly structured without losing essential information.

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 the tool's complexity (aggregating data across five exchanges), two parameters with zero schema coverage, and no output schema, the description provides a solid picture: purpose, data caveats, parameter formats, and return fields. It is nearly complete, though a brief mention of when to prefer this tool over exchange-specific rank functions would complete the guidance.

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 compensate. It does so by documenting the date parameter's accepted formats (YYYY-MM-DD, YYYYMMDD, datetime.date) and default behavior (empty = today), and the vars_list format with an example and default (empty = all commodities). This adds substantial meaning beyond the bare schema.

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 clearly states the tool collects member position ranking data (top 5/10/15/20) from five futures exchanges. It identifies the specific resource and scope, but does not explicitly distinguish itself from sibling tools like get_rank_sum_daily or exchange-specific rank table functions, so it falls short of a 5.

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

Usage Guidelines2/5

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

The description provides important caveats about data availability across exchanges (e.g., SHFE/CFFEX only publish symbol-level rankings, DCE only publishes variety-level rankings), which guides interpretation. However, it offers no guidance on when to choose this tool versus alternatives such as get_rank_sum_daily or per-exchange rank table tools, leaving tool selection to inference.

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