Skip to main content
Glama

search_law

Read-onlyIdempotent

Search Korean statutes, ordinances, and administrative rules by name to obtain the law ID and mst identifiers. Handles abbreviations, repealed laws, and automatically falls back to local ordinances when national statutes return no results.

Instructions

Korean-law-mcp — [법령검색] 법령명·조례명·행정규칙명 키워드검색 → lawId, mst 획득. 지자체 조례·규칙(자치법규), 훈령·예규·고시(행정규칙)도 검색 — 0건 시 자치법규/행정규칙으로 자동 폴백(예: '광진구 복무조례', '외국환거래규정'). 약칭 자동변환. 제명변경·시행예정 개정 자동 병기. 폐지된 법령·행정규칙은 폐지 사실과 후속(통합) 규정을 자동 안내. 법령·조례·행정규칙 조회 전 식별자 확보용.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes검색할 법령명 (예: '관세법', 'fta특례법', '화관법')
displayNo최대 결과 개수 (기본 50 — 짧은 법령명 정확매칭 누락 방지)
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the description correctly does not repeat the safety profile. It adds valuable behavioral nuance beyond annotations: automatic fallback to autonomous laws/administrative rules on zero results, automatic conversion of abbreviated names, appending of renamed and pending-effective amendments, and guidance on repealed laws. These details help the agent anticipate behavior without contradicting the annotations.

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?

The description is front-loaded with the core purpose ('[법령검색] 법령명·조례명·행정규칙명 키워드검색 → lawId, mst 획득') and then provides relevant behavioral details in a structured, readable manner. It is relatively compact given the amount of behavioral nuance conveyed. Some sentences could be tightened, but it remains efficient and well-organized.

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?

For a search tool with no output schema, the description covers key aspects: what it returns (lawId, mst), the types of legal texts covered, fallback behavior, abbreviation handling, and handling of repealed laws. It does not explicitly describe the output format (e.g., list vs. single result) or error conditions, but the display parameter hints at a list of results. Given the tool's complexity and the presence of rich annotations, the description is sufficiently complete for an agent to invoke it correctly.

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 description coverage is 100% (both 'query' and 'display' are documented in the schema). The description itself does not add much beyond the schema: it mentions the query searches law names, but the schema already says that. The display parameter is not mentioned in the description. Since the schema fully covers parameter meaning, a baseline score of 3 is appropriate; the description adds no extra semantic value beyond what the schema provides.

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?

The description clearly states that this tool performs keyword searches for law names, ordinance names, and administrative rule names to obtain the identifiers lawId and mst. It explicitly frames itself as a precursor step ('before querying laws/ordinances/administrative rules to obtain identifiers'), which distinguishes it from siblings like get_law_text or legal_analysis. The verb 'search' and resource are specific and the purpose is unambiguous.

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?

The description provides clear contextual guidance: it is meant to be used before querying laws, ordinances, or administrative rules to obtain identifiers. It also mentions automatic fallback behavior when zero results occur, which helps agents understand what to expect. However, it does not explicitly name alternative tools or state when NOT to use this tool, so it falls slightly short of a perfect 5.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yunsy84/law_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server