MCP server for searching Taiwan judicial judgments (司法院裁判書系統) — AI-callable tools over Model Context Protocol
Server has 4 well-named tools with complete input schemas and descriptions. Naming follows verb_noun pattern (search_judgments, get_judgment, lookup_legal_term, get_judgment_pdf). All tools have descriptions 100+ chars. Input parameters are typed and described. However, output schemas are not documented, LLMs cannot predict response structure. Error handling is minimal; no recovery guidance. The get_judgment_pdf tool accepts a WRITE operation (file download) but lacks confirmation/dry-run pattern. Descriptions are functional but could be more LLM-optimized (currently 150-250 chars, ideal 50-200). No tool annotations (readOnlyHint/destructiveHint) despite clear read/write distinction.
取得單一裁判書的完整內容,包含案件資訊與全文。
取得裁判書 PDF 連結,可選擇直接下載到本機。 回傳 dict 一定包含 judgment_id 與 url;當實際下載時另含 path、size_bytes、cached。
查詢司法院裁判書用語辭典,取得法律名詞的定義與各法領域說明。 同一名詞可能有民事、刑事、行政、家事等不同法領域的解釋,均會一併回傳。 指定 domain 可篩選特定法領域的解釋。
搜尋司法院裁判書全文,回傳符合關鍵字的裁判書清單。 每筆結果包含 judgment_id(可傳入 get_judgment 取得全文)、標題、裁判日期、 案由、摘要片段。
Output schemas not documented. LLMs cannot predict response structure or plan downstream calls. search_judgments returns {keyword, total, page, results} but 'results' structure is opaque. get_judgment_pdf returns conditional fields (path/size_bytes/cached only on download), undocumented.
get_judgment_pdf performs a WRITE operation (file download to disk) but lacks confirmation/dry-run pattern. Agents may accidentally download large files or overwrite existing files without explicit user consent.
No tool annotations (readOnlyHint/destructiveHint/idempotentHint). search_judgments, get_judgment, and lookup_legal_term are read-only; get_judgment_pdf is destructive (writes to disk). Annotations would clarify intent and enable agent safety checks.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 61 | 2026-07-28+ | v2 |
Error handling is minimal. ServiceAPIError exceptions are caught in lookup_legal_term (500 → empty result) but not in other tools. No recovery guidance (e.g., 'Try a different keyword' or 'Check judgment_id format'). LLMs receive raw exceptions with no actionable next steps.
Parameter descriptions lack format/constraint details. judgment_id is described as 'IPCV,114,民著訴,52,20260415,1' (example) but no formal validation rules. save_to description is verbose (150+ chars) and mixes multiple concerns (path vs directory vs env var). Simplify and formalize constraints.