Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_historical_k_dataA
    Fetches historical K-line (OHLCV) data for a Chinese A-share stock.

    Args:
        code: The stock code in Baostock format (e.g., 'sh.600000', 'sz.000001').
        start_date: Start date in 'YYYY-MM-DD' format.
        end_date: End date in 'YYYY-MM-DD' format.
        frequency: Data frequency. Valid options (from Baostock):
                     'd': daily
                     'w': weekly
                     'm': monthly
                     '5': 5 minutes
                     '15': 15 minutes
                     '30': 30 minutes
                     '60': 60 minutes
                   Defaults to 'd'.
        adjust_flag: Adjustment flag for price/volume. Valid options (from Baostock):
                       '1': Forward adjusted (后复权)
                       '2': Backward adjusted (前复权)
                       '3': Non-adjusted (不复权)
                     Defaults to '3'.
        fields: Optional list of specific data fields to retrieve (must be valid Baostock fields).
                If None or empty, default fields will be used (e.g., date, code, open, high, low, close, volume, amount, pctChg).
        limit: Max rows to return. Defaults to 250.
        format: Output format: 'markdown' | 'json' | 'csv'. Defaults to 'markdown'.

        Returns:
            A Markdown formatted string containing the K-line data table, or an error message.
            The table might be truncated if the result set is too large.
        
get_stock_basic_infoA
    Fetches basic information for a given Chinese A-share stock.

    Args:
        code: The stock code in Baostock format (e.g., 'sh.600000', 'sz.000001').
        fields: Optional list to select specific columns from the available basic info
                (e.g., ['code', 'code_name', 'industry', 'listingDate']).
                If None or empty, returns all available basic info columns from Baostock.

    Returns:
        Basic stock information in the requested format.
    
get_dividend_dataC
    Fetches dividend information for a given stock code and year.

    Args:
        code: The stock code in Baostock format (e.g., 'sh.600000', 'sz.000001').
        year: The year to query (e.g., '2023').
        year_type: Type of year. Valid options (from Baostock):
                     'report': Announcement year (预案公告年份)
                     'operate': Ex-dividend year (除权除息年份)
                   Defaults to 'report'.

    Returns:
        Dividend records table.
    
get_adjust_factor_dataA
    Fetches adjustment factor data for a given stock code and date range.
    Uses Baostock's "涨跌幅复权算法" factors. Useful for calculating adjusted prices.

    Args:
        code: The stock code in Baostock format (e.g., 'sh.600000', 'sz.000001').
        start_date: Start date in 'YYYY-MM-DD' format.
        end_date: End date in 'YYYY-MM-DD' format.

    Returns:
        Adjustment factors table.
    
get_profit_dataC

Quarterly profitability data.

get_operation_dataD

Quarterly operation capability data.

get_growth_dataD

Quarterly growth capability data.

get_balance_dataC

Quarterly balance sheet data.

get_cash_flow_dataD

Quarterly cash flow data.

get_dupont_dataC

Quarterly Dupont analysis data.

get_performance_express_reportD

Performance express report within date range.

get_forecast_reportC

Earnings forecast report within date range.

get_fina_indicatorA
    Aggregated financial indicators from 6 Baostock APIs into one convenient query.

    **Data is returned by QUARTER** (Q1, Q2, Q3, Q4) based on financial report dates.
    Input date range determines which quarters to fetch.

    Combines data from:
    - 盈利能力 (Profitability): roeAvg, npMargin, gpMargin, epsTTM
    - 营运能力 (Operation): NRTurnRatio, INVTurnRatio, CATurnRatio
    - 成长能力 (Growth): YOYNI, YOYEquity, YOYAsset
    - 偿债能力 (Solvency): currentRatio, quickRatio, liabilityToAsset
    - 现金流量 (Cash Flow): CFOToOR, CFOToNP, CAToAsset
    - 杜邦分析 (DuPont): dupontROE, dupontAssetTurn, dupontPnitoni

    Output columns include prefixes: profit_*, operation_*, growth_*,
    balance_*, cashflow_*, dupont_* to distinguish data sources.
    
get_stock_industryC

Get industry classification for a specific stock or all stocks on a date.

get_sz50_stocksC

SZSE 50 constituents.

get_hs300_stocksD

