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

NameTypeRequiredDescription
numberstringyesRegulation number, e.g. “9/POJK.04/2018”.
pasalstringnoArticle number, e.g. “5” or “Pasal 5”. Optional.
keywordstringnoIndonesian 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

FieldTypeDescription
foundboolean | null
numberstring | null
titlestring | null
effective_datestring | null
pdf_urlstring | null
page_urlstring | null
pasalstring | null
textstring | null
keywordstring | null
matched_articlesnumber
articlesarray
articles_in_documentnumber
article_listarray
opening_textstring | null
extraction_warningsarray | null
reasonstring | null
notestring | null
hintstring | null
messagestring | null
publisherstring | null
attributionstring | 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.

Regenerated from source · build November 29, 2026