index_basic_info
Retrieve essential details for stock market indices using Xueqiu MCP. Provide an index code to access fundamental data for investment analysis.
Instructions
获取指数基本信息
Args:
index_code: 指数代码
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "index_basic_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index_code | No | SZ000002 |
Implementation Reference
- main.py:310-319 (handler)The main handler function for the 'index_basic_info' tool. It is decorated with @mcp.tool() for registration, takes an index_code parameter, calls ball.index_basic_info(index_code), processes the result with process_data, and returns it as a dict. The docstring provides the schema description.
@mcp.tool() def index_basic_info(index_code: str="SZ000002") -> dict: """获取指数基本信息 Args: index_code: 指数代码 """ result = ball.index_basic_info(index_code) return process_data(result)