Skip to main content
Glama

A股数据 API (A-Share Data API)

ashare_finance

财务报表(利润表/资产负债表/现金流量表,最近 N 期)。用户问'营收/净利润/毛利率/负债/财务数据'用这个。⚠️ 返回三张表:data[0]=利润表 · data[1]=资产负债表 · data[2]=现金流量表;每表按期次降序(最新一期在最前)。⚠️ 只要估值倍数(PE/PB)请用 ashare_sector_valuation 或 ashare_quote 的估值字段。只读查询;按财报披露节奏更新(未到披露日就没有新数据,不是故障)。⚠️ 支持港股(代码 5 位 hk00700)。港股的报表期次/字段口径以返回为准,⛔ 别按 A 股列名硬解析。

Input Schema

NameRequiredDescriptionDefault
numNo期数(默认 4)
codeYes股票代码:sh600667

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / code / description
      Added value: +"股票代码:sh600667"
    • addedInput schema / properties / num / description
      Added value: +"期数(默认 4)"
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description carries the full disclosure burden and does: read-only, update cadence tied to disclosure dates with a note that missing periods are not a fault, HK support, and a warning not to hard-parse HK column names against A-share conventions. It also reveals the return shape (three tables in fixed index order, descending by period).

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?

Front-loaded with the core purpose, then grouped warnings; every warning carries distinct information (table order, sibling routing, refresh cadence, HK parsing). Dense with repeated ⚠️ markers and bold, which is slightly noisy, but there is little outright filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite an output schema existing, the description adds the one thing the schema cannot convey cheaply: which index is which statement and the descending period ordering. Combined with the freshness caveat and HK caveat, an agent has everything needed to call and interpret the result.

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 coverage is 100%, so baseline is 3; the description adds real meaning on top by characterizing num as '最近 N 期' and, more importantly, documenting the HK code format `hk00700` that the schema's example (`sh600667`) does not cover. It stops short of spelling out edge cases such as num=0 or the maximum value.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource set (利润表/资产负债表/现金流量表, 最近 N 期) and explicitly maps conversational intents (营收/净利润/毛利率/负债) to this tool. It is clearly distinguishable from valuation siblings by the note that PE/PB belong elsewhere.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use triggers ('用户问…用这个') and explicit when-not-to-use with named alternatives (ashare_sector_valuation / ashare_quote 的估值字段). The exclusion is unambiguous, so an agent can route without guessing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources