mcp-hkexnews
This server provides MCP tools to discover, download, parse, and search Hong Kong Stock Exchange (HKEXnews) announcements for listed companies.
List announcements:
list_hkexnews_announcements— find available announcements by stock code, date range, category, or title keyword (excludes full periodic report PDFs).Download announcements:
download_hkexnews_announcement— fetch a specific PDF (HTML fallback) using local_key, news_id, or date/title filters; idempotent.Parse announcements:
parse_hkexnews_announcement— convert downloaded PDF/HTML into page-split JSON using PyMuPDF.Keyword search:
keyword_search— full-text search within a parsed announcement with TF + position boosting, supports ANY/ALL modes and up to 5 keywords.Read pages:
get_announcement_pages— retrieve full page content by page range (default 3 pages, max 5).Diagnostic lookup:
lookup_stock_code— resolve stock code to HKEXnews stockId mapping when other tools fail, with optional cache refresh.Data persistence: Automatically caches company mappings, category tiers, and downloaded/parsed files locally under
~/.agentladle/mcp-hkexnews/data/.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-hkexnewslist announcements for stock 00700"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
AgentLadle MCP HKEXnews
English | 中文
🇨🇳/🇭🇰 Cloud-hosted MCP for A-share & HK listed companies (Past 3 years annual & latest interim reports). Read more | Get API Key
A MCP (Model Context Protocol) server that provides tools for discovering, downloading, parsing, and searching Hong Kong listed company announcements from HKEXnews.
It enables AI assistants (Claude, Cursor, etc.) to access HKEXnews announcement data through 6 structured tools — from discovering available announcements to keyword-searching within their pages.
Scope (v0.1): Announcements and disclosures except full periodic report PDFs (Annual / Interim / Quarterly Report and ESG Report under
t1=40000). Performance announcements (Final / Interim / Quarterly Results) are included.
Features
6 MCP tools for HKEXnews announcement data: state-driven retrieval (search directly, fallback to download/parse only when needed)
PDF document parsing using PyMuPDF — physical page extraction into page-split JSON
Local keyword search with TF + position-boost scoring, zero external search dependencies
Idempotent — already-downloaded/parsed files are automatically skipped
Zero-config install — one line to add to your MCP client, no clone or manual setup needed
Pure Python, cross-platform (Windows / macOS / Linux)
Related MCP server: sfc-data-mcp
Prerequisites
Python 3.10+ — Download Python
uv — Install uv
Note: After installing uv, restart your terminal and MCP client (e.g. Cherry Studio) to ensure the
uvcommand is recognized.
Quick Start
Add to your MCP client configuration (Claude Desktop, Cursor, etc.):
{
"mcpServers": {
"mcp-hkexnews": {
"command": "uvx",
"args": ["agentladle-mcp-hkexnews"]
}
}
}That's it. uvx will automatically download the package and its dependencies from PyPI — no clone, no manual install, no path configuration.
Alternative: pip install
If you prefer managing the environment yourself:
pip install agentladle-mcp-hkexnewsThen configure:
{
"mcpServers": {
"mcp-hkexnews": {
"command": "agentladle-mcp-hkexnews"
}
}
}Alternative: Run from source (local development)
Clone the repository and run directly:
git clone https://github.com/agentladle/mcp-hkexnews.gitThen configure your MCP client:
{
"mcpServers": {
"mcp-hkexnews": {
"command": "uv",
"args": ["run", "--directory", "/path/to/mcp-hkexnews", "agentladle-mcp-hkexnews"]
}
}
}Replace /path/to/mcp-hkexnews with the actual path to the cloned repository.
Data Flow
HKEXnews API Local Files (~/.agentladle/mcp-hkexnews/data/)
────────────── ──────────────────────────────
activestock_sehk_e.json ──→ companies.json (stock_code→stockId mapping)
ListOfSecurities.xlsx ──→ │
tierone/tiertwo JSON ──→ tiers.json (headline category mapping)
│
titleSearchServlet.do ──→ pdf/{LOCAL_KEY}/ (Tool 2: primary PDF/HTML + manifest)
│
PyMuPDF parsing ──→ json/*.json (Tool 3: parse, page-split)
│
Local TF search ──→ search results (Tool 4: keyword search)
Page range read ──→ page content (Tool 5: read pages)Tools
# | Tool | Description |
1 |
| Discover available HKEXnews announcements for a company |
2 |
| Download announcement PDF (HTML fallback); idempotent |
3 |
| Parse PDF/HTML into page-split JSON using PyMuPDF |
4 |
| Full-text keyword search with TF relevance scoring |
5 |
| Read announcement content by page number range |
6 |
| Diagnostic: look up stock_code→stockId mapping when resolution fails |
Tool 1: list_hkexnews_announcements
List available HKEXnews announcements for a company. Use this tool ONLY when the exact date/title is unspecified by the user, or when a download attempt fails due to an ambiguous match. Excludes full periodic report PDFs (Annual / Interim / Quarterly Report and ESG Report under t1=40000).
Parameter | Type | Required | Description |
| string | ✅ | 5-digit HK stock code, e.g. |
| string | ❌ | HKEX t1/t2 code or tier name, e.g. |
| string | ❌ | Start date |
| string | ❌ | End date |
| string | ❌ | Title keyword filter |
| int | ❌ | Max announcements to return, default 10, max 50 |
Tool 2: download_hkexnews_announcement
Download a specific HKEXnews announcement from www1.hkexnews.hk. Prefer local_key from list_hkexnews_announcements when available. Idempotent.
Parameter | Type | Required | Description |
| string | ✅ | 5-digit HK stock code, e.g. |
| string | ❌ | Release date |
| string | ❌ | Title substring to disambiguate same-day announcements |
| string | ❌ | Optional category filter |
| string | ❌ | HKEXnews NEWS_ID if known |
| string | ❌ | Exact local bundle key from list results |
Tool 3: parse_hkexnews_announcement
Parse a downloaded announcement PDF/HTML into page-split JSON. Uses PyMuPDF for PDF physical-page text extraction.
Parameter | Type | Required | Description |
| string | ✅ | Bundle key returned by list/download, e.g. |
Tool 4: keyword_search
Full-text keyword search across all pages. Results ranked by TF + position-boost score.
Parameter | Type | Required | Description |
| string | ✅ | Bundle key |
| string[] | ✅ | 1–5 search keywords |
| string | ❌ |
|
| int | ❌ | Max results to return, default 5, max 50 |
Tool 5: get_announcement_pages
Read full page content by page number range.
Parameter | Type | Required | Description |
| string | ✅ | Bundle key |
| int | ✅ | Start page number (1-based) |
| int | ❌ | Number of pages to return, default 3, max 5 |
Tool 6: lookup_stock_code
Diagnostic tool: look up stock_code→stockId mapping. Use only when download_hkexnews_announcement / list_hkexnews_announcements returns Stock code not found. Bypasses the session failed-code cache.
Parameter | Type | Required | Description |
| string | ✅ | 5-digit HK stock code, e.g. |
| bool | ❌ | Force re-download of HKEX company mappings (default: |
Configuration
On first run, a default config file is created at ~/.agentladle/mcp-hkexnews/config.yaml:
paths:
data_dir: "~/.agentladle/mcp-hkexnews/data"
pdf_dir: "~/.agentladle/mcp-hkexnews/data/pdf"
json_dir: "~/.agentladle/mcp-hkexnews/data/json"
download:
delay_between_requests: 0.3
min_file_size: 500
list_row_range: 100
list_max_pages: 5
company:
cache_ttl_days: 7
tiers:
cache_ttl_days: 7Data Directory Structure
~/.agentladle/mcp-hkexnews/
├── config.yaml # Configuration (auto-created)
└── data/
├── companies.json # stock_code→stockId mapping (auto-downloaded & cached)
├── tiers.json # HKEX headline category mapping (auto-downloaded & cached)
├── pdf/ # Downloaded announcement bundles
│ ├── 00700_13500_2026-03-15_a1b2c3d4/
│ │ ├── primary.pdf
│ │ └── manifest.json
│ └── ...
└── json/ # Parsed page-split JSON
├── 00700_13500_2026-03-15_a1b2c3d4.json
└── ...File naming convention: {STOCK_CODE}_{T2_CODE}_{RELEASE_DATE}_{ID_HASH}
Example Usage
The tools are designed with an EAFP (Easier to Ask for Forgiveness than Permission) approach. AI assistants should attempt to retrieve data directly and rely on errors to trigger downloads.
Scenario A: File already exists locally (Shortest Path)
User: "Search 00700 inside information for buyback"
1. keyword_search(local_key="00700_50100_2026-07-09_a1b2c3d4", keywords=["buyback", "repurchase"])
→ Returns page snippets matching the keywords immediately.Scenario B: File missing (Fallback triggered)
User: "What did Tencent announce in its latest inside information?"
1. list_hkexnews_announcements(stock_code="00700", category="Inside Information", limit=3)
→ Returns local_key / release_date / title.
2. keyword_search(local_key="...", keywords=["inside information"])
→ Error: File not found.
3. download_hkexnews_announcement(stock_code="00700", local_key="...")
→ Downloads PDF to ~/.agentladle/mcp-hkexnews/data/pdf/
4. parse_hkexnews_announcement(local_key="...")
→ Parses into JSON.
5. keyword_search(local_key="...", keywords=["inside information"])
→ Retries search and returns data.Tech Stack
Component | Choice | Purpose |
MCP Framework |
| MCP server with stdio transport |
HTTP Client |
| HKEXnews API requests & file downloads |
PDF Parsing |
| PDF page text extraction; HTML fallback |
Search | Python built-in | TF + position-boost scoring |
Config |
| YAML configuration file |
Securities List |
| Parse HKEX ListOfSecurities.xlsx |
Project Structure
src/mcp_hkexnews/
├── __init__.py
├── server.py # MCP Server entry point
├── config.py # Config loading (~/.agentladle/mcp-hkexnews/config.yaml, singleton cached)
├── models.py # Data models
├── categories.py # Announcement category blacklist
├── response.py # Unified JSON responses
├── instances.py # Service singletons
├── tools/
│ ├── list_announcements.py # Tool 1: list_hkexnews_announcements
│ ├── download.py # Tool 2: download_hkexnews_announcement
│ ├── parse.py # Tool 3: parse_hkexnews_announcement
│ ├── search.py # Tool 4: keyword_search
│ ├── page.py # Tool 5: get_announcement_pages
│ └── lookup.py # Tool 6: lookup_stock_code
└── services/
├── company.py # HKEX activestock + ListOfSecurities + stock_code→stockId
├── tiers.py # HKEX tierone/tiertwo category cache
├── downloader.py # HKEXnews titleSearch + PDF download
├── parser.py # PDF/HTML→JSON parsing (PyMuPDF)
├── searcher.py # Local JSON search + TF scoring
└── keys.py # local_key helpersLicense
MIT
Available Tools
6 toolsdownload_hkexnews_announcementA
Download an HKEXnews announcement PDF (or HTML fallback) to local storage.
Args: stock_code: 5-digit HK stock code release_date: YYYY-MM-DD (optional if local_key provided) title_keyword: Title substring to disambiguate same-day announcements category: Optional category filter news_id: HKEXnews NEWS_ID if known local_key: Exact local bundle key from list results
| Name | Required | Description | Default |
|---|---|---|---|
| news_id | No | ||
| category | No | ||
| local_key | No | ||
| stock_code | Yes | ||
| release_date | No | ||
| title_keyword | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden. It explains the download action, parameters, and fallback behavior. However, it does not describe return values, error handling, or side effects beyond what is implied. Still, it provides substantial behavioral context.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is well-structured with a strategy block and critical rules, ensuring important information is front-loaded. It is slightly verbose but every section adds value, earning a high score.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's complexity (6 parameters, sibling tools), the description covers usage strategy, parameter rules, and post-call action. It lacks explicit return value details but references output schema and next steps, making it fairly complete.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Despite 0% schema description coverage, the text description's Args section explains each parameter: stock_code (5-digit HK stock code), release_date (YYYY-MM-DD), title_keyword (Title substring), category (optional filter), news_id (HKEXnews NEWS_ID), local_key (Exact local bundle key). This adds meaning beyond the bare schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states it downloads an HKEXnews announcement PDF (or HTML fallback) to local storage. It uses specific verbs ('Download') and resources ('announcement PDF'), and the context distinguishes it from sibling tools like list_hkexnews_announcements and parse_hkexnews_announcement.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides explicit when-to-use guidance: 'Invoke ONLY as a fallback when keyword_search / get_announcement_pages returns file not found'. It also includes critical rules like preferring local_key and specifying out-of-scope reports, giving clear usage boundaries.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_announcement_pagesA
Retrieve full page content for a range of pages from a parsed announcement.
Args: local_key: Bundle key start_page: 1-based start page page_count: Number of pages, default 3, max 5
| Name | Required | Description | Default |
|---|---|---|---|
| local_key | Yes | ||
| page_count | No | ||
| start_page | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden. It mentions that `page_count` defaults to 3 and max 5, and that `start_page` is 1-based. However, it does not disclose behaviors like what happens on invalid parameters, error handling, or the structure of the returned page content. The instruction 'Do not pre-check file existence' hints at potential failure but lacks depth.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is well-structured with a main sentence, followed by a clear strategy section, critical rules, and an args list. It is concise (few lines) and front-loaded, with every sentence providing useful information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the presence of an output schema (as indicated by context signals), the description does not need to detail return values. However, it lacks information on edge cases (e.g., page out of range) and the implication of 'Do not pre-check file existence' suggests potential failure scenarios that are not elaborated. Overall, it is mostly complete for the tool's moderate complexity.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must add meaning. It explains each parameter: `local_key` as 'Bundle key', `start_page` as '1-based start page', and `page_count` with its default and max. This adds value beyond the schema's property titles, though it assumes knowledge of what a 'bundle key' is.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description starts with a clear, specific verb+resource: 'Retrieve full page content for a range of pages from a parsed announcement.' This distinguishes the tool from siblings like `keyword_search` or `download_hkexnews_announcement` which have different purposes.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description includes a dedicated <strategy> section that explicitly states when to use this tool ('Directly invoke after keyword_search provides a start_page') and what not to do ('Do not pre-check file existence'). The <critical_rules> further clarifies that `page_count` has a default and max, and prefers using `keyword_search` for facts.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
keyword_searchA
Search a parsed announcement by keywords. Results sorted by relevance.
Args: local_key: Bundle key from list/download keywords: 1-5 search keywords match_mode: "ANY" or "ALL", default ANY max_results: Max snippets, default 5, max 50
| Name | Required | Description | Default |
|---|---|---|---|
| keywords | Yes | ||
| local_key | Yes | ||
| match_mode | No | ANY | |
| max_results | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations provided, so description carries full burden. Discloses search behavior, relevance sorting, and that missing files trigger download/parse. Does not explicitly state read-only nature, but it's clearly a query operation.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Well-structured with sections (strategy, critical rules, args). Front-loaded with purpose. Slight redundancy: '1-5 keywords' appears in both rules and param description. Still efficient overall.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Output schema exists, so return values aren't needed. Covers when to use, parameters, and behavior. Could mention that search is within a specific parsed announcement identified by local_key, but context is clear.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, but description adds full meaning: local_key as bundle key, keywords as 1-5 items (not sentences), match_mode default ANY, max_results default 5 max 50. Critical rules further clarify keyword usage.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Clearly states it searches a parsed announcement by keywords and returns results sorted by relevance. Distinguishes from sibling tools by focusing on search within an already-parsed announcement, as opposed to downloading, listing, or parsing tools.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Provides explicit strategic guidance: directly invoke, do not pre-check file existence, prefer Chinese/English terms. Also gives critical rules on keyword count (1-5) and synonym expansion, and defaults for parameters.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
list_hkexnews_announcementsA
List available HKEXnews announcements for a company (excludes full periodic report PDFs).
Args: stock_code: 5-digit HK stock code, e.g. "00700" category: Optional HKEX t1/t2 code or tier name (e.g. "Inside Information", "13500") start_date: YYYY-MM-DD inclusive end_date: YYYY-MM-DD inclusive title_keyword: Optional title search keyword limit: Max announcements to return, default 10, max 50
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| category | No | ||
| end_date | No | ||
| start_date | No | ||
| stock_code | Yes | ||
| title_keyword | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations provided, so description carries full burden. Discloses exclusion of periodic report PDFs (t1=40000), inclusion of performance announcements, and limit max 50. Does not mention auth, rate limits, or error handling, but for a list operation the disclosure is fairly comprehensive.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Highly concise with structured sections (intro, strategy, critical rules, args). Every sentence adds value. No redundancy.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given 6 parameters, no annotations, and an output schema exists, the description provides sufficient context: explains when to use, what is excluded/included, and parameter details. Complete for an AI agent to use correctly.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 0%, so description must compensate. Provides detailed parameter descriptions with examples (e.g., '00700', 'Inside Information'), format YYYY-MM-DD, defaults, and max limit. Adds significant meaning beyond schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Clearly states 'List available HKEXnews announcements for a company' with specific verb and resource, and crucially excludes full periodic report PDFs, distinguishing it from general listing tools.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Contains explicit strategy section: use for discovering metadata before download; skip if user provides specific date/title and instead use keyword_search or download_hkexnews_announcement. Provides clear alternatives.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
lookup_stock_codeA
Look up HKEXnews stockId mapping for a Hong Kong stock code. Diagnostic tool.
Args: stock_code: 5-digit HK stock code, e.g. "00700" or "700" refresh: Force re-download of company mappings (default: false)
| Name | Required | Description | Default |
|---|---|---|---|
| refresh | No | ||
| stock_code | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations provided, so the description carries full burden. It discloses caching behavior, re-download option, and strategic use. However, it does not explicitly state that it is a read-only operation, though 'diagnostic tool' implies safety.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Well-structured with clear sections for purpose, strategy, critical rules, and args. Every sentence adds value, no fluff. Front-loaded with core purpose.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple 2-param diagnostic tool with an output schema, the description covers usage context, prerequisites, and behavior. It tells the agent exactly when and how to use it, which is complete for effective invocation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description adds full meaning: stock_code is a 5-digit HK stock code with examples, refresh is a boolean defaulting to false that forces re-download of mappings. Both parameters are adequately explained beyond the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states it looks up stockId mapping for a Hong Kong stock code, using specific verb 'look up' and resource 'HKEXnews stockId mapping'. It is distinctly a diagnostic tool, differentiating it from siblings like download or list announcements.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Explicitly says 'Invoke ONLY when download/list returns Stock code not found' and provides a strategy to retry after success. Also gives a critical rule to prefer refresh=false first, offering clear when-to-use and when-not-to-use guidance.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
parse_hkexnews_announcementA
Parse a downloaded announcement PDF/HTML into page-split JSON.
Args: local_key: Bundle key returned by list/download, e.g. "00700_13500_2026-03-15_a1b2c3d4"
| Name | Required | Description | Default |
|---|---|---|---|
| local_key | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description must cover behavioral traits. It mentions the output format (page-split JSON) but does not disclose side effects, idempotency, or behavior on invalid keys. For a parse operation, it is likely safe, but the description could add more context about what happens if the local_key is invalid or the file is corrupted.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is brief and well-structured: a purpose sentence followed by a usage <strategy> block. Every sentence adds value, and the strategy section is front-loaded. No redundant or irrelevant information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool has one parameter and an output schema exists, the description provides essential information: purpose, usage timing, and parameter meaning. It covers the main use case but could be more thorough on error handling or output structure details, though the output schema likely handles the latter.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the tool description carries the burden. It explains local_key as 'Bundle key returned by list/download' and gives an example format. This adds significant meaning beyond the schema's minimal title, clarifying the source and structure. However, it doesn't specify constraints like length or character set.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states it parses a downloaded announcement PDF/HTML into page-split JSON. The verb 'parse' and resource 'downloaded announcement' are specific, and the output format is given. It distinguishes from siblings like download_hkexnews_announcement (downloads) and get_announcement_pages (retrieves pages).
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description includes a <strategy> section that explicitly states when to use: 'Call immediately after a successful download_hkexnews_announcement, or when a retrieval tool says the PDF exists but JSON is missing.' This provides clear context and a specific alternative trigger, setting expectation for the proper invocation order.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
6 tool updates
v0.1.0- First observed
download_hkexnews_announcement - First observed
get_announcement_pages - First observed
keyword_search - First observed
list_hkexnews_announcements - First observed
lookup_stock_code - First observed
parse_hkexnews_announcement
TDQS
Scored across 6 tools
Each tool has a distinct purpose: downloading, parsing, searching, listing, looking up stock codes, and retrieving pages. No overlap or ambiguity.
All tool names follow a consistent verb_noun pattern with snake_case (e.g., download_hkexnews_announcement, list_hkexnews_announcements).
6 tools is an appropriate number for the domain, covering the core workflows without being excessive or insufficient.
The tool surface covers the full lifecycle: listing, downloading, parsing, searching, and retrieving pages. No obvious gaps for the read-only nature of HKEX announcements.
Maintenance
Related MCP Connectors
MCP server for stocksense-ai documentation, generated by doc2mcp.
MCP server giving AI agents one-connection access to China A-share market intelligence: financials,
MCP server for VC pitch-deck scoring, thesis-fit matching, and deal-flow management.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceMCP server for Japan's TDnet (Timely Disclosure network). Search and retrieve timely disclosure documents from listed companies on Japanese stock exchanges.389 PyPI5Apache 2.0
- FlicenseNot gradedqualityDmaintenanceMCP server that wraps SFC financial data API into 32 tools for comprehensive A-share market data, including real-time quotes, rankings, limit-up statistics, news, themes, financials, charts, research reports, and watchlists.-
- AlicenseNot gradedqualityBmaintenanceMCP server for analyzing SEC filings (10-K, 10-Q, 8-K) with industry-aware financial extraction and BERT-based NLP.1MIT
- FlicenseNot gradedqualityCmaintenanceMCP server that searches and filters DART electronic disclosures for Korean companies, enabling AI agents to create investor briefing summaries.-