Skip to main content
Glama
kevynf

AKBridge MCP Server

by kevynf

futures_spot_price

Read-onlyIdempotent

Fetch commodity spot prices and near/dominant contract basis for a given trading date, optionally filtered by contract symbols, returning structured data for spread and basis analysis.

Instructions

指定交易日大宗商品现货价格及相应基差 https://www.100ppi.com/sf/day-2017-09-12.html :param date: 开始日期 format: YYYY-MM-DD 或 YYYYMMDD 或 datetime.date 对象;为空时为当天 :param vars_list: 合约品种如 RB、AL 等列表 为空时为所有商品 :return: pandas.DataFrame 展期收益率数据: var 商品品种 string sp 现货价格 float near_symbol 临近交割合约 string near_price 临近交割合约结算价 float dom_symbol 主力合约 string dom_price 主力合约结算价 float near_basis 临近交割合约相对现货的基差 float dom_basis 主力合约相对现货的基差 float near_basis_rate 临近交割合约相对现货的基差率 float dom_basis_rate 主力合约相对现货的基差率 float date 日期 string YYYYMMDD

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateNo20240430
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/true, idempotentHint/true, destructiveHint/false, so the safety profile is covered. The description goes further by spelling out that the return is a pandas.DataFrame and enumerating the columns and their types, which is genuine added context. It does not mention rate limits or data-source freshness, so not a 5.

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?

Purpose is front-loaded, but the body is a pasted docstring containing a raw 100ppi.com URL and a long return-field table. The field list earns its place given no output schema; the bare URL does not, making the overall structure only adequate.

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 two-parameter read tool with no output schema, the description supplies parameter formats and a full return-column listing, so an agent has enough to call it. The remaining gap is routing information: nothing tells it apart from the near-identical sibling history tools.

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 parameter burden, and it largely does: date accepts YYYY-MM-DD, YYYYMMDD, or datetime.date with empty meaning today; vars_list takes contract codes such as RB/AL with empty meaning all commodities. This compensates well for the undocumented schema, though it does not explain the default symbol list.

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: commodity spot prices plus the associated basis (基差) for a given trading day. An agent knows exactly what data comes back. It does not distinguish itself from close siblings such as futures_spot_price_daily, futures_spot_price_previous, or futures_spot_sys, so it stops 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?

There is no statement of when to use this tool versus the many related siblings (futures_spot_price_daily, futures_spot_price_previous, spot_price_qh). The parameter docs imply usage but no conditions, exclusions, or alternatives are given.

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