Skip to main content
Glama

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

ashare_quote_batch

⭐ 批量行情:一次拿多只股票的行情,逐只标明成功与否。用户问'这几只现在什么价/扫一下我这个池子/一个行业现在的行情'用这个。⚠️ 与 ashare_quote 的区别:本工具一次给多只,且返回逐只状态({code, ok, data})—— 缺了哪只一眼可见;ashare_quote 只查一只,虽然它的 code 也接受逗号,但返回混在一起、缺了哪只要自己算。⚠️ 为什么值得单开一次调用:自己循环 300 只 = 300 次调用 × 约 0.7 秒 ≈ 3.5 分钟(还会撞限频退避);本工具实测 4 秒左右拿完 300 只。⚠️ 用法:codes 逗号分隔,如 sh600519,sz000001,sz300750;支持裸 6 位码(600519)也支持带前缀。⚠️ 返回:data 数组,每项 {code, ok, data}(或 error),取几只就回几个条目;同时给 requested / returned / failed。count 默认 1(只取最新一条);要 N 天历史传 count=N(每只各 N 条)。⚠️ 换手率字段名是 turnover(%,与 ashare_quote 同名同值)。⚠️ 上限:专业版(¥99)单次 200 只,机构版 1000 只;按实际返回只数计费。⚠️ 付费工具:专业版(¥99)及以上,标准版不可用。

Input Schema

NameRequiredDescriptionDefault
endNo结束日期 YYYY-MM-DD(可选)
codesYes股票代码,多个用逗号分隔:sh600519,sz000001(专业版 ≤200 只 · 机构版 ≤1000 只)
countNo每只返回几条(默认 1,只取最新)
startNo起始日期 YYYY-MM-DD(可选)
periodNo周期:day / week / month(默认 day)day

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?

No annotations are provided, so the description carries the full burden and does: it discloses the per-item result shape, requested/returned/failed counters, the paid-tier requirement (专业版 ¥99+, 标准版 unavailable), per-call caps (200/1000 codes), billing by actually-returned rows, and rate-limit avoidance. That is exactly the operational context an agent needs before committing a paid call.

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 action and the sibling comparison, and nearly every line carries information (cost, format, limits, billing). It is long and the repeated ⚠️ markers plus emoji add visual noise that slightly dilutes scanability, but there is little genuinely wasted text.

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, the description supplies the tier gating, per-call ceiling, billing basis, code formatting rules, and per-stock status semantics — everything needed to invoke this paid batch tool correctly. No material gap remains.

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 still adds real meaning — comma-separated `codes` with an example, acceptance of bare 6-digit or prefixed codes, `count` semantics as 'per stock N rows' with default 1, and the `turnover` field name for the percent field. Minor omission: no mention of `start`/`end`/`period` interaction with `count`.

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 the specific action (batch quotes for multiple stocks at once) and the distinguishing output shape (per-stock `{code, ok, data}` status). It explicitly names the sibling ashare_quote and how it differs ('only one stock, results mixed together'), so an agent can pick between them without opening schemas.

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 ('这几只现在什么价 / 扫一下我这个池子 / 一个行业现在的行情') plus an explicit contrast section with ashare_quote, including the cost argument (300 sequential calls ≈ 3.5 min vs ~4s here). Both when-to-use and why-not-the-alternative are covered.

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