hk_law_toc

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_toc for the schema, then POST the same URL with its arguments for the data.

A Hong Kong law’s section numbers and headings, paged.

Tool description as the model sees it

Table of contents for one Hong Kong law: every section number and heading, in order, paged. Use to browse a law’s structure before reading a specific section with hk_law_section, or to enumerate every section number a long Ordinance has. Returns has_more and next_offset when the law has more sections than the page size.

Parameters

NameTypeRequiredDescription
capstringnoChapter number (from hk_law_search or hk_law_info), e.g. “486” or “486A”.
titlestringnoEnglish or Traditional Chinese title, used when cap is not known.
offsetnumbernoPagination offset (default 0).
limitnumbernoMax entries to return (1-500, default 200).

Example call

Arguments

{
  "cap": "486",
  "limit": 5
}

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_toc","arguments":{"cap":"486","limit":5}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('hk_law_toc', {
  "cap": "486",
  "limit": 5
});

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.

Regenerated from source · build October 16, 2026