Skip to main content
Glama

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

ashare_snapshot

全字段行情画像:价格 + 盘口(买五卖五+委差)+ 估值(PE TTM/动/静 + PB)+ 市值(流通/总)+ 股本(流通/总)+ 打板(涨停/跌停价 + 量比 + 振幅 + 涨速)+ 标识(证券类型/股票状态/币种)+ 外盘/内盘。用户问'这股票估值怎么样/PE PB 多少/市值多大/股本多少/涨停价多少/涨停跌停板在哪'用这个。⚠️ 与 ashare_quote 的分工:quote 轻(8 字段)免费;本工具全(35 字段)· 付费——只要现价/涨跌用 ashare_quote 更轻(字段少、省上下文)。✅ 计费 = 次数:本工具 1 次拿全——要估值+市值+股本+涨停价多项时,比分别调 quote/valuation/orderbook 更省次数(3 次 → 1 次)。⚠️ 仅 A 股(港股/美股字段布局不同,用 ashare_quote)——传其他市场返回空,不返回错数据。⚠️ 单位:量=手 · 成交额=万元 · 市值=亿元 · 股本=股 · 比率=百分数。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesA 股代码:sh600667 / 600667 / sz300750

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / code / description
      Previous value: -"股票代码:sh600667 / hk00700 / usAAPL"New value: +"A 股代码:sh600667 / 600667 / sz300750"
  2. Added

TDQS

A4.7/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. It discloses that this tool is paid while ashare_quote is free, that billing is per call, that non-A-share inputs return empty rather than wrong data, and that units are standardized. This is substantial behavioral context beyond the schema.

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

Conciseness5/5

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

The description is long but dense and clearly structured with bolded headings and line breaks. Each section contributes distinct value: field inventory, user intents, sibling routing, cost model, market restriction, and units. Nothing feels redundant or decorative.

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?

Given one parameter, an output schema, and no annotations, the description covers everything an agent needs: what data is included, when to use it, when not to, what it costs, what happens for unsupported markets, and unit conventions. The output schema handles return-value detail, so no critical context is missing.

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 description coverage is 100%: the only parameter `code` is already documented as an A-share code with format examples. The description reinforces the A-share restriction and empty-return behavior, but adds no new parameter syntax or format details, so the baseline of 3 applies.

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 resource ('全字段行情画像') and enumerates exactly what it returns: price, order book, valuation, market cap, shares, limit-up/down prices, identifiers, and internal/external offer. It also names the sibling tool ashare_quote and explains the core difference, so an agent can select this tool without opening other 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?

It gives explicit trigger phrases ('用户问...用这个'), direct comparison with ashare_quote ('只要现价/涨跌用 ashare_quote 更轻'), and a market exclusion ('仅 A 股...用 ashare_quote'). It also covers billing trade-offs, telling the agent when calling this tool once is cheaper than multiple quote/valuation/orderbook calls.

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