CSI 300 constituents.

get_zz500_stocksD

CSI 500 constituents.

get_index_constituentsC

Generic index constituent fetch (hs300/sz50/zz500).

list_industriesC

List distinct industries for a given date.

get_industry_membersC

Get all stocks in a given industry on a date.

get_trade_datesB
    Fetch trading dates within a specified range.

    Args:
        start_date: Optional. Start date in 'YYYY-MM-DD' format. Defaults to 2015-01-01 if None.
        end_date: Optional. End date in 'YYYY-MM-DD' format. Defaults to the current date if None.

    Returns:
        Markdown table with 'is_trading_day' (1=trading, 0=non-trading).
    
get_all_stockC
    Fetch a list of all stocks (A-shares and indices) and their trading status for a date.

    Args:
        date: Optional. The date in 'YYYY-MM-DD' format. If None, uses the current date.

    Returns:
        Markdown table listing stock codes and trading status (1=trading, 0=suspended).
    
search_stocksA
    Search stocks by code substring on a date.

    Args:
        keyword: Substring to match in the stock code (e.g., '600', '000001').
        date: Optional 'YYYY-MM-DD'. If None, uses current date.
        limit: Max rows to return. Defaults to 50.
        format: Output format: 'markdown' | 'json' | 'csv'. Defaults to 'markdown'.

    Returns:
        Matching stock codes with their trading status.
    
get_suspensionsA
    List suspended stocks for a date.

    Args:
        date: Optional 'YYYY-MM-DD'. If None, uses current date.
        limit: Max rows to return. Defaults to 250.
        format: Output format: 'markdown' | 'json' | 'csv'. Defaults to 'markdown'.

    Returns:
        Table of stocks where tradeStatus==0.
    
get_deposit_rate_dataD

Benchmark deposit rates.

get_loan_rate_dataD

Benchmark loan rates.

get_required_reserve_ratio_dataD

Required reserve ratio data.

get_money_supply_data_monthC

Monthly money supply data.

get_money_supply_data_yearC

Yearly money supply data.

get_latest_trading_dateB

Get the latest trading date up to today.

get_market_analysis_timeframeC

Return a human-friendly timeframe label.

is_trading_dayC

Check if a specific date is a trading day.

previous_trading_dayC

Get the previous trading day before the given date.

next_trading_dayC

Get the next trading day after the given date.

get_last_n_trading_daysC

Return the last N trading dates.

get_recent_trading_rangeC

Return a date range string covering the recent N trading days.

get_month_end_trading_datesC

Return month-end trading dates for a given year.

get_stock_analysisB
    提供基于数据的股票分析报告,而非投资建议。

    Args:
        code: 股票代码,如'sh.600000'
        analysis_type: 'fundamental'|'technical'|'comprehensive'
    
normalize_stock_codeC

Normalize a stock code to Baostock format.

normalize_index_codeC

Normalize common index codes to Baostock format.

list_tool_constantsB
    List valid constants for tool parameters.

    Args:
        kind: Optional filter: 'frequency' | 'adjust_flag' | 'year_type' | 'index'. If None, show all.
    
get_realtime_quoteA
    Fetches realtime quote snapshot for a Chinese A-share stock.
    
    Returns the latest trading data with correct date and change calculation.
    Uses minute K-line aggregation for today's data instead of daily data.
    Quick overview of current stock status.

    Args:
        code: The stock code. Supports multiple formats:
              - 'sh600000' or 'sz000001' (Tongdaxin format)
              - '600000' or '000001' (pure number, auto-detect exchange)
              - 'sh.600000' or 'sz.000001' (Baostock format)
              - '600519.XSHG' or '000001.XSHE' (JoinQuant format)
        format: Output format: 'markdown' | 'json' | 'csv'. Defaults to 'markdown'.

    Returns:
        Latest quote data with: 日期, 最新价, 今开, 最高, 最低, 昨收, 涨跌额, 涨跌幅, 成交量, 市场状态
    
