Skip to main content
Glama

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

ashare_fund_batch

⭐ 批量资金流:一次拿多只股票的资金流(主力资金 + 龙虎榜 + 大宗 + 融资融券),每只一条记录。用户问'这几只股票的资金流/扫一下我这个池子的主力资金/一个行业谁在流入'用这个。⚠️ 与 ashare_fund 的区别:本工具一次给多只,ashare_fund 只查一只。⚠️ 用法:codes 用逗号分隔,如 sh600519,sz000001,sz300750;支持裸 6 位码(000099)也支持带前缀(sz000099)。⚠️ 返回结构:data 是数组,每项含 code / ok / data(或 error),逐只标明成功与否;同时给 requested / returned / failed 计数 —— ⛔ 不要假设 ok:true 就等于每只都有数据,务必按 data[i].ok 逐只判。⚠️ 上限:专业版(¥99)单次最多 200 只(约一个行业),机构版(¥199)1000 只。⚠️ 计费:按实际返回只数扣次数(失败的不计)。⚠️ 标的范围:资金流数据仅覆盖 A 股(sh/sz/bj);港股仅主力净流入一项,美股无资金流数据(该只会标 ok:false)。⚠️ 付费工具(需 Key):专业版(¥99)及以上,标准版不可用。

Input Schema

NameRequiredDescriptionDefault
codesYes股票代码,多个用逗号分隔:sh600519,sz000001(专业版 ≤200 只 · 机构版 ≤1000 只)

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(专业版 ≤200 只 · 不限量版 ≤1000 只)"New value: +"股票代码,多个用逗号分隔:sh600519,sz000001(专业版 ≤200 只 · 机构版 ≤1000 只)"
  2. Added

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 burden and does so thoroughly: paid tier requirement (¥99+), per-call caps (200 pro / 1000 institutional), billing by actual returned count (failures not charged), market coverage (A-shares full; HK only main net inflow; US returns ok:false), and a critical warning that ok:true on the array does not guarantee per-stock data. That last point is exactly the kind of behavior an agent cannot infer from schema or annotations.

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 purpose and the sibling distinction, then organized into labeled warnings (usage, return structure, caps, billing, coverage, paywall). It is dense but every section earns its place; the caps and comma-separated format are repeated from the schema, which is minor redundancy for a paid tool.

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 crucial interpretive guidance: data is an array of code/ok/data-or-error entries with requested/returned/failed counts. Combined with the paywall, cap, and market-coverage disclosures, an agent has everything needed to call it correctly and interpret partial failures.

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 format semantics beyond the schema: comma-separated lists, bare 6-digit codes (000099) are accepted in addition to prefixed codes (sz000099), and it reiterates the tier-based count limits. This meaningfully reduces malformed-input risk.

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?

The description states a specific verb and resource in the opening line: batch fund flow for multiple stocks, covering main funds + LHB + block trades + margin trading, one record per stock. It explicitly names the sibling it differs from (ashare_fund returns one stock; this returns many), so an agent can select it 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?

It gives concrete user-question triggers ('these stocks' fund flow', 'scan my pool's main funds', 'which stocks in an industry have inflows') and a direct exclusion rule versus ashare_fund. When to use and when not to use are both explicit.

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