Skip to main content
Glama
kevynf

AKBridge MCP Server

by kevynf

get_shfe_daily

Read-onlyIdempotent

Retrieve Shanghai Futures Exchange daily trading data by date, including price, volume, open interest, turnover, and settlement metrics for futures contracts.

Instructions

上海期货交易所-日频率-量价数据 https://tsite.shfe.com.cn/statements/dataview.html?paramid=kx :param date: 日期 format: YYYY-MM-DD 或 YYYYMMDD 或 datetime.date对象,默认为当前交易日 :type date: str or datetime.date :return: 上海期货交易所-日频率-量价数据 :rtype: pandas.DataFrame or None 上期所日交易数据(DataFrame): symbol 合约代码 date 日期 open 开盘价 high 最高价 low 最低价 close 收盘价 volume 成交量 open_interest 持仓量 turnover 成交额 settle 结算价 pre_settle 前结算价 variety 合约类别 或 None(给定交易日没有交易数据)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateNo20220415

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, openWorldHint=true, and destructiveHint=false, so safety/behavior is largely covered. The description adds real behavioral context beyond annotations: the default date resolves to the current trading day, and it explicitly states the tool returns None when a given trading day has no data.

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 follows a docstring-style layout and is somewhat verbose, but the column enumeration earns its place because there is no output schema. Purpose is front-loaded; the metadata lines are compact and information-dense rather than padded.

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?

With no output schema, the column-by-column return description (symbol, date, open/high/low/close, volume, open_interest, turnover, settle, pre_settle, variety) plus the None case makes the return contract clear. Parameter semantics are fully covered. The remaining gap is guidance on choosing this tool over sibling exchange-daily tools.

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

Parameters5/5

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

Schema coverage is 0% and the single parameter is only typed as string with a default. The description fully compensates by specifying three accepted formats (YYYY-MM-DD, YYYYMMDD, or a datetime.date object) and the default behavior (current trading day), which is exactly the semantics the schema omits.

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 names a specific resource and scope: 上海期货交易所 (SHFE) daily-frequency price/volume data, with a source URL. This distinguishes it reasonably well from siblings like get_cffex_daily/get_dce_daily/get_czce_daily on exchange, though it does not explicitly compare itself to those siblings in text.

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?

There is no statement of when to use this tool versus the many other exchange-daily tools, nor any prerequisites or exclusions. The description only repeats the resource and documents the date parameter, leaving selection entirely 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