get_intraday_minute_klineA
    Fetches intraday minute K-line data for a Chinese A-share stock (today only).
    
    Returns minute-level K-line data for the current trading day.
    Data source: Sina/Tencent via AshareDataSource.

    Args:
        code: The stock code. Supports multiple formats (same as get_realtime_quote).
        frequency: Minute frequency. Valid options:
                   '1m': 1 minute
                   '5m': 5 minutes (default)
                   '15m': 15 minutes
                   '30m': 30 minutes
                   '60m': 60 minutes
        format: Output format: 'markdown' | 'json' | 'csv'. Defaults to 'markdown'.

    Returns:
        Today's minute K-line data with: 时间, 开盘, 最高, 最低, 收盘, 成交量
    
get_realtime_multi_quoteA
    Batch query for realtime quotes (max 10 stocks).
    
    Returns realtime quotes for multiple stocks, sorted by change percentage (descending).
    Individual stock failures do not affect the overall result.

    Args:
        codes: List of stock codes (max 10). Supports multiple formats per code.
        format: Output format: 'markdown' | 'json' | 'csv'. Defaults to 'markdown'.

    Returns:
        Realtime quotes with: 代码, 名称, 最新价, 涨跌幅, 昨收, 状态
    
get_realtime_klineA
    Fetches realtime K-line (OHLCV) data for a Chinese A-share stock.
    
    This tool uses Ashare library which fetches live data from Tencent/Sina APIs.
    No login required, supports intraday data during trading hours.

    Args:
        code: The stock code. Supports multiple formats:
              - 'sh600000' or 'sz000001' (Tongdaxin format)
              - '600000' or '000001' (pure number, auto-detect exchange)
              - 'sh.600000' or 'sz.000001' (Baostock format)
              - '600519.XSHG' or '000001.XSHE' (JoinQuant format)
        frequency: K-line frequency. Valid options:
                   '1m': 1 minute
                   '5m': 5 minutes
                   '15m': 15 minutes
                   '30m': 30 minutes
                   '60m': 60 minutes
                   '1d': daily (default)
                   '1w': weekly
                   '1M': monthly
        count: Number of K-line bars to fetch. Defaults to 60.
        format: Output format: 'markdown' | 'json' | 'csv'. Defaults to 'markdown'.

    Returns:
        K-line data table with columns: time, open, close, high, low, volume
    
get_technical_indicatorsB
    Calculates technical indicators for a Chinese A-share stock.
    
    This tool fetches K-line data using Ashare and calculates indicators using MyTT library.
    Combines realtime data with technical analysis.

    Args:
        code: The stock code. Supports multiple formats (same as get_realtime_kline).
        frequency: K-line frequency. Valid options:
                   '1m', '5m', '15m', '30m', '60m', '1d', '1w', '1M'.
                   Defaults to '1d'.
        count: Number of K-line bars to fetch. Defaults to 120 for accurate indicator calculation.
        indicators: List of indicators to calculate. Valid options:
                    - 'MA': Moving Average (5, 10, 20日均线)
                    - 'EMA': Exponential Moving Average (12, 26日)
                    - 'MACD': Moving Average Convergence Divergence
                    - 'KDJ': Stochastic Oscillator
                    - 'RSI': Relative Strength Index
                    - 'WR': Williams %R
                    - 'BOLL': Bollinger Bands
                    - 'BIAS': Bias Ratio
                    - 'CCI': Commodity Channel Index
                    - 'ATR': Average True Range
                    - 'DMI': Directional Movement Index
                    - 'TAQ': Donchian Channel (唐安奇通道)
                    Defaults to ['MA', 'MACD', 'KDJ', 'BOLL', 'RSI'] if not specified.
        format: Output format: 'markdown' | 'json' | 'csv'. Defaults to 'markdown'.

    Returns:
        K-line data with calculated technical indicators.
    
get_hot_sectorsA
    Fetches hot concept sectors with top gains.
    
    Returns top gaining concept sectors with leading stocks and trading volume.
    Data source: Eastmoney (东方财富).

    Args:
        top_n: Number of top sectors to return. Defaults to 20.
        format: Output format: 'markdown' | 'json' | 'csv'. Defaults to 'markdown'.

    Returns:
        Hot sectors data with: 板块名称, 涨跌幅, 龙头股, 龙头涨幅, 成交额
    
