tw_law_toc
Pack: tw-law · 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/tw_law_toc for the schema, then POST the same URL with its arguments for the data.
A Taiwan law’s chapter structure and article numbers, paged.
Tool description as the model sees it
Table of contents for one Taiwan law: its chapter/section headings and the article number of every provision, in order, paged. Use to browse a law’s structure before reading a specific article with tw_law_article, or to enumerate every article number a long law has. Returns has_more and next_offset when the law has more entries than the page size.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
pcode | string | no | The law’s pcode (from tw_law_search or tw_law_info). |
name | string | no | Chinese or English law title, used when pcode is not known. |
offset | number | no | Pagination offset (default 0). |
limit | number | no | Max entries to return (1-500, default 200). |
Example call
Arguments
{
"pcode": "I0050021",
"limit": 5
}
curl
curl -X POST https://gateway.pipeworx.io/tw-law/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"tw_law_toc","arguments":{"pcode":"I0050021","limit":5}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('tw_law_toc', {
"pcode": "I0050021",
"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 tw-law pack
{
"mcpServers": {
"tw-law": {
"url": "https://gateway.pipeworx.io/tw-law/mcp"
}
}
}
See Getting Started for client-specific install steps.