Skip to main content
Glama
al-one

MCP Server for stock and crypto

stock_indicators_a

Retrieve key financial indicators for Chinese A-share market stocks (Shanghai, Shenzhen) to analyze company performance and make informed investment decisions.

Instructions

获取中国A股市场(上证、深证)的股票财务报告关键指标

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYes股票代码

Implementation Reference

  • The core handler function for the 'stock_indicators_a' tool. It fetches financial abstract data for the given A-share stock symbol using akshare's stock_financial_abstract_ths, caches it, formats as CSV, and returns the header plus the last 15 rows.
    def stock_indicators_a( symbol: str = field_symbol, ): dfs = ak_cache(ak.stock_financial_abstract_ths, symbol=symbol) keys = dfs.to_csv(index=False, float_format="%.3f").strip().split("\n") return "\n".join([keys[0], *keys[-15:]])
  • The @mcp.tool decorator registers the 'stock_indicators_a' tool with its title and description.
    @mcp.tool( title="A股关键指标", description="获取中国A股市场(上证、深证)的股票财务报告关键指标", )
  • Input schema definition for the tool parameter 'symbol', referencing the shared field_symbol which is a Pydantic Field for stock code.
    symbol: str = field_symbol,

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/al-one/mcp-aktools'

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