Skip to main content
Glama
hanreikensaku-mcp
by hellboy84

裁判例の本文を取得

get_full_text
Read-only

Retrieve the full text of a Japanese court decision by ID, including page count, character count, and section headings; limit output by section or page range and continue with the provided page_from.

Instructions

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

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_full_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes裁判例のID(search_cases の結果の id)
page_toNoこのページまで
sectionNo見出しの番号(このツールの出力の「見出し」に出る [N])。その見出しの部分だけを返す
max_charsNo1回に返す本文の文字数の上限。既定 12000
page_fromNoこのページから(1始まり。元PDFのページ番号)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the readOnlyHint/openWorldHint annotations, it discloses the shape of the output (leading page/character counts and a heading index), the page-boundary truncation rule, the continuation mechanism, and the meaning of the 【N頁】 markers in the body. For a read-only tool with no output schema, that is substantive behavioral context rather than a restatement of annotations.

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?

Four compact sentences, front-loaded with what is returned, then truncation/continuation, then partial-read options, then the page-marker legend. No filler or repetition of the schema.

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 no output schema, the description carries the burden of explaining the return value and does so, including the header block, the truncation behavior and how to page forward. An agent has everything needed to call it correctly and to interpret the response.

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 already 100%, so the schema documents each parameter; the description nonetheless adds meaning the schema does not, namely that max_chars cuts at page boundaries and that the resulting page_from should be used to resume, and that section takes the [N] index from the heading list. The exact interaction between section and page_from/page_to is only loosely implied.

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: given an ID, return the body text extracted from the full-text PDF, preceded by page count, character count and a heading list. That is clearly distinguishable from get_case (metadata) and search_cases (finding IDs), and the description even names the source of the id.

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?

Gives concrete when-to-use guidance for each mode: use max_chars and the returned page_from for continuation when the text is long, or use section / page_from / page_to when only a portion is needed. It never explicitly contrasts with the sibling get_case or says when not to call this tool, which keeps it 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.

Deploy Server

Other Tools