Skip to main content
Glama

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

ashare_chip_batch

⭐ 批量筹码分布:一次拿多只的获利盘比例 / 平均成本 / 90%·70% 集中度,逐只标明成功与否。用户问'这几只的筹码集中吗/套牢盘多不多/平均成本多少/抛压大不大'用这个。⚠️ 与 ashare_chip 的关系:/v1/chip 的 code 虽支持逗号,但返回是横向并排的 N×8N 对角矩阵(第 i 行只有第 i 组有值、其余全是 -),pandas 一行都拼不出来,而且无效代码的整组列会直接消失,少了哪只算不出来 ⇒ 多只请用本工具;只查一只也可以用它(codes 传一个即可)。⚠️ 为什么值得单开一次调用:/v1/chip 问 200 只 = 200 次调用;本工具实测 200 只 3.9 秒。⚠️ 用法:codes 逗号分隔(sh600519,sz000001),支持裸 6 位码;date 对所有代码同时生效(非交易日自动回退到最近交易日,以返回行的 date 为准)。⚠️ 返回:data 数组,每项 {code, ok, data}(或 error),取几只回几个条目;同时给 requested / returned / failed。⚠️ 仅沪深 A 股(sh/sz/bj)—— 港股/美股/板块会标 ok:false 并提示改用单只查询。⚠️ 历史仅保留约近 1 年。⚠️ 上限:专业版单次 200 只,机构版 300 只;按实际返回只数计费。⚠️ 付费工具:专业版(¥99)及以上,标准版不可用。

Input Schema

NameRequiredDescriptionDefault
dateNo交易日 YYYY-MM-DD(可选,默认最新;对所有代码生效)
codesYes股票代码,多个用逗号分隔:sh600519,sz000001(专业版 ≤200 只 · 机构版 ≤300 只)

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

TDQS

A4.2/5.0
Behavior3/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 it does disclose a lot: paid tiers (Pro ¥99+), per-call caps of 200/300, billing by actually returned rows, ~1 year of history, A-share-only scope with ok:false for HK/US/sector codes, and non-trading-day fallback. It stops short of describing failure modes like rate limits or partial-timeout behavior, so it is strong but not exhaustive.

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?

Purpose and the sibling comparison are front-loaded, and every section carries distinct information (comparison, performance rationale, usage, return shape, scope, limits, pricing). It is nonetheless heavy with emoji warning markers and bold emphasis, which adds visual noise to an already long block.

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?

With no annotations and an output schema present, the description still covers scope limits, tier caps, pricing, date fallback and the requested/returned/failed envelope. An agent has everything it needs to decide and invoke correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so both parameters are already documented, giving a baseline of 3. The description does add meaning the schema lacks — bare 6-digit codes are accepted, and date applies globally to all codes with automatic fallback to the last trading day.

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 opening line names a specific verb and resource (batch chip distribution) and enumerates the exact metrics returned (profit ratio, average cost, 90%/70% concentration) plus the per-stock success flag. It explicitly distinguishes itself from sibling ashare_chip by explaining the N×8N diagonal-matrix defect of the single-code endpoint.

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 phrasings that should trigger this tool ('are these stocks' chips concentrated / how much is trapped / average cost'), states the alternative (ashare_chip) and why it fails for multiple codes, and notes that single-code queries are still acceptable here. When-to-use, when-not-to-use and the fallback option are all present.

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