idn_list_statutes
Pack: indonesia-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/idn_list_statutes for the schema, then POST the same URL with its arguments for the data.
List Indonesian statutes and executive instruments by type and year from the House of Representatives (DPR RI) legal register — Undang-Undang, Perpu, Peraturan Pemerintah, Peraturan Presiden, Keputusan Presiden, Instruksi Presiden, Peraturan DPR — with the DPR id needed by idn_statute_detail and a direct PDF link, optionally filtered by Indonesian title words. Use for “all Indonesian laws enacted in 2020”, “presidential regulations of 2024 about energy”.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
type | string | no | One of: uu, perpu, pp, perpres, keppres, inpres, perdpr, peraturanbersama (default uu). |
year | string | no | Four-digit year, e.g. “2020”. Strongly recommended — without it DPR shows only its newest few. |
query | string | no | Indonesian words that must all appear in the title, e.g. “mineral batubara”. Optional. |
limit | number | no | Max rows to return, 1-500 (default 50). |
Example call
Arguments
{
"type": "uu",
"year": "2020",
"limit": 20
}
curl
curl -X POST https://gateway.pipeworx.io/indonesia-law/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"idn_list_statutes","arguments":{"type":"uu","year":"2020","limit":20}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('idn_list_statutes', {
"type": "uu",
"year": "2020",
"limit": 20
});
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 indonesia-law pack
{
"mcpServers": {
"indonesia-law": {
"url": "https://gateway.pipeworx.io/indonesia-law/mcp"
}
}
}
See Getting Started for client-specific install steps.