Skip to main content
Glama
hanreikensaku-mcp
by hellboy84

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
HANREI_CACHE_DIRNoキャッシュの保存先 (Cache storage location).~/.cache/hanreikensaku-mcp
HANREI_MIN_INTERVAL_MSNo裁判所サイトへのアクセス間隔(ミリ秒。1000未満にはできません) (Interval between requests to the court website in milliseconds; cannot be less than 1000).3000

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

裁判所ウェブサイトの「裁判例検索」 https://www.courts.go.jp/hanrei/search1/index.html を検索・取得するサーバーです。 使い方:search_cases で検索 → get_case でメタデータ(判示事項・裁判要旨など)→ get_full_text で本文。 注意:

  • このサイトには全ての裁判例が載っているわけではありません。「見つからない」は「存在しない」を意味しません。

  • 当事者名などは「A」「B」等に置き換えられていることがあります。

  • 本文はPDFから機械的に取り出したものです。図表は含まれず、外字は「・」になっていることがあります。正確な引用が必要な場合は pdf_url の原文を確認するよう利用者に伝えてください。

  • サイトへの負担を避けるため、アクセスは1回ごとに数秒の間隔を空けています(取得済みのものはキャッシュから返します)。

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
search_casesA

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

get_caseA

IDを指定して、詳細ページの項目(事件番号、事件名、裁判年月日、裁判所、結果、原審、判示事項、裁判要旨、参照法条など。区分によって項目は異なる)と全文PDFのURLを返す。IDは search_cases の結果、または詳細ページのURL(/hanrei/{ID}/detail{N}/)から分かる。

get_full_textA

IDを指定して、全文PDFから取り出した本文を返す。先頭に全体のページ数・文字数と見出しの一覧(主文、理由、第1…)が付く。長い場合は max_chars でページの区切りで打ち切られるので、案内される page_from で続きを取得する。特定の部分だけ読みたいときは section(見出しの番号)か page_from / page_to を指定する。本文中の【N頁】は元PDFのページ番号(段落の始まりの位置)。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.4/5.0

Scored across 3 tools

Disambiguation5/5

Each tool has a clearly distinct role: search_cases discovers cases, get_case returns metadata and the PDF URL, and get_full_text extracts the PDF body. Although get_case and get_full_text both take an ID, their outputs are cleanly separated, so an agent can reliably pick the right one.

Naming Consistency5/5

All names use consistent snake_case with a predictable verb_noun pattern: search_cases, get_case, get_full_text. The distinction between search_ for discovery and get_ for retrieval is coherent.

Tool Count5/5

Three tools are well-scoped for a read-only case-law retrieval server: one search tool, one metadata tool, and one full-text tool. Each earns its place without redundancy.

Completeness4/5

The core workflow is covered: search cases, inspect metadata, and retrieve full text with pagination and section selection. Minor gaps exist, such as no explicit court/category listing or citation-based lookup tool, but these are likely workable through search_cases filters.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues