hk_law_search
Pack: hk-elegislation · 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/hk_law_search for the schema, then POST the same URL with its arguments for the data.
Find a Hong Kong law by title (English or Traditional Chinese) or Cap. number.
Tool description as the model sees it
Search Hong Kong Ordinances, subsidiary legislation and instruments by TITLE keyword, English or Traditional Chinese — “Personal Data”, “個人資料”, “Companies Ordinance”, “公司條例”. This is a title search, not full-text; it will not find a chapter by a phrase appearing only inside a section. Also accepts a bare chapter number (“486”) for an exact match. Returns each match’s Cap. number (for hk_law_info/hk_law_section), English and Traditional Chinese titles, in-force status, and whether it is a principal Ordinance, subsidiary legislation, or an instrument. Source: Hong Kong Department of Justice, e-Legislation.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | yes | Title keyword (English or Traditional Chinese) or a bare chapter number, e.g. “Personal Data”, “個人資料”, or “486”. |
limit | number | no | Max chapters to return (1-50, default 10). |
Example call
Arguments
{
"query": "Personal Data"
}
curl
curl -X POST https://gateway.pipeworx.io/hk-elegislation/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"hk_law_search","arguments":{"query":"Personal Data"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('hk_law_search', {
"query": "Personal Data"
});
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 hk-elegislation pack
{
"mcpServers": {
"hk-elegislation": {
"url": "https://gateway.pipeworx.io/hk-elegislation/mcp"
}
}
}
See Getting Started for client-specific install steps.