Skip to main content
Glama

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

ashare_finance_batch

⭐ 批量财务报表:一次拿多只的利润表 / 资产负债表 / 现金流量表,逐只标明成功与否。用户问'这几只的营收/净利/ROE/负债率/经营现金流怎么样'用这个。⚠️ 与 ashare_finance 的关系:/v1/finance 的 code 虽支持逗号,但返回是扁平的 3 张表,哪只没回来、为什么没回来完全看不出来 ⇒ 多只请用本工具;只查一只也可以用它(codes 传一个即可)。⚠️ 上限:专业版 10 只 / 不限量 20 只,且「只数 × 期数 ≤ 40」 —— 财报数据源的配额按「只 × 期」消耗:实测 10 只 × 4 期 4.2 秒三次全中、20 只 × 2 期 全中;但 20 只 × 4 期 只回 5 只、50 只直接限频。要更多请分批调用(每批间隔几秒)。⚠️ 用法:codes 逗号分隔(sh600519,sz000001),支持裸 6 位码;periods 每只取几期(默认 4,最多 12,降序最新在前);type 可只取一张表(income / balance / cashflow,省略=三张全取);fields 取 all(默认 186 列)或 core(69 列,载荷约 1/3)。⚠️ 返回:data 数组,每项 {code, ok, data}(或 error),取几只回几个条目;每项内部是 market + tables[{title,slug,rows}] + data{slug: rows}(slug = income / balance / cashflow);同时给 requested / returned / failed。⚠️ 仅 A 股(sh/sz/bj);港股/美股会标 ok:false 并提示改用单只查询。⚠️ 按实际返回只数计费,失败的不计(命中限频会自动退还次数)。⚠️ 付费工具:专业版(¥99)及以上,标准版不可用。

Input Schema

NameRequiredDescriptionDefault
typeNo只取一张表:income / balance / cashflow(省略=三张全取)
codesYes股票代码,多个用逗号分隔:sh600519,sz000001(专业版 ≤10 只 · 机构版 ≤20 只)
fieldsNo字段范围:all(默认 186 列)/ core(69 列,载荷约 1/3)all
periodsNo每只返回期数(默认 4,最多 12,降序最新在前)

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / codes / description
      Previous value: -"股票代码,多个用逗号分隔:sh600519,sz000001(专业版 ≤10 只 · 不限量版 ≤20 只)"New value: +"股票代码,多个用逗号分隔:sh600519,sz000001(专业版 ≤10 只 · 机构版 ≤20 只)"
  2. Added

TDQS

A4.8/5.0
Behavior5/5

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

No annotations are provided, so the description carries the full burden and does: response shape per item ({code, ok, data} or error), requested/returned/failed counts, A-share-only scope with ok:false fallback for HK/US, rate-limit behavior, billing by actually-returned stocks with refunds on throttling, and the paid-tier requirement (Pro ¥99+). This is unusually complete disclosure for a mutation-free but quota-sensitive tool.

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 and the sibling differentiation, then organized under ⚠️ headers for limits/usage/return/billing. It is dense and long, with some repetition (the 10/20-stock cap appears in both the limits block and the codes guidance), but given the tool's quota and billing complexity nearly every sentence earns its place.

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?

Even though an output schema exists (so return values needn't be explained), the description still tells the agent what comes back and how failures are represented, plus the tier gate, quota math, and market scope. Nothing needed to call this correctly is missing.

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 the baseline is 3, but the description adds real meaning beyond it: comma-separated codes with bare 6-digit support, periods defaulting to 4 with max 12 and descending newest-first ordering, and the coupling constraint that stock count × periods consumes quota. Only minor duplication with the schema keeps it from a 5.

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: batch financial statements (income/balance/cashflow) for multiple stocks, with per-stock success marking. It explicitly distinguishes itself from sibling ashare_finance, noting that /v1/finance returns a flat 3-table blob where you cannot tell which stock failed. An agent can pick correctly without opening either schema.

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 concrete trigger phrasing (users asking about revenue/net profit/ROE/debt ratio/operating cash flow for several stocks), names the alternative (ashare_finance) and the condition that selects it (multi-stock, needs per-stock ok/error). Adds hard limits (Pro 10 / unlimited-tier 20, stocks × periods ≤ 40), worked examples of where quotas break, and the batching strategy with interval guidance.

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