Skip to main content
Glama

judge_options

Read-onlyIdempotent

Compare multiple answer options or claims against 1–5 Korean tax statute articles in one call, returning each option's best-matching article and a verdict table.

Instructions

Check several answer options or claims against 1 to 5 articles at once. 보기·주장 여러 개를 조문 1~5개와 한 번에 글자 대조해 보기마다 가장 맞는 조와 판정을 표로 돌려준다.

언제: 여러 보기(객관식 보기·고객 진술·주장 문장)를 특정 조문(15개)과 한 번에 대조할 때. 보기마다 verify_statement를 따로 부르지 않고 한 번 호출로 처리. 입력: statements(문자열 리스트 → id 보기 번호 순서(원문자 15번), 5개 초과 시 1,2,3… / {'id','text'} 리스트 → id 그대로), law_name(정식 법령명), articles('제112조' 등 1~5개), as_of(기준일, 생략 시 오늘), also_decree(기본 False — True면 각 조의 하위 위임 조문 중 law.links에서 원문인용이 확인된 것 최대 3개도 후보 조에 추가). 처리: law.version → law._full_units로 각 조 단위 수집 → claims.judge(보기마다 모든 후보 조에 compare 실행, 겹침 최대 조 채택, 동률이면 신호 있는 쪽). 반환: {법령, 시행본, 후보조(실제 대조한 조 목록), 보기별:[{id, 조, 판정, 근거:{위치,원문}, 대조, 단서, 겹침, 사유?}], 요약:{모순,구절 다름,차이 없음,판단 필요 — 각 id 목록}, 주의}. 판정: 숫자·양태·반대말·시점 신호 있으면 '모순', 신호 없이 구절이 다르면 '구절 다름'(같은 뜻인지 직접 판단), 다른 구절 없고 겹침 0.5 이상 '차이 없음', 없으면 '판단 필요'. 단, 준 조문과 겹침이 0.3 미만이면 신호가 있어도 '모순' 대신 '판단 필요'(사유: '겹침 낮음 — 다른 조문일 수 있음') — 준 조문과 무관한 보기에서 우연한 숫자·반대말 신호가 모순으로 나가는 것을 막음. 읽기 전용. 법제처 API 필요(LAW_OC). 조문 문구는 시행본 원문 그대로 — 지어내지 않는다. '판단 필요'는 글자 대조 결과일 뿐 법적 판단이 아님 — 원문으로 확인.

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": {
      "statements": "<statements>",
      "law_name": "<law_name>",
      "articles": "<articles>"
    },
    "name": "judge_options"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoOutput language. 'en': English keys and labels, official English texts where available (tax treaties, statutes), other Korean texts returned with a host_ai_translate instruction (your AI translates); Solar machine translation only when UPSTAGE_API_KEY or on-prem Solar is configured. 기본 'ko'ko
as_ofNo기준일 YYYYMMDD. 생략하면 오늘
articlesYes대조할 조문 1~5개. '제112조'·'제28조의2' 형식
law_nameYes세법 이름(정식 명칭). 예: '법인세법', '부가가치세법', '소득세법', '상속세 및 증여세법', '국세기본법'
statementsYes보기·진술 문장들. 문자열 리스트(id는 보기 번호 순서(원문자 1~5번)), {'id','text'} 리스트(id 그대로), 또는 1~5번·ㄱ~ㄹ 번호가 든 문장 하나(자동 분리)
also_decreeNoTrue면 각 조의 law.links 하위 위임 조문 중 원문인용이 확인된 것(최대 3개)도 후보 조에 추가

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.12.10
    • changedInput schema / properties / statements / description
      Previous value: -"보기·진술 문장들. 문자열 리스트(id는 ①②③④⑤ 순서), {'id','text'} 리스트(id 그대로), 또는 ①~⑤·ㄱ~ㄹ 번호가 든 문장 하나(자동 분리)"New value: +"보기·진술 문장들. 문자열 리스트(id는 보기 번호 순서(원문자 1~5번)), {'id','text'} 리스트(id 그대로), 또는 1~5번·ㄱ~ㄹ 번호가 든 문장 하나(자동 분리)"
  2. Addedv0.9.1

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), but the description adds substantial behavior beyond them: it requires the 법제처 API (LAW_OC), states that article text is verbatim and never fabricated, defines the four verdict categories with an explicit overlap threshold (<0.3 downgrades '모순' to '판단 필요'), and discloses the also_decree expansion limit (max 3 sub-delegated articles with verified citations). It also caveats that '판단 필요' is a character-level result, not legal judgment.

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?

Well front-loaded: a one-line purpose first, then labeled 언제/입력/처리/반환/판정 sections that make it easy to scan. Some redundancy — the statements id rules are repeated from the schema, and the '판단 필요 is not legal judgment' caveat appears twice — plus bilingual duplication of the summary line.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, but the description spells out the return shape (법령, 시행본, 후보조, 보기별 entries with id/조/판정/근거/대조/단서/겹침, and a 요약 of verdict buckets), the verdict decision rules, and the API dependency. For a high-complexity, multi-parameter tool this is enough for an agent to invoke and interpret results.

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%, so the schema already documents statements id-ordering, article format ('제112조'·'제28조의2'), law_name naming, as_of default, and also_decree. The description largely restates these parameter semantics rather than adding new meaning, though the '처리' line clarifying how each article unit is collected adds minor value. Baseline 3 is appropriate.

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 and resource with scope: 'Check several answer options or claims against 1 to 5 articles at once', and immediately distinguishes itself from the per-item alternative ('보기마다 verify_statement를 따로 부르지 않고 한 번 호출로 처리'). An agent can tell this is the batch comparison tool without reading the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The '언제' section gives an explicit trigger (multiple 보기/진술 sentences against 1–5 specific articles) and names the alternative it replaces (calling verify_statement once per option). It also scopes the article count to 1–5, so the boundary condition for switching to another approach is clear.

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