Skip to main content
Glama

On 근거

법령에서 문구 찾기

law_search
Read-only

[On 근거] law 를 주면 그 법령 조문 원문에서 문구를 찾고(띄어쓰기 무시), law 를 비우면 현행 법령 전체의 조문 제목과 법령 이름에서 찾는다. 조문 번호를 모를 때.

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": {
      "query": "<query>"
    },
    "name": "law_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
lawNo
queryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare this a safe, closed-world read, so the description's job is to add matching semantics — which it does: spacing is ignored in matching, and the search scope changes from full article body text (law given) to article titles plus law names across all current statutes (law empty). It says nothing about result ordering, limits, or match highlighting, which keeps it from a 5.

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?

A single compact sentence pair with the two modes front-loaded and the use condition appended; no filler, and the parenthetical about whitespace is placed exactly where it matters.

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 two-parameter search tool with no output schema, the definition covers both modes, match scope, and the invocation trigger. It stops short of indicating what a hit looks like (article number, snippet, statute name), which is the one thing an agent would still have to discover by calling.

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 both parameters — and it does, defining `law` as the statute to scope the search to (empty = all current statutes) and `query` as the phrase to locate, including the non-obvious rule that whitespace is ignored. It does not give a format example for `law` (e.g. an official statute name), which is the remaining gap.

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?

The description states a specific verb and resource — it finds a phrase (문구를 찾고) inside law article text (법령 조문 원문) — and cleanly splits into two operating modes depending on whether `law` is supplied. An agent can tell what it does, though it never contrasts itself with similarly-named siblings such as law_find or law_article.

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 closing clause '조문 번호를 모를 때' ('when you don't know the article number') gives a concrete selection condition, and the law-supplied vs law-empty split tells the agent which mode to pick. What is missing is an explicit pointer to the alternative (e.g. law_article) for when the article number *is* known.

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.