cninfo_announcement_text
Pack: china-disclosures · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/cninfo_announcement_text for the schema, then POST the same URL with its arguments for the data.
Returns the text of a CNINFO A-share announcement by page, or keyword passages with page numbers and sections.
Tool description as the model sees it
Reads the TEXT of one A-share listed-company announcement from CNINFO, the official disclosure platform for Shenzhen and Shanghai (STAR Market included): an annual report, interim report, prospectus or notice, page by page, or only the passages that contain a keyword with their page numbers and section headings. Answers “what does the 2024 annual report of 688787 say about X”, “which page of the annual report mentions 研发投入”, “give me the sentences about customers and their section”. Identify the announcement with the pdf_url returned by cninfo_disclosure_search, or with announcement_id + date, or with title_contains (e.g. “年度报告”) + since. Reports run to hundreds of pages, so reading is paged: use keyword to find passages (searches every page, paged by offset), or page + max_pages to read a page range (paged by the returned next_page). Reads the document’s own text layer; a scanned or encrypted PDF returns empty pages with a note. Search keywords must match the Chinese text exactly.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
stock_code | string | yes | 6-digit A-share stock code, e.g. “688787”. |
pdf_url | string | no | Document link exactly as returned by cninfo_disclosure_search (pdf_url). |
announcement_id | string | no | Announcement id as returned by cninfo_disclosure_search (announcement_id). Needs date. |
date | string | no | Announcement date YYYY-MM-DD; used with announcement_id. |
title_contains | string | no | Pick the announcement of this stock whose title contains this Chinese text, e.g. “年度报告”. Needs since; the first (latest) match is read and others are listed in other_matches. |
since | string | no | Start date YYYY-MM-DD for title_contains. |
until | string | no | End date YYYY-MM-DD for title_contains (default today). |
keyword | string | no | Return passages containing this text (case-insensitive) instead of whole pages. |
context_chars | number | no | Characters of context either side of a keyword match (default 100, max 400). |
limit | number | no | Passages per response in keyword mode (default 10, max 50). |
offset | number | no | Passages to skip in keyword mode (use the returned next_offset). |
page | number | no | First page to return in page mode (default 1). |
max_pages | number | no | Pages to return in page mode (default 3, max 10; a response is capped near 30,000 characters). |
Example call
Arguments
{
"stock_code": "688787",
"announcement_id": "1223328731",
"date": "2025-04-26",
"keyword": "训练数据",
"limit": 2
}
curl
curl -X POST https://gateway.pipeworx.io/china-disclosures/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"cninfo_announcement_text","arguments":{"stock_code":"688787","announcement_id":"1223328731","date":"2025-04-26","keyword":"训练数据","limit":2}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('cninfo_announcement_text', {
"stock_code": "688787",
"announcement_id": "1223328731",
"date": "2025-04-26",
"keyword": "训练数据",
"limit": 2
});
More examples
{
"stock_code": "688787",
"pdf_url": "https://static.cninfo.com.cn/finalpage/2025-04-26/1223328731.PDF",
"page": 20,
"max_pages": 1
}
Response shape
Always returns: found
| Field | Type | Description |
|---|---|---|
found | boolean | false when the announcement or document could not be read; see reason |
reason | string | Why nothing was returned (announcement_not_found, page_out_of_range, encrypted, not_pdf, no_pages) |
message | string | Plain-words explanation when found is false |
source | string | Publisher and dataset |
stock_code | string | 6-digit A-share code |
company | string | null | Company short name when resolved from the announcement list |
title | string | null | Announcement title when resolved from the announcement list |
announcement_id | string | null | CNINFO announcement id |
announcement_date | string | null | Announcement date YYYY-MM-DD (China time) when resolved |
total_pages | number | Pages in the document |
document_bytes | number | Size of the document fetched |
other_matches | array | Other announcements matching title_contains |
keyword | string | Keyword searched (keyword mode) |
matches_total | number | Total keyword matches in the document |
returned | number | Passages in this response |
next_offset | number | null | offset for the next passages, null at the end |
pages_without_text | number | Pages with no text layer |
section_note | string | How section headings are derived |
passages | array | Keyword passages |
page_from | number | First page returned (page mode) |
page_to | number | Last page returned (page mode) |
next_page | number | null | Next page to request, null at the end |
note | string | Warning, e.g. pages with no text layer |
pages | array | Page texts (page mode) |
Full JSON Schema
{
"type": "object",
"properties": {
"found": {
"type": "boolean",
"description": "false when the announcement or document could not be read; see reason"
},
"reason": {
"type": "string",
"description": "Why nothing was returned (announcement_not_found, page_out_of_range, encrypted, not_pdf, no_pages)"
},
"message": {
"type": "string",
"description": "Plain-words explanation when found is false"
},
"source": {
"type": "string",
"description": "Publisher and dataset"
},
"stock_code": {
"type": "string",
"description": "6-digit A-share code"
},
"company": {
"type": [
"string",
"null"
],
"description": "Company short name when resolved from the announcement list"
},
"title": {
"type": [
"string",
"null"
],
"description": "Announcement title when resolved from the announcement list"
},
"announcement_id": {
"type": [
"string",
"null"
],
"description": "CNINFO announcement id"
},
"announcement_date": {
"type": [
"string",
"null"
],
"description": "Announcement date YYYY-MM-DD (China time) when resolved"
},
"total_pages": {
"type": "number",
"description": "Pages in the document"
},
"document_bytes": {
"type": "number",
"description": "Size of the document fetched"
},
"other_matches": {
"type": "array",
"description": "Other announcements matching title_contains",
"items": {
"type": "object",
"properties": {
"announcement_id": {
"type": [
"string",
"null"
],
"description": "id"
},
"title": {
"type": [
"string",
"null"
],
"description": "title"
},
"date": {
"type": [
"string",
"null"
],
"description": "date"
}
}
}
},
"keyword": {
"type": "string",
"description": "Keyword searched (keyword mode)"
},
"matches_total": {
"type": "number",
"description": "Total keyword matches in the document"
},
"returned": {
"type": "number",
"description": "Passages in this response"
},
"next_offset": {
"type": [
"number",
"null"
],
"description": "offset for the next passages, null at the end"
},
"pages_without_text": {
"type": "number",
"description": "Pages with no text layer"
},
"section_note": {
"type": "string",
"description": "How section headings are derived"
},
"passages": {
"type": "array",
"description": "Keyword passages",
"items": {
"type": "object",
"properties": {
"page": {
"type": "number",
"description": "1-based page number"
},
"section": {
"type": [
"string",
"null"
],
"description": "Nearest preceding 第X节 heading"
},
"subsection": {
"type": [
"string",
"null"
],
"description": "Nearest preceding 一、 heading"
},
"text": {
"type": "string",
"description": "Passage with context"
}
}
}
},
"page_from": {
"type": "number",
"description": "First page returned (page mode)"
},
"page_to": {
"type": "number",
"description": "Last page returned (page mode)"
},
"next_page": {
"type": [
"number",
"null"
],
"description": "Next page to request, null at the end"
},
"note": {
"type": "string",
"description": "Warning, e.g. pages with no text layer"
},
"pages": {
"type": "array",
"description": "Page texts (page mode)",
"items": {
"type": "object",
"properties": {
"page": {
"type": "number",
"description": "1-based page number"
},
"text": {
"type": "string",
"description": "Page text"
}
}
}
}
},
"required": [
"found"
]
}
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the china-disclosures pack
{
"mcpServers": {
"china-disclosures": {
"url": "https://gateway.pipeworx.io/china-disclosures/mcp"
}
}
}
See Getting Started for client-specific install steps.