Skip to main content
Glama
hanreikensaku-mcp
by hellboy84

裁判例のメタデータを取得

get_case
Read-only

Retrieve full details of a Japanese court decision by ID, including case number, court, ruling, summary, and full-text PDF URL. Use IDs from search results or detail page URLs.

Instructions

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

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": {
      "id": "<id>"
    },
    "name": "get_case"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes裁判例のID(search_cases の結果の id)
detail_typeNo詳細ページの種類(URLの detail{N} の N)。通常は省略する(検索結果から自動で決まる)。2=最高裁判例、3=高裁判例、4=下級裁裁判例、5=行政事件裁判例、6=労働事件裁判例、7=知的財産裁判例、8=知財高裁裁判例

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered. The description adds useful behavioral context beyond them: it enumerates what is returned and warns that returned items vary by case category — important since there is no output schema. It says nothing about error behavior for invalid IDs or whether the PDF URL can be absent.

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?

Two dense sentences with the action and return payload front-loaded, followed by the ID provenance. The parenthetical field list and the 'items differ by category' caveat both earn their place; there is no boilerplate or repetition of the title.

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?

With no output schema, the description does the necessary work of describing return contents, including the PDF URL and the variability of fields by category, and it explains where the ID comes from. The remaining gap is failure modes (unknown ID, deleted record, missing PDF), which an agent calling a lookup tool would benefit from knowing.

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 coverage is 100% and both parameters are documented there, including the detail_type category codes, so the schema carries the burden. The description contributes the provenance of the ID and the URL pattern from which both id and detail{N} can be read, which is modest but genuine added meaning. Baseline 3 applies when structured fields already document every parameter.

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 gives a concrete verb (returns for a specified ID) and an enumerated resource: case number, case name, judgment date, court, result, prior instance, points at issue, summary, referenced statutes, plus the full-text PDF URL. It also disambiguates from siblings implicitly — search_cases supplies the ID, and this tool returns only the PDF *URL* while get_full_text handles the text itself.

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 explains how to obtain the required ID (from search_cases results or the /hanrei/{ID}/detail{N}/ URL), which is real usage guidance. It does not state explicit exclusions such as 'do not use this to fetch document text, use get_full_text', so the alternative is only implied by the 'PDF URL' phrasing.

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