idn_ojk_regulation_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_ojk_regulation_text for the schema, then POST the same URL with its arguments for the data.
Article (Pasal) text of one OJK regulation by number, extracted from the official PDF copy on the OJK site. Pass pasal to read one article, or keyword to find the articles that contain a word (e.g. “penawaran tender” for tender-offer articles of 9/POJK.04/2018). With neither, returns the opening text and the list of articles. Says explicitly when the PDF cannot be read or the article is not found.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
number | string | yes | Regulation number, e.g. “9/POJK.04/2018”. |
pasal | string | no | Article number, e.g. “5” or “Pasal 5”. Optional. |
keyword | string | no | Indonesian word or phrase to find in articles, e.g. “penawaran tender”. Optional. |
Example call
Arguments
{
"number": "9/POJK.04/2018",
"pasal": "5"
}
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_ojk_regulation_text","arguments":{"number":"9/POJK.04/2018","pasal":"5"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('idn_ojk_regulation_text', {
"number": "9/POJK.04/2018",
"pasal": "5"
});
Response shape
| Field | Type | Description |
|---|---|---|
found | boolean | null | |
number | string | null | |
title | string | null | |
effective_date | string | null | |
pdf_url | string | null | |
page_url | string | null | |
pasal | string | null | |
text | string | null | |
keyword | string | null | |
matched_articles | number | |
articles | array | |
articles_in_document | number | |
article_list | array | |
opening_text | string | null | |
extraction_warnings | array | null | |
reason | string | null | |
note | string | null | |
hint | string | null | |
message | string | null | |
publisher | string | null | |
attribution | string | null |
Full JSON Schema
{
"type": "object",
"additionalProperties": true,
"properties": {
"found": {
"type": [
"boolean",
"null"
]
},
"number": {
"type": [
"string",
"null"
]
},
"title": {
"type": [
"string",
"null"
]
},
"effective_date": {
"type": [
"string",
"null"
]
},
"pdf_url": {
"type": [
"string",
"null"
]
},
"page_url": {
"type": [
"string",
"null"
]
},
"pasal": {
"type": [
"string",
"null"
]
},
"text": {
"type": [
"string",
"null"
]
},
"keyword": {
"type": [
"string",
"null"
]
},
"matched_articles": {
"type": "number"
},
"articles": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true,
"properties": {
"pasal": {
"type": [
"string",
"null"
]
},
"text": {
"type": [
"string",
"null"
]
}
}
}
},
"articles_in_document": {
"type": "number"
},
"article_list": {
"type": "array",
"items": {
"type": "string"
}
},
"opening_text": {
"type": [
"string",
"null"
]
},
"extraction_warnings": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
}
},
"reason": {
"type": [
"string",
"null"
]
},
"note": {
"type": [
"string",
"null"
]
},
"hint": {
"type": [
"string",
"null"
]
},
"message": {
"type": [
"string",
"null"
]
},
"publisher": {
"type": [
"string",
"null"
]
},
"attribution": {
"type": [
"string",
"null"
]
}
}
}
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.