Skip to main content
Glama

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

ashare_snapshot_batch

⭐ 批量全字段画像:一次拿多只股票的完整画像(35+ 字段:价格/盘口五档/PE·PB/市值/股本/涨停跌停价/量比/振幅/涨速/外盘内盘),逐只标明成功与否。用户问'这几只的估值/市值/市盈率/是不是涨停/扫一下我这个池子的基本面'用这个。⚠️ 与 ashare_snapshot 的区别:本工具一次给多只,ashare_snapshot 只查一只。⚠️ 为什么值得单开一次调用:ashare_snapshot 扫 100 只 = 100 次调用 ≈ 30 秒;本工具实测 300 只 0.40 秒(比 ashare_quote_batch 还快 10 倍)。⚠️ 用法:codes 逗号分隔(sh600519,sz000001),支持裸 6 位码。⚠️ 返回:data 数组,每项 {code, ok, data}(或 error),取几只回几个条目;同时给 requested / returned / failed。⚠️ 仅 A 股(sh/sz/bj)—— 港股/美股会标 ok:false 并提示改用 ashare_quote(字段布局不同,⛔ 宁可不给也不返回错数据)。⚠️ 单位:volume 手 · amount 万元 · 市值 亿元 · 股本 股 · 比率/涨幅 百分数。⚠️ 上限:专业版单次 200 只,机构版 250 只;按实际返回只数计费。⚠️ 付费工具:专业版(¥99)及以上,标准版不可用。

Input Schema

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

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

TDQS

A4.5/5.0
Behavior4/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 well: it discloses per-item success/failure semantics, hard caps (200 professional / 250 institutional), that billing is per actually-returned stock, the paid-tier requirement, and that non-A-share codes return ok:false rather than wrong data. It stops short of describing pagination/rate-limit behavior or what happens on a partially invalid code list.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The bolding front-loads purpose well, but the description is a wall of repeated ⚠️ blocks with emoji, and the size cap appears twice (in 上限 and again in the parameter description and 付费工具 line). The speed benchmark is persuasive but sprawling; it could be compressed without losing information.

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?

For a one-parameter batch tool with an output schema and no annotations, this covers everything an agent needs: what it returns, per-item error semantics, units (手/万元/亿元/股/百分数), market scope, size limits, and cost implications. Output schema means return shape needn't be fully spelled out, and it is anyway.

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; the description adds genuinely new meaning beyond the schema by stating that bare 6-digit codes are accepted in addition to prefixed sh/sz/bj codes, and repeats the per-tier caps as a calling constraint. Format examples and failure behavior for foreign codes are clarified.

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?

Opens with a specific verb+resource: batch full-field profiles for multiple stocks, listing the 35+ field groups covered. It explicitly contrasts with the sibling ashare_snapshot ('本工具一次给多只,ashare_snapshot 只查一只'), so an agent can route 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 user-phrasing triggers ('这几只的估值/市值/市盈率/是不是涨停'), names the single-stock alternative and the batch quote alternative, and states a when-NOT-to-use case: HK/US codes belong to ashare_quote because the field layout differs. Nothing is left to inference.

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