get_market_indexA
    Fetches realtime market index data for major Chinese stock indices.
    
    Returns realtime data for: 上证指数, 深证成指, 创业板指, 科创50.
    Data source: Sina Finance (新浪财经).

    Args:
        format: Output format: 'markdown' | 'json' | 'csv'. Defaults to 'markdown'.

    Returns:
        Market index data with: 指数名称, 当前点位, 涨跌点数, 涨跌幅, 成交量, 成交额
    
get_lhb_detailA
    Fetches Long-Hu-Bang (龙虎榜) detail data.
    
    Long-Hu-Bang shows stocks with significant trading activity by institutional investors.
    Data source: Eastmoney via Akshare.

    Args:
        start_date: Start date in format 'YYYYMMDD'. Defaults to 3 days ago.
        end_date: End date in format 'YYYYMMDD'. Defaults to today.
        top_n: Number of records to return. Defaults to 20.
        format: Output format: 'markdown' | 'json' | 'csv'. Defaults to 'markdown'.

    Returns:
        Long-Hu-Bang data with: 代码, 名称, 上榜日期, 收盘价, 涨跌幅, 净买额, 买入额, 卖出额, 上榜原因, 解读
    
get_north_moneyA
    Fetches northbound money flow data (北向资金).
    
    Northbound money refers to foreign capital flowing into A-shares via Hong Kong.
    Data source: Eastmoney via Akshare.

    Args:
        format: Output format: 'markdown' | 'json' | 'csv'. Defaults to 'markdown'.

    Returns:
        Northbound money flow data with: 日期, 当日净买额, 当日资金流入, 当日资金余额
    
get_limit_up_downC
    Fetches daily limit up and limit down stock statistics (涨跌停统计).
    
    Shows count of stocks hitting daily price limit (up or down).
    Data source: Eastmoney via Akshare.

    Args:
        format: Output format: 'markdown' | 'json' | 'csv'. Defaults to 'markdown'.

    Returns:
        Statistics with: 日期, 涨停数量, 跌停数量
    
get_limit_up_poolB
    Fetches limit up stocks pool (涨停股池).
    
    Returns detailed list of stocks hitting daily upper price limit.
    Data source: Eastmoney via Akshare.

    Args:
        date: Date in format 'YYYYMMDD'. Defaults to today.
        top_n: Number of stocks to return. Defaults to 30.
        format: Output format: 'markdown' | 'json' | 'csv'. Defaults to 'markdown'.

    Returns:
        Limit up stocks with: 代码, 名称, 涨跌幅, 最新价, 封板资金, 连板数, 首次封板时间, 所属行业
    
get_limit_down_poolA
    Fetches limit down stocks pool (跌停股池).
    
    Returns detailed list of stocks hitting daily lower price limit.
    Data source: Eastmoney via Akshare.

    Args:
        date: Date in format 'YYYYMMDD'. Defaults to today.
        top_n: Number of stocks to return. Defaults to 30.
        format: Output format: 'markdown' | 'json' | 'csv'. Defaults to 'markdown'.

    Returns:
        Limit down stocks with: 代码, 名称, 涨跌幅, 最新价, 成交额, 流通市值
    
get_stock_money_flowA
    Fetches individual stock money flow data (个股资金流向).
    
    Shows capital flow breakdown by investor size categories.
    Data source: Eastmoney via Akshare.

    Args:
        code: Stock code (e.g., '600519' or 'sh600519').
        top_n: Number of recent days to return. Defaults to 10.
        format: Output format: 'markdown' | 'json' | 'csv'. Defaults to 'markdown'.

    Returns:
        Money flow data with: 主力净流入, 超大单, 大单, 中单, 小单 净额和占比
    
get_consecutive_limit_upA
    Fetches consecutive limit up stocks (连板股).
    
    Returns stocks that have been limit up for consecutive days.
    Data source: Eastmoney via Akshare.

    Args:
        date: Date in format 'YYYYMMDD'. Defaults to today.
        top_n: Number of stocks to return. Defaults to 30.
        format: Output format: 'markdown' | 'json' | 'csv'. Defaults to 'markdown'.

    Returns:
        Consecutive limit up stocks with: 代码, 名称, 连板数, 涨停统计, 所属行业
    
get_company_newsB

Return unclassified company news/disclosures with source/time/link diagnostics.

    code is a six-digit A-share code; scope is all/news/announcements.
    limit controls returned records, no_cache forces fresh source queries.
    
