Skip to main content
Glama

law_search

Read-only

Search a selected category of Korean legal information—statutes, precedents, administrative rules, legal interpretations—by keyword, optionally within full text.

Instructions

법령·판례 등 한 갈래를 검색한다.

Args: target: 갈래 코드. law(현행법령)·admrul(행정규칙)·ordin(자치법규)·prec(판례)· detc(헌재결정례)·expc(법령해석례)·trty(조약)·eflaw·elaw·lsStmd. law_targets 로 전체 목록을 볼 수 있다. query: 검색어. 비울 수 없다 — 비우면 전체 카탈로그가 온다. max_records: 회수 상한(예산). 이 API 는 page 상한이 없어 올리면 전량도 받는다. page_size: 한 페이지 건수(최대 500). scope: 1=제목만(기본), 2=본문 포함. allow_full_catalog: query="*" 로 갈래 전체를 받겠다고 명시할 때만 True.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
scopeNo
targetYes
page_sizeNo
max_recordsNo
allow_full_catalogNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Even with readOnlyHint and openWorldHint annotations, the description adds crucial behavioral context: query cannot be empty or it returns the entire catalog, max_records has no upper bound and can fetch everything, page_size caps at 500, and allow_full_catalog only works with query="*". These are non-obvious behaviors an agent must know before calling.

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

Conciseness5/5

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

The description is structured as a compact Args list where every line adds value. It is longer than a one-liner but justified by needing to document 6 parameters and several hidden constraints; there is no redundancy or filler.

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 6-parameter search tool with no output schema, the description covers target codes, query constraints, pagination, scoping, and the full-catalog escape hatch. It leaves a few opaque target abbreviations (eflaw, elaw, lsStmd) undeclared, but compensates by referencing law_targets. The lack of any return-type description is a minor gap given the tool's straightforward search nature.

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

Parameters5/5

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

Schema description coverage is 0%, so the description carries the full burden, and it excels. Every parameter is explained with valid values, defaults, constraints, and cross-parameter relationships — e.g., allow_full_catalog requires query="*", and target values are enumerated with real code examples.

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 opens with '법령·판례 등 한 갈래를 검색한다' — a specific verb (search) applied to a resource (one branch of statutes/precedents). It lists the exact target codes and scope options, making it unmistakably distinct from sibling tools like law_status or law_body.

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 clearly explains when to use the tool (searching a single branch), and it points to law_targets for the full target list, which helps agent routing. It does not explicitly name alternative sibling tools or say when not to use this tool, so it falls short of full exclusion guidance.

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