Skip to main content
Glama
lawchat-oss

mcp-taiwan-legal-db

by lawchat-oss

get_judgment

Retrieve a full Taiwan court judgment by JID or URL, including main text, cited statutes and cases, and appeal history to check whether the ruling was overturned or remanded.

Instructions

取得單一裁判書全文。

支援兩種查詢方式:

  1. 以 JID 查詢(優先使用 Open Data API)

  2. 以 URL 查詢(直接載入頁面)

Args: jid: 裁判書 JID(如「TPSV,104,台上,472,20150326,1」),從搜尋結果取得 url: 裁判書 URL(如 https://judgment.judicial.gov.tw/FJUD/printData.aspx?id=...)

Returns: 包含裁判書全文的字典:case_id, court, date, main_text, facts, reasoning, cited_statutes, cited_cases, full_text, source_url,以及 history(同一案件各審級裁判清單, 每筆含 desc、jid、url、pending_supreme_court)與 history_note。引用判決前應看 history: 後面還有上級審裁判時,要確認本判決是否已被廢棄或發回。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
jidNo
urlNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the JID-over-URL priority, the rich return structure, and a genuine operational caveat (inspect history to check whether the judgment was overturned or remanded before citing). It omits auth/rate-limit or failure-mode behavior, so it stops short of 5.

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?

Front-loads the purpose, then structures the two query methods and the return fields with an explicit caveat. Slightly long but every section (args, returns, history warning) carries load, so size is justified by the tool's complexity.

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 and no annotations, the description compensates by enumerating the return fields (case_id, main_text, facts, reasoning, cited_statutes, history, etc.) and explaining history_note. Complete enough to invoke correctly, though the absence of the input schema descriptions means ambiguous dual-input behavior goes unaddressed.

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 description coverage is 0%, yet the description documents both parameters with concrete format examples for jid (TPSV,104,台上,472,20150326,1) and url, and explains that jid is preferred. It does not clarify what happens if both or neither are supplied, keeping it below 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+resource (取得單一裁判書全文 – retrieve a single judgment's full text) and explicitly scopes to a single document, distinguishing it from the sibling search_judgments. An agent can tell immediately this is the full-text fetch step after a search.

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 two lookup paths (by JID via Open Data API, by URL via page load) and states the priority order. It also notes the JID comes from search results, implying the search→get workflow. It does not, however, explicitly name search_judgments as the alternative or state when not to use this tool.

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