Skip to main content
Glama

law_service

Read-onlyIdempotent

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

TableJSON Schema
NameRequiredDescriptionDefault
idNo
joNo
ldNo
lmNo
lnNo
ocNo
mstNo
langNo
typeNoJSON
Behavior4/5

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

Annotations already declare readOnlyHint and idempotentHint, so the description adds value by revealing that full-law responses can exceed 1MB and that jo is faster/cleaner for article-level queries. This is meaningful behavioral context beyond the annotations, though it doesn't address auth/rate limits.

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 structure is clear with opening statement, IMPORTANT warning, args list, returns, and examples. It is slightly redundant because the first two sentences restate the same purpose, but otherwise each section earns its place.

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 9-parameter tool with no output schema and no schema descriptions, this description is fairly complete: it covers all parameters, gives usage warnings, and provides recommended examples. It doesn't fully explain the exact semantics/relationships of lm/ld/ln, which is a minor gap.

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?

With schema description coverage at 0%, the description compensates by defining all 9 parameters, including a highly detailed format explanation for jo with examples and the KO/ORI values for lang. However, several parameters (lm, ld, ln, oc) remain cryptically described, preventing a higher score.

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 explicitly states it retrieves full law content by announcement date and 'complete text of a law.' This is a specific verb+resource and, given sibling names like law_search and eflaw_search, clearly positions law_service as the retrieval service rather than a search tool.

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?

It provides explicit usage guidance for specific article queries ('ALWAYS use the jo parameter') and warns about large responses when retrieving full laws. It does not compare against alternative sibling tools (e.g., when to use law_search instead), so it falls short of a 5, but the in-tool guidance is clear and actionable.

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/joohyukjung/LexLink-ko-mcp'

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