SuperAPI AI Directory

legal-law-research

Writing & research

View repository

Updated 10-15 21:51

About this skill

Legal Research (Law Research)

Overview

Responsible for original text lookup and precise analysis of statutes, precedents, administrative rules, local ordinances, treaties, and interpretation cases (including National Tax Service) from the National Law Information Center (Ministry of Government Legislation). korean-law MCP (chrisryugj/korean-law-mcp v4.4, MIT) compresses the Ministry of Government Legislation's 42 APIs into 9 tools, and supports LLM hallucination prevention citation verification, precedent life/death confirmation, law-at-the-time judgment, and provision impact graphs.

Disclaimer: This is AI-assisted lookup and does not replace professional legal advice

Trigger Keywords

statutory provisions, legal text, precedent search, precedent life/death, citation verification, law at the time of the act, old-new comparison table, impact graph, ordinance, enforcement decree, enforcement rule, administrative rule, local ordinance, treaty, interpretation case, National Tax Service interpretation, attached table, form, Ministry of Government Legislation, law.go.kr, Korean Law MCP

Supported Tools (korean-law MCP — 9)

Category Tool Description
Research legal_research Multi-step legal research. task 8 types selectable (see table below)
Precise Analysis legal_analysis Verification·analysis. mode 4 types selectable (see table below)
Statutes search_law Statute search → obtain lawId, MST
Statutes get_law_text Full-text provision lookup (use 4-digit numbers for article numbers)
Statutes get_annexes Attached table/form lookup (amount tables, rate tables, attached forms)
Integrated search_decisions Integrated search across 17 domains (precedents, Constitutional Court, Tax Tribunal, Fair Trade Commission, Labor Commission, Customs, interpretation cases, administrative appeals, Personal Information Protection Commission, Anti-Corruption and Civil Rights Commission, appeals review, school regulations, public corporations and industrial complexes, public institutions, treaties, English statutes)
Integrated get_decision_text Full-text lookup of decisions across 17 domains
Meta discover_tools Specialized tool search (terminology, history, comparison, etc.)
Meta execute_tool Specialized tool proxy execution

legal_research task 8종

task Description
full_research (default) Comprehensive research (AI search → statutes → precedents → interpretations). customs/action_plan scenario expansion
law_system Legal system analysis (three-tier comparison, delegation structure). delegation/impact expansion
action_basis Grounds for disposition confirmation (permits, authorizations, dispositions). penalty expansion
dispute_prep Litigation preparation (objections, lawsuits, hearings)
amendment_track Amendment tracking (old-new comparison, history). timeline/time_travel expansion
ordinance_compare Ordinance comparison (higher-level law → nationwide ordinances). compliance expansion
procedure_detail Procedure·cost·form guidance. manual expansion
document_review Contract·terms and conditions risk analysis (text required)

legal_analysis mode 4종

mode Description Required Parameters
verify_citations LLM hallucination prevention — batch verification of whether cited provisions actually exist text
cite_check Case law existence check — reverse-tracking of subsequent citations + detection of amendments·repeals (Korean-style Citator) caseNumber
applicable_law Determination of law at the time of the act — point-in-time applicable version + excerpts of supplementary provisions transitional provisions lawName, date
impact_map Provision impact graph — reverse search of citing case law·interpretations·autonomous regulations + mermaid lawName, jo

Workflow

Step 1: Check OC key (required)

korean-law MCP requires a Ministry of Government Legislation Open API OC key for each user (not a shared-key model).

IF KOREAN_LAW_OC 미설정 (또는 .mcp.json URL 의 ?oc= 이 빈 값):
  "법령 조회를 위해 법제처 Open API OC 키가 필요합니다.

   발급 방법 (무료, 즉시):
   1. law.go.kr 접속 → 회원가입·로그인
   2. Open API 신청 페이지 → 'Open API 사용 신청'
   3. 신청서 작성 → 인증키(OC) 즉시 발급 (예: honggildong)

   설정 방법:
   - .mcp.json 의 korean-law 항목 URL ?oc=<본인키> 에 보간
   - 또는 환경변수 KOREAN_LAW_OC 등록

   키를 입력해 주세요:"

  → 사용자가 키 입력
  → ${CLAUDE_PLUGIN_DATA}/moai-credentials.env에 KOREAN_LAW_OC 저장
  → Step 2로 진행

If there are Ministry of Government Legislation API certificate verification issues in an intranet·closed network environment, LAW_API_PROTOCOL=http guides the settings (see the korean-law MCP README for detailed settings).

Step 2: Classify request type and select tools

User request Tool to call
"Labor Standards Act Article 74 main text" search_law → get_law_text
"Verify that the provisions cited in this answer/contract actually exist" legal_analysis(mode=verify_citations)
"Is this case law still valid" legal_analysis(mode=cite_check)
"Road Traffic Act Article 44 as of 2023" legal_analysis(mode=applicable_law)
"Civil Act Article 103 impact graph" legal_analysis(mode=impact_map)
"Customs Act + Korea Customs Service interpretations + FTA comprehensive" legal_research(task=full_research, scenario=customs)
"Occupational Safety and Health Act Table 1" get_annexes
"Housing Lease Protection Act 5-step guide" legal_research(task=full_research, scenario=action_plan)
"Labor Standards Act old-and-new comparison table" legal_research(task=amendment_track)
"Supreme Court case law search" search_decisions(domain=precedent)

