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

NameTypeRequiredDescription
stock_codestringyes6-digit A-share stock code, e.g. “688787”.
pdf_urlstringnoDocument link exactly as returned by cninfo_disclosure_search (pdf_url).
announcement_idstringnoAnnouncement id as returned by cninfo_disclosure_search (announcement_id). Needs date.
datestringnoAnnouncement date YYYY-MM-DD; used with announcement_id.
title_containsstringnoPick 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.
sincestringnoStart date YYYY-MM-DD for title_contains.
untilstringnoEnd date YYYY-MM-DD for title_contains (default today).
keywordstringnoReturn passages containing this text (case-insensitive) instead of whole pages.
context_charsnumbernoCharacters of context either side of a keyword match (default 100, max 400).
limitnumbernoPassages per response in keyword mode (default 10, max 50).
offsetnumbernoPassages to skip in keyword mode (use the returned next_offset).
pagenumbernoFirst page to return in page mode (default 1).
max_pagesnumbernoPages 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

FieldTypeDescription
foundbooleanfalse when the announcement or document could not be read; see reason
reasonstringWhy nothing was returned (announcement_not_found, page_out_of_range, encrypted, not_pdf, no_pages)
messagestringPlain-words explanation when found is false
sourcestringPublisher and dataset
stock_codestring6-digit A-share code
companystring | nullCompany short name when resolved from the announcement list
titlestring | nullAnnouncement title when resolved from the announcement list
announcement_idstring | nullCNINFO announcement id
announcement_datestring | nullAnnouncement date YYYY-MM-DD (China time) when resolved
total_pagesnumberPages in the document
document_bytesnumberSize of the document fetched
other_matchesarrayOther announcements matching title_contains
keywordstringKeyword searched (keyword mode)
matches_totalnumberTotal keyword matches in the document
returnednumberPassages in this response
next_offsetnumber | nulloffset for the next passages, null at the end
pages_without_textnumberPages with no text layer
section_notestringHow section headings are derived
passagesarrayKeyword passages
page_fromnumberFirst page returned (page mode)
page_tonumberLast page returned (page mode)
next_pagenumber | nullNext page to request, null at the end
notestringWarning, e.g. pages with no text layer
pagesarrayPage 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.

Regenerated from source · build November 29, 2026