get_price_historyC

Same history route/fields as a-share-data fetch_history: Tencent, Sina and Eastmoney with explicit adjustment support.

    Explicit raw/qfq/hfq contract matches the skill; unsupported sources are skipped.
    Legacy get_historical_k_data retains Baostock's explicit adjustment semantics.
    
get_financialsC

Same current Eastmoney/Sina indicators and period filters as a-share-data fetch_history.

    kind=financials/profit/growth/balance/cashflow/dupont. Cashflow/DuPont are related indicators,
    not a full statement or a verified decomposition. Legacy Baostock tools remain available.
    
get_industry_infoC

Same Eastmoney company/industry query as a-share-data fetch_history --industry.

    Legacy get_stock_industry uses Baostock's CSRC taxonomy; standards are not interchangeable.
    
get_boards_summaryC

Same DangInvest industry/concept heatmap as a-share-data fetch_danginvest --summary.

    mode=major/sub/concept. Preserve tradeDate/snapshotTsMs/stale; stale is not today's data.
    
get_board_membersD

Same DangInvest board-detail query as the skill; use groupKey from summary.

get_market_newsD

Same DangInvest market-news JSON/freshness as a-share-data fetch_danginvest --news.

get_industry_dataC

Canonical skill industry directory/members/index history. Explicit SW/Eastmoney taxonomies; current constituents, not historical membership.

get_stock_conceptsA

Company concepts and provider-written reasons. THS includes all displayed regular/emerging/other categories; Eastmoney is IS_PRECISE=1 only. Preserve taxonomy, raw records and unknown evidence dates. source=all/ths/eastmoney; max_pages=1..20; max_seconds=1..30. No semantic filtering or cross-source deduplication.

get_corporate_actionsA

Raw unlock schedules, repurchase progress or disclosed holder changes. kind=unlock/repurchase/holder_changes. Dates use FREE_DATE/UPDATEDATE/NOTICE_DATE respectively, inclusive. Without code require bounded start/end (up to366 days), except unlock defaults to next30 calendar days including today. days=1..366; direction=all/increase/decrease (holders only); limit=1..5000; max_pages=1..50; max_seconds=1..30. Partial pagination is explicit. Planned and actual amounts remain separate; holder changes do not establish complete future reduction plans.

get_market_pool_detailsA

Raw limit-up/broken-board pool with seal times, open counts, funds and provider fields. kind=up/broken; source=auto/eastmoney/ths; market=all/shsz. Omitted date allows latest returned snapshot, but explicit mismatched dates require allow_date_fallback. THS excludes Beijing; all-market fallback requires allow_partial_scope and returns partial. limit=1..5000; max_pages=1..50; max_seconds=1..30. Always preserve actual trade_date and source attempts; no snapshot does not prove no limit-ups.

get_lhb_seatsB

Dragon-Tiger buy/sell seats for an exact stock/date using current BUY/SELL protocol. Preserve raw BUY/SELL/NET (CNY), percentage ratios, EXPLANATION and TRADE_ID; no cross-reason seat deduplication. Each side has pagination/error diagnostics. max_pages=1..50; max_seconds=1..30.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

C2.4/5.0

Scored across 67 tools

Disambiguation1/5

Many tools appear to do the same thing: get_historical_k_data and get_price_history both fetch price history; get_realtime_kline and get_intraday_minute_kline overlap heavily; get_financials duplicates the many quarterly financial tools plus get_fina_indicator; and multiple limit-up/industry tools provide competing routes. The descriptions sometimes explain legacy vs new semantics, but an agent can easily misselect among near-duplicates.

Naming Consistency4/5

Almost all tools use snake_case and most follow a get_* pattern. A few helpers use non-get verbs (is_trading_day, previous_trading_day, next_trading_day, normalize_stock_code, list_industries), but the overall convention remains readable and predictable.

Tool Count1/5

With 67 tools, the surface is far too large for a coherent MCP server. Many tools are legacy duplicates or narrow variants, making the set unwieldy and increasing selection risk.

Completeness4/5

The server covers a broad A-share data domain: realtime quotes, historical K-lines, financial statements, indices, industry classifications, news, money flow, limit-up pools, corporate actions, and trading calendars. Minor gaps remain, but core data workflows are well represented.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues