Skip to main content
Glama

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

ashare_notice

上市公司公告。不传 id ⇒ 列表(code 必填,支持 type / limit / offset 翻页,可回溯约 20 年);传 id ⇒ 该公告详情。用户问'公告/披露/半年度报告/年报在哪'用这个。⚠️ 详情有两种形态(实测约 9/10 给正文):多数短公告 ⇒ text=正文(直接读);少数长报告(如半年报 100+ 页)⇒ text 空、url=PDF 链接。⇒ 判据:先看 text,空则用 url。⚠️ 长报告的 PDF 请自行获取与解析(用你环境里的 PDF 能力)——我们只给链接,不代做解析。💡 要财务数字请用 ashare_finance(结构化,比从 100+ 页 PDF 里抠快得多)。⚠️ 支持港股 / 美股(hk00700 / usAAPL)—— 条数与回溯年限按市场而异。

Input Schema

NameRequiredDescriptionDefault
idNo公告 id(如 nos1225475868)——传它就取详情
codeNo股票代码(取列表时必填)
typeNo可选:公告类型 0-7
limitNo条数(默认 50,上限 100)
offsetNo偏移量(有效,0 ~ total−1)

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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 so: it discloses that detail responses come in two shapes (body `text` in ~9/10 cases, empty `text` + PDF `url` for long reports), gives the decision rule (check `text` first, fall back to `url`), and states the caller must fetch and parse PDFs itself. It also warns that coverage depth differs for HK/US tickers (`hk00700`, `usAAPL`) and that list mode reaches back ~20 years.

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 mode split, then the caller-relevant warnings, which is the right ordering. It is somewhat dense with ⚠️/💡 markers and restates the text-then-url rule twice, but every sentence carries operational information rather than filler.

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?

An output schema exists, yet the description still supplies the one thing the schema cannot: which response shape to expect and how to recover content from the PDF case. Combined with the sibling routing hint and market-coverage caveat, an agent has everything needed to call this correctly on the first try.

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 goes further by tying `code` to list mode as a hard requirement and explaining that `type`/`limit`/`offset` drive paging with a ~20-year回溯 window that varies by market. It does not expand on the `type` 0-7 enum values, which remain opaque in both schema and description.

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 two distinct modes (list vs. detail) triggered by the presence of `id`, which is a precise operational split an agent can act on. It also names sibling `ashare_finance` and steers financial-number queries away from this tool, so it is distinguishable without opening any 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?

Explicit when-to-use: user asking '公告/披露/半年度报告/年报在哪' should call this; explicit when-not-to-use: financial figures belong to `ashare_finance`. It also gives the routing rule between the two modes (no id ⇒ list, id ⇒ detail) rather than leaving it 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