Skip to main content
Glama
lawchat-oss

mcp-taiwan-legal-db

by lawchat-oss

get_constitutional_case_file

Retrieve Taiwan Constitutional Court case files: petitions, briefs, amicus opinions, hearing transcripts, and announcements. Search by keyword or read one document's full text.

Instructions

憲法法庭卷內文書:聲請書、答辯書、關係機關意見、專家諮詢與鑑定意見、法庭之友意見書、言詞辯論筆錄、 爭點題綱、大法官意見書、確定終局裁判連結等(裁判本文與意見書全文另見 get_interpretation)。

用法:

  1. 只給 case_id:列出該案全部公開文件(每筆含 id、group、title、url)、announcements(言詞辯論公告等)與案件欄位 (原分案號、併案、聲請人、案由…)。早期釋字沒有 PDF,聲請書全文在 petition_text。

  2. case_id + keyword:只列出內容含全部關鍵字的文件並附片段(例如找哪些法庭之友意見書談到「人性尊嚴」); 比對的是官方擷取的無標點文字,限憲判字與受理中案件。

  3. document_id:讀單一文件全文(PDF 擷取;掃描檔的 OCR 可能有錯字)。news:… 是公告(含爭點題綱)。

Args: case_id: 「113年憲判字第8號」「釋字第748號」、受理中案號「114年度憲立字第3號」, 或 search_constitutional_docket 回傳的 id(docket:…、hearing:…、amicus:…) document_id: 文件 id(數字)或 news:…;給了就只讀這份文件 keyword: 在卷內文書中找含這些詞的文件(空白分隔)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
case_idNo
keywordNo
document_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.7.0

TDQS

A4.7/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 disclose meaningful traits: keyword matching runs only on unpunctuated official text and is limited to 憲判字 and pending cases, early 釋字 lack PDFs with full petition text in petition_text, and scanned PDFs may contain OCR errors. It does not cover auth requirements or rate limits, but the data-quality and scope caveats are the salient ones for a retrieval tool.

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?

The description is dense but well organized, leading with the resource inventory before the numbered usage modes and arg explanations. Every sentence carries information, though the sheer length and tight CJK formatting make it heavier than strictly necessary.

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 and no annotations, the description still details what each call returns (id, group, title, url; announcements; case fields such as original case number, consolidation, petitioner). An agent has everything needed to call it correctly across all three modes.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must compensate entirely, and it does: each of the three parameters is explained with accepted formats (case number styles, docket:/hearing:/amicus: ids, numeric vs news: document ids), example keywords, and the behavioral consequence of each combination.

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 names a specific verb+resource (retrieving Constitutional Court case-file documents) and enumerates the document types covered. It explicitly distinguishes itself from the sibling get_interpretation, noting that judgment text and full opinions live there instead.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Three numbered modes state exactly which argument combinations to pass and what each returns (case_id alone, case_id+keyword, document_id alone). It also names the alternative tool (get_interpretation) and the condition that routes to it, leaving nothing to inference.

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