Skip to main content
Glama

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

ashare_news

个股财经资讯。不传 id ⇒ 列表(标题 + 来源 + 时间);传 id ⇒ ⭐ 该条完整正文。用户问'这股票最近有什么新闻/消息面/这条新闻讲了什么'用这个。⭐ 正文是干净的 Markdown(已清洗 HTML 标签/图片占位/无效内链,保留股票代码关联如 茅台(sh600519),时间 YYYY-MM-DD HH:MM:SS)—— 可直接喂给大模型。⚠️ 列表只有最新 N 条(不提供翻页/历史)—— 要历史公告请用 ashare_notice。⚠️ 列表里的 url 指向动态页面,直接抓不到正文 ⇒ 要正文请用本工具的 id 参数。⚠️ 标的范围:A 股 / 港股(hk00700)/ 美股(usAAPL)/ 指数 / ETF / 板块 / 可转债。

Input Schema

NameRequiredDescriptionDefault
idNo资讯 id(如 SN20261010173533a6c32421)——传它就取完整正文
codeNo个股/指数/ETF/板块代码:sh600519(取列表时必填)
typeNo可选:按资讯类型过滤(传 1 只返「研报」类)
limitNo条数(默认 50,上限 100)

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / code / default
      Added value: +""
    • changedInput schema / properties / code / description
      Previous value: -"个股/指数/ETF/板块代码:sh600519"New value: +"个股/指数/ETF/板块代码:sh600519(取列表时必填)"
    • addedInput schema / properties / id
      Added value: +{
      +  "default": "",
      +  "description": "资讯 id(如 SN20261010173533a6c32421)——传它就取完整正文",
      +  "title": "Id",
      +  "type": "string"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "code"
      -]
  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 it well: it discloses that the list returns only the latest N items with no pagination or history, that the body is cleaned Markdown suitable for direct LLM consumption, and that returned codes preserve instrument links like 茅台(sh600519). It also defines the supported instrument universe (A-shares, HK, US, indices, ETFs, sectors, convertibles).

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 id/no-id distinction and every warning carries actionable information; nothing is padding. However the heavy bolding and ⚠️/⭐ symbols make it visually dense and slightly harder to scan than a plain two-part structure would be.

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 4-param tool with an output schema, the description supplies everything needed: response shape per mode, pagination limits, body format and cleanliness, code-link conventions, timestamp format, and instrument coverage. The output schema can handle field-level return details.

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 description coverage is 100%, so the baseline is 3, but the description adds real semantic value beyond the schema: it explains the id/no-id branching that governs the entire response shape and clarifies why the url from list mode is useless for retrieving a body. It does not add gifting beyond that, e.g. no detail on how type values other than 1 behave.

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 a specific resource (个股财经资讯) and splits behavior by mode: no id = list (title+source+time), id = full article body. It explicitly names the sibling ashare_notice for historical announcements, so an agent can distinguish it from related tools 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 explicit trigger phrasing ('这股票最近有什么新闻/消息面/这条新闻讲了什么') and an explicit exclusion with the alternative (historical announcements → ashare_notice). It also warns that the list's url is a dynamic page that cannot be fetched, so the agent knows to switch to the id parameter instead.

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