law_service
Fetch Korean law text by announcement date, or retrieve a specific article by number for a targeted response. Get complete law content or just the needed provision.
Instructions
Retrieve full law content by announcement date (공포일 기준 법령 본문 조회).
Retrieves the complete text of a law organized by announcement (publication) date.
IMPORTANT: For specific article queries (e.g., "제174조"), ALWAYS use the jo parameter.
Some laws (e.g., 자본시장법) have 400+ articles and the full response can exceed 1MB.
Using jo returns only the requested article, which is much faster and cleaner.
Args: id: Law ID (either id or mst is required) mst: Law serial number (MST) lm: Law modification parameter ld: Law date parameter (YYYYMMDD) ln: Law number parameter jo: REQUIRED for specific articles. Article number in XXXXXX format. Format: first 4 digits = article number (zero-padded), last 2 digits = branch suffix (00=main). Examples: "017400" (제174조), "017200" (제172조), "000300" (제3조), "001502" (제15조의2) lang: Language - "KO" (Korean) or "ORI" (Original) oc: Optional OC override (defaults to env var) type: Response format - "JSON" (default), "XML", or "HTML"
Returns: Full law content or specific article content
Examples: Retrieve specific article (RECOMMENDED): >>> law_service(mst="279823", jo="017400", type="XML") # 자본시장법 제174조
Retrieve full law (WARNING: large response for some laws):
>>> law_service(id="009682", type="XML")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| jo | No | ||
| ld | No | ||
| lm | No | ||
| ln | No | ||
| oc | No | ||
| mst | No | ||
| lang | No | ||
| type | No | JSON |