Step 3: Execute lookup·analysis

  • Automatic recognition of statute name abbreviations (화관법 → 화학물질관리법, 산안법 → 산업안전보건법 52 entries preloaded)
  • Automatic handling of article number conversion (제38조 ↔ 003800 4-digit number)
  • search_law In the results, use the [현행] / ⚠️[연혁-과거버전] label to guard current validity (prevent LLM errors in distinguishing statutes)
  • verify_citations Results: ✓(exists) / ✗(none, present the range of existence) / ⚠(statute name unclear)
  • [NOT_FOUND] / [HALLUCINATION_DETECTED] Mark failures with a marker (including guidance prohibiting LLM speculation)

Step 4: Organize results

  • Provision main text (maintain article·paragraph·item·subitem structure)
  • Case law summary (issues·holding·order first, main text provided in abbreviated form)
  • Citation verification results table (exists/none/range)
  • Impact graph (mermaid code — visualized in claude.ai)
  • Old-and-new comparison table (added/deleted/changed classification)
  • "Lookups you can continue with" follow-up suggestions

Usage examples

Example 1: "Tell me the main text of Article 74 of the Labor Standards Act" → search_law("근로기준법") → obtain MST → get_law_text(mst, jo="007400") → provision main text + delegation structure

Example 2: "Verify that all provisions cited in this contract actually exist" (LLM hallucination prevention) → legal_analysis(mode=verify_citations, text=<계약서 본문>) → ✓/✗ results table + range of existence

Example 3: "What was Article 44 of the Road Traffic Act as of May 2023?" (law at the time of the act) → legal_analysis(mode=applicable_law, lawName="도로교통법", date="2023-05-10") → main text of the version in force + comparison with current version + supplementary provisions transitional provisions

Example 4: "Is this case law still valid? 2018Da248626" → legal_analysis(mode=cite_check, caseNumber="2018다248626") → reverse-tracking of subsequent citations + detection of amendment·repeal signals

Example 5: "Comprehensively cover Article 38 of the Customs Act + Korea Customs Service authoritative interpretations + FTA treaties" → legal_research(task=full_research, query="관세법 제38조", scenario=customs) → batch of statutes·enforcement decrees·interpretations·treaties·tables

Deliverables

  • Statutory provision text (including current-status labels)
  • Case law and decision search results and full text
  • Citation verification result table (LLM hallucination detection)
  • Case law validity check results (amendment/revocation signals)
  • Applicable-law-at-the-time determination results (point-in-time applicable version + addenda transitional provisions)
  • Provision impact graph (mermaid)
  • Old-new comparison table
  • 5-step procedure guide (action_plan)

Precautions

Disclaimer: This is an AI-assisted lookup and does not replace professional legal advice

  • The OC key must be issued and stored by the user. Do not paste the original text into chat; .mcp.json or register it only as an environment variable.
  • verify_citationsspecializes in detecting fake provisions fabricated by LLMs — always verify before trusting legal answers written by ChatGPT/Claude.
  • cite_checkblocks incidents of "citing amended or revoked case law as if it were still valid." For important matters, obtain final confirmation from a lawyer.
  • applicable_law If a past matter is judged under current law without this, incorrect answers violating the law-at-the-time principle will occur — always check the point-in-time applicable version with this tool.
  • If the Ministry of Government Legislation API presents an IP/domain registration requirement as "user information verification failed," the actual cause may be missing User-Agent or Referer headers (auto-injected in v3.5.5+, so use the latest version).
  • The full text of case law and decisions from 17 domains is progressively condensed (compactBody) to reduce response tokens by up to 74% — if you need the full text, get_decision_text(full=true)recall with.

Related skills

  • moai-lawyer:legal-compliance-check: Regulatory compliance checks and ESG reporting (current statutory bases are looked up in this skill and then linked)
  • moai-lawyer:legal-legal-risk: Legal risk analysis, IP strategy, and analysis of the impact of legislative changes (current text, amendment tracking, and law-at-the-time are linked from this skill)
  • moai-lawyer:legal-contract-review: Contract review and terms-of-service drafting (verification of provisions cited in contracts is handled by this skill verify_citations)
  • moai-lawyer:legal-patent-search / moai-lawyer:legal-patent-analyzer: Patents, trademarks, and designs (KIPRIS; data source differs from this skill)
  • moai-lawyer:legal-iros-registry-automation: Supreme Court certificate of registered matters (iros; data source differs from this skill)
  • moai-lawyer:legal-mfds-safety: MFDS regulations (MFDS source; data source differs from this skill)
  • moai-lawyer:legal-nda-triage: Full review of NDA confidentiality agreements
  • moai-coworker:ai-slop-reviewer / moai-writer:korean-humanize: Narrative deliverable post-processing chain (excluding statutory text and tables)

When not to use this skill (division of responsibilities)

  • Patent, trademark, and design search and analysis → moai-lawyer:legal-patent-search / moai-lawyer:legal-patent-analyzer (KIPRIS source)
  • Drafting and review of contracts, terms of service, and privacy policies → moai-lawyer:legal-contract-review (however, verification of provisions cited in contracts is handled by this skill)
  • Regulatory compliance, internal audits, and ESG reporting → moai-lawyer:legal-compliance-check (only current statutory basis lookups are linked to this skill)
  • Legal risk assessment, IP portfolio strategy, and analysis of the impact of legislative changes → moai-lawyer:legal-legal-risk (current text, amendment tracking, and law-at-the-time are linked to this skill)
  • Issuance and lookup of Supreme Court certificates of registered matters → moai-lawyer:legal-iros-registry-automation
  • MFDS regulations and safety inspections → moai-lawyer:legal-mfds-safety
  • NDA confidentiality agreement review → moai-lawyer:legal-nda-triage
  • Actual legal disputes and litigation response → Must be entrusted to a specialized lawyer