Skip to main content
Glama

Lifelaw Korean Law (라이프로 법령)

Get decision or other material (결정문·해석·기타 자료 보기)

get_document
Read-onlyIdempotent

Get the full text of one Korean decision, interpretation or other material found with search_documents (summary, order, reasons, etc.). Read a long text by page (15,000 characters each). Annexes and forms (별표서식 of laws, administrative rules, local ordinances) have no body: put a file link from the search result into file to get the file (PDF, HWP or HWPX) as text. Filter a long annex with keyword or split it with page.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "source": "<source>",
      "id": "<id>"
    },
    "name": "get_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe first number of a search_documents result
fileNoAnnexes and forms only. A file link from a search_documents result (https://www.law.go.kr/LSW/flDownload.do?flSeq=…; PDF, HWP or HWPX)
pageNoResult page number (from 1). Default 1
sourceYesThe source used in search_documents
keywordNoAnnexes and forms only. Show only lines containing this Korean text (with 2 lines before and after)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / file / description
      Previous value: -"Annexes and forms only. The file link from a search_documents result (https://www.law.go.kr/LSW/flDownload.do?flSeq=…, the PDF one)"New value: +"Annexes and forms only. A file link from a search_documents result (https://www.law.go.kr/LSW/flDownload.do?flSeq=…; PDF, HWP or HWPX)"
  2. Changed5 schema fields changed
    • changedInput schema / properties / file / description
      Previous value: -"별표서식 전용. search_documents 결과의 파일 링크(https://www.law.go.kr/LSW/flDownload.do?flSeq=…, PDF 쪽)"New value: +"Annexes and forms only. The file link from a search_documents result (https://www.law.go.kr/LSW/flDownload.do?flSeq=…, the PDF one)"
    • changedInput schema / properties / id / description
      Previous value: -"search_documents 결과의 맨 앞 번호"New value: +"The first number of a search_documents result"
    • changedInput schema / properties / keyword / description
      Previous value: -"별표서식 전용. 이 글자가 든 줄(앞뒤 2줄 포함)만 보기"New value: +"Annexes and forms only. Show only lines containing this Korean text (with 2 lines before and after)"
    • changedInput schema / properties / page / description
      Previous value: -"검색 결과 쪽 번호(1부터). 생략하면 1"New value: +"Result page number (from 1). Default 1"
    • changedInput schema / properties / source / description
      Previous value: -"search_documents 에서 쓴 자료 이름"New value: +"The source used in search_documents"
  3. Changed2 schema fields changed
    • addedInput schema / properties / file
      Added value: +{
      +  "description": "별표서식 전용. search_documents 결과의 파일 링크(https://www.law.go.kr/LSW/flDownload.do?flSeq=…, PDF 쪽)",
      +  "type": "string"
      +}
    • addedInput schema / properties / keyword
      Added value: +{
      +  "description": "별표서식 전용. 이 글자가 든 줄(앞뒤 2줄 포함)만 보기",
      +  "type": "string"
      +}
  4. First observed

TDQS

A3.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare read-only, idempotent, destructive=false, so the safety profile is covered. The description adds real behavioral context beyond that: page size of 15,000 characters, the fact that annexes/forms return no body and require the file-link path, supported file types (PDF, HWP, HWPX), and the 2-line context window around keyword hits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four dense sentences, front-loaded with the main purpose before the annex/file special case and the pagination/filtering options. The parenthetical bilingual gloss and file-type list add length but each carries operational information, so little is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With five parameters at full schema coverage and no output schema, the description supplies what an agent needs to call it correctly, including the non-obvious annex path. The one gap is that the 'source' parameter and the relationship to sibling retrieval tools are handled only by reference to search_documents.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already documents id, file, page, keyword and source; the baseline is 3. The description adds only modestly on top — notably the 15,000-character page size, which the schema's page field does not state — while the keyword context window and file-link guidance largely restate schema text.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Get the full text of one Korean decision, interpretation or other material') and anchors it to a sibling ('found with search_documents'). It clearly differentiates the annex/form case ('have no body'), but it does not distinguish itself from the related get_interpretation/get_case siblings, leaving that boundary implicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit preconditions and flow: obtain the id from search_documents, put a file link into 'file' for annexes, and use 'keyword' or 'page' to handle long annexes. It stops short of naming when to prefer get_interpretation or get_case instead, so no true alternative routing is provided.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources