Skip to main content
Glama
kevynf

AKBridge MCP Server

by kevynf

stock_zh_index_hist_csindex

Read-onlyIdempotent

Fetch historical closing price data for specific China Securities Index (CSI) codes from the official CSIndex website, covering a date range and returning daily closing values.

Instructions

中证指数-具体指数-历史行情数据 P.S. 只有收盘价,正常情况下不应使用该接口,除非指数只有中证网站有 https://www.csindex.com.cn/zh-CN/indices/index-detail/H30374#/indices/family/detail?indexCode=H30374 :param symbol: 指数代码; e.g., H30374 :type symbol: str :param start_date: 开始日期 :type start_date: str :param end_date: 结束日期 :type end_date: str :return: 包含日期和收盘价的指数数据 :rtype: pandas.DataFrame

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolNo000928
end_dateNo20240604
start_dateNo20180526
Behavior4/5

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

The description discloses a key behavioral trait beyond annotations: it only provides closing prices ('只有收盘价') and returns a DataFrame with date and close price. This adds context about data limitations. Annotations already declare read-only and idempotent hints, so the description complements rather than repeats them. No hidden side effects or rate limits are mentioned, but the safety profile is covered.

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?

The description is structured with a title, a crucial P.S. note, a reference URL, and docstring-style parameter explanations. It is not overly long and each part adds value: the P.S. carries the most important usage caveat, the URL provides a source reference, and docstrings define parameters. The content is front-loaded with the caveat right after the title, making it easy to scan.

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 relatively simple read-only tool with three parameters, the description covers the essential context: what data is returned (dates and closing prices), when to use it (only for indices exclusive to CSIndex), and parameter meanings. It lacks a few details like date format, but defaults and examples fill that gap. No output schema exists, so the return description is sufficient.

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?

The schema provides no descriptions for the three parameters (coverage 0%), but the description includes docstrings explaining each: symbol is the index code with an example, start_date and end_date are start/end dates (format implied by defaults). This effectively compensates for the schema gap. It does not specify date format explicitly, but the defaults in the schema (e.g., 20240604) make it clear.

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 identifies the tool as retrieving historical market data for a specific CSI index ('中证指数-具体指数-历史行情数据'). The P.S. adds that it only returns closing prices and normally shouldn't be used unless the index is exclusive to the CSIndex website, which distinguishes it from other index data tools. However, it lacks an explicit action verb like 'fetch' or 'get', relying on the noun phrase to imply the purpose.

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?

The P.S. provides explicit guidance on when to use this tool: '正常情况下不应使用该接口,除非指数只有中证网站有' (normally should not use this interface unless the index is only available on the CSIndex website). This clearly states a when-not condition and implies alternatives, but it does not name specific alternative tools, stopping short of a 5.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kevynf/akbridge'

If you have feedback or need assistance with the MCP directory API, please join our Discord server