Skip to main content
Glama

Jp Court Get

jp_court_get
Read-onlyIdempotent

Fetch one decision from the Courts of Japan judgments database by the id jp_court_search returned (use get_id, e.g. "89915-2"; a bare record number such as "89915" also works, with extra page reads): the case number, name, date, court, the court's holding (判示事項) and summary (裁判要旨) where it gives them, every field on the record, and the judgment text read from the court's PDF. A scan with no readable text layer returns text null with empty_reason no_text_layer; an unknown id returns found false. Long judgments are returned in slices: max_chars (default 40,000) and offset, with next_offset when more remains. Parties appear as the court published them.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "id": "89915-2",
      "max_chars": 3000
    },
    "name": "jp_court_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesRecord id from jp_court_search, e.g. "89915".
offsetNoCharacter offset into the judgment text, for the next slice.
max_charsNoCharacters of judgment text to return (1,000-200,000, default 40,000).

Output Schema

NameRequiredDescriptionDefault
idNo
kindNo
noteNo
textNo
courtNo
foundNo
fieldsNo
sourceNo
holdingNo
summaryNo
case_nameNo
pdf_pagesNo
truncatedNo
detail_urlNo
text_charsNo
case_numberNo
next_offsetNo
text_offsetNo
empty_reasonNo
decision_dateNo
decision_date_jaNo
full_text_pdf_urlNo
unreadable_charactersNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

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, open-world), yet the description adds substantial behavior beyond them: text extraction from the court's PDF, the no_text_layer/empty_reason failure mode for scans, found=false for unknown ids, and slice-based pagination with next_offset. It also flags a data quirk ('parties appear as the court published them') that the agent could otherwise misread.

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 is front-loaded in the first clause and every subsequent clause carries new information — edge cases, pagination, data caveats — with no filler. The single dense paragraph is somewhat run-on, which slightly hurts scannability for a definition this information-rich.

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?

With an output schema present, return-value detail is optional, yet the description still supplies the critical failure-mode semantics (empty_reason no_text_layer, found false) and the slicing contract needed to page through long judgments. Combined with rich annotations and full schema coverage, nothing an agent needs to invoke this correctly 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 earns an extra point by explaining the id format distinction ('89915-2' vs bare '89915' with extra page reads) and by confirming the max_chars default of 40,000 and offset as the continuation mechanism. It restates rather than extends the numeric bounds already in the schema, so it is not a 5.

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 — fetch one decision from the Courts of Japan judgments database — and anchors it to a known provenance ('the id jp_court_search returned'), which distinguishes it from its sibling search tool. It also enumerates the payload (case number, name, date, court, holding, summary, full record, PDF text) so the agent knows exactly what it gets.

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?

Explains the intended input flow: take the id from jp_court_search, with an explicit note that a bare record number also works but incurs extra page reads, which is a real cost/benefit signal. It lacks an explicit statement of when not to use this tool (e.g. use jp_court_search first when the id is unknown), so it falls just short of a 5.

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.