[
  {
    "name": "kr_law_search",
    "description": "Search South Korean national statutes by title keyword (국가법령정보, Ministry of Government Legislation). Returns each matching law's id, mst (version id — pass to kr_law_article/kr_law_history), ministry, promulgation/effective dates, and whether it is the current (\"현행\") or a superseded (\"연혁\") version. BYOK: requires your own OC from open.law.go.kr (Korean real-name verification to register); pass it as _apiKey.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "query": {
          "type": "string",
          "description": "Title keyword, Korean or romanized, e.g. \"도로교통법\" (Road Traffic Act) or \"개인정보\"."
        },
        "display": {
          "type": "number",
          "description": "Results per page, 1-100 (default 20)."
        },
        "page": {
          "type": "number",
          "description": "1-based page number (default 1)."
        },
        "status": {
          "type": "string",
          "enum": [
            "all",
            "current",
            "historical"
          ],
          "description": "Narrow to currently-in-force laws only (\"current\") or search as-is (\"all\", default). \"historical\" still returns the general list; filter client-side on the returned \"status\" field for superseded versions."
        },
        "_apiKey": {
          "type": "string",
          "description": "Your own OC (Open API user id) from https://open.law.go.kr/LSO/main.do. The Ministry's public demo id \"test\" works here for smoke-testing."
        }
      },
      "required": [
        "query"
      ]
    }
  },
  {
    "name": "kr_law_article",
    "description": "Fetch ONE article (조문) of a South Korean statute by mst (from kr_law_search) and article_no (e.g. \"5\" or \"4-2\" for 제4조의2). Never returns the whole law body. Omit article_no to get a paginated table of contents (article numbers + titles) instead. Returns the article's own text, paragraphs (항) and items (호), its own effective date (which can differ from the law's), and law-level metadata (promulgation date, effective date, ministry) kept as separate fields. BYOK: requires your own OC; pass it as _apiKey.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "mst": {
          "type": "string",
          "description": "Law version id (법령일련번호) from kr_law_search's \"mst\" field."
        },
        "article_no": {
          "type": "string",
          "description": "Article number, e.g. \"5\", or \"4-2\" for a branch article (제4조의2). Omit for a table of contents."
        },
        "display": {
          "type": "number",
          "description": "Table-of-contents mode only: entries per page, 1-200 (default 50)."
        },
        "page": {
          "type": "number",
          "description": "Table-of-contents mode only: 1-based page number (default 1)."
        },
        "_apiKey": {
          "type": "string",
          "description": "Your own OC (Open API user id) from https://open.law.go.kr/LSO/main.do. The Ministry's public demo id \"test\" works here for smoke-testing."
        }
      },
      "required": [
        "mst"
      ]
    }
  },
  {
    "name": "kr_law_history",
    "description": "Revision history for a South Korean statute: every promulgation with its own date, promulgation number, and entry-into-force date, each as a separate historical mst you can pass to kr_law_article. Requires the caller's OC to have the 법령연혁 (law history) service separately enabled under My Applications at open.law.go.kr — if it is not, this throws a specific, actionable upstream error rather than a generic failure. BYOK: pass your OC as _apiKey.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "mst": {
          "type": "string",
          "description": "Law version id (법령일련번호) from kr_law_search's \"mst\" field."
        },
        "_apiKey": {
          "type": "string",
          "description": "Your own OC (Open API user id) from https://open.law.go.kr/LSO/main.do, with 법령연혁 enabled under My Applications."
        }
      },
      "required": [
        "mst"
      ]
    }
  }
]
