Skip to main content
Glama
hanreikensaku-mcp
by hellboy84

裁判例を検索

search_cases
Read-only

Search Japanese court decisions by keywords, case number, date, court, or category and return paginated case lists; refine broad queries with specific terms or AND filters.

Instructions

裁判所ウェブサイトの裁判例検索で裁判例を探し、一覧(ID、事件番号、事件名、裁判年月日、裁判所など)を返す。1回に最大30件。続きは offset で取得する。条件は少なくとも1つ必要。注意:全文検索(keywords)の該当が全区分の合計で2,000件を超えると、サイトは結果を返さずエラーになる(「損害賠償」「憲法」「契約」のような一般的な語。期間・裁判所・区分で絞っても解消しない)。その場合は、より具体的な語にするか keywords_and で語を追加する。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_cases"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNo並び順。date_desc=裁判年月日の新しい順(既定)、date_asc=古い順、court=裁判所の建制順
offsetNo何件目から返すか(0始まり)。続きを見るときは next_offset の値を指定する
date_toNo裁判年月日の範囲の終わり。西暦で YYYY-MM-DD(YYYY、YYYY-MM も可)
categoryNo検索する区分。省略時は all。all=統合検索(全区分)、supreme=最高裁判所判例集、high=高等裁判所判例集、lower=下級裁判所裁判例速報、administrative=行政事件裁判例集、labor=労働事件裁判例集、ip=知的財産裁判例集
keywordsNo全文検索の語。スペースで区切ると「いずれかを含む」(OR)になる。例:「安全配慮義務」
case_nameNo事件名に含まれる語。例:「損害賠償」。category が supreme / high / administrative / labor のときだけ使える
date_fromNo裁判年月日の範囲の始め。西暦で YYYY-MM-DD(YYYY、YYYY-MM も可)。昭和以降のみ
court_nameNo裁判所名(正式名称)。例:「東京地方裁判所」「知的財産高等裁判所」。category が supreme のときは使えない
branch_nameNo支部名。例:「立川支部」
case_numberNo事件番号。例:「令和5年(ワ)第680号」「平成25(ネ)2334」。「令和5年(ワ)」「(行ケ)」のように一部だけでもよい。符号のひらがな・カタカナは区別される(民事の地裁第一審は「ワ」、刑事は「わ」)
keywords_andNokeywords の結果を、さらにこの語を含むものに絞る(AND)。例:keywords=安全配慮義務、keywords_and=過労死

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the readOnly/openWorld annotations, it discloses page size (最大30件), pagination mechanics (offset / next_offset), and a non-obvious hard failure mode (全文検索が2,000件超でサイトがエラーを返す) plus the fact that category/date/court filters do not resolve it. That is exactly the kind of operational behavior an agent cannot get from 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?

Purpose and return shape come first, then pagination, then the error caveat — a sensible front-loading order with no filler sentences. The long parenthetical example list inside the error note is slightly heavier than needed but still carries real information.

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?

For an 11-parameter search tool with no output schema, the description covers what is returned, how many at a time, how to continue, the minimum-query constraint, and the dominant failure mode with a workaround. Nothing essential for a correct first call is missing.

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 coverage is 100%, so the baseline is 3; the description adds value on top by tying `offset` to the returned `next_offset` and by explaining the practical relationship between `keywords` and `keywords_and` (AND-narrowing to escape the 2000-hit limit). It still leaves most parameter-level detail (court name format, case-number variants, sort enums) to the schema.

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 names a specific verb (探す/検索する) and resource (裁判所ウェブサイトの裁判例) and states what the list contains (ID、事件番号、事件名、裁判年月日、裁判所). It implicitly separates itself from detail-oriented siblings by emphasizing that it returns a 一覧 with IDs, though it doesn't name get_case or get_full_text explicitly.

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 gives a hard precondition (条件は少なくとも1つ必要) and concrete remediation guidance for the failure case: use narrower keywords or add keywords_and, and explicitly says period/court/category narrowing will not help. It doesn't name sibling tools or state when to prefer them, so it stops short of full alternatives coverage.

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

Deploy Server

Other Tools