idn_regulation_article_text

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

Text of one PASAL (article) of an Indonesian law or regulation, extracted from the signed PDF on file at the State Secretariat JDIH (jdih.setneg.go.id) — the same official document idn_regulation_detail links to. Use for “what does Pasal 1 of UU 13/2003 say”, “text of Article 27 of the Ketenagakerjaan law”, “read Pasal 28D of the Constitution’s implementing statute”. Returns the article’s own text bounded by the next article heading; if the PDF cannot be read as text, or the article is not found, the response says so explicitly rather than returning an empty string.

Parameters

NameTypeRequiredDescription
typestringyesInstrument type: UU, PERPU, PP, PERPRES, KEPPRES, INPRES, PERMENSESNEG or KEPMENSESNEG.
numberstringyesInstrument number, e.g. “13”.
yearstringyesFour-digit year, e.g. “2003”.
pasalstringyesArticle number as the statute numbers it, e.g. “1” or “28D” for Pasal 28D. “Pasal 1” also accepted.

Example call

Arguments

{
  "type": "UU",
  "number": "13",
  "year": "2003",
  "pasal": "1"
}

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_regulation_article_text","arguments":{"type":"UU","number":"13","year":"2003","pasal":"1"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('idn_regulation_article_text', {
  "type": "UU",
  "number": "13",
  "year": "2003",
  "pasal": "1"
});

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.

Regenerated from source · build October 16, 2026