Skip to main content
Glama

Search Korean statutes

search_law
Read-onlyIdempotent

Search Korean statutes and administrative rules on the national law database (law.go.kr). Needs LAW_OC key.

법제처 국가법령정보에서 법령 또는 행정규칙(고시)을 검색한다.

Args:
    query: 검색할 법령명/고시명 또는 키워드
    target: "law"(법률/시행령/시행규칙, 기본값) 또는 "admrul"(행정규칙 — 투기과열지구
            지정, 조정대상지역 지정 등 부처 고시가 여기 포함됨) 또는 "ordin"(자치법규)
    display: 결과 개수 (최대 100)

검색 결과의 "법령일련번호"(law) 또는 "행정규칙일련번호"(admrul) 값을
get_law_detail의 doc_id로 넘기면 조문/고시 원문 전체를 볼 수 있다.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
targetNolaw
displayNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, open world), so the bar is lower. The description adds genuinely useful context beyond them: it discloses the LAW_OC key requirement (an auth precondition) and describes the specific result fields to harvest, which is not in the annotations. It omits rate-limit and pagination behavior.

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?

Front-loaded with the purpose and a well-organized Args block plus workflow note. It loses a partial point for the English/Korean duplication, where the second sentence restates the first verbatim rather than adding information.

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 no output schema, the description compensates by naming the key result identifiers and explaining how they feed get_law_detail, which is exactly what an agent needs for chaining. Nothing critical is missing for a three-parameter search tool.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must carry the full burden, and it largely does: it documents all three parameters, expanding target's enum values (law/admrul/ordin) with concrete meanings and noting display's maximum of 100. Only query and display remain fairly thin, but the target coverage is the substantive gap-filler.

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

Purpose5/5

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

States a specific verb (검색/search), the exact resource (Korean statutes, administrative rules, and ordinances), and names the database (law.go.kr). It also implicitly distinguishes itself from get_law_detail, the full-text sibling, by positioning this as the search step of a two-step workflow.

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 clear context for when to use it and explicitly routes downstream work to get_law_detail by telling the agent which result field to pass as doc_id. The target parameter's three modes are explained with real examples, though there is no explicit 'when not to use' or alternative search tool callout.

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