Skip to main content
Glama
lawchat-oss

mcp-taiwan-legal-db

by lawchat-oss

get_precedent

Retrieve full text of a Taiwan court precedent using its search result ID. Provides judgment fields, related laws, attachments, and source URL.

Instructions

取得 search_precedents 結果的全文。

Args: precedent_id: search_precedents 回傳的 id(如「D:A,20040316,001」「Q:A,20251119,013」「C:C,3829」)

Returns: category, fields(字號、日期、決議/要旨、編註、資料來源等原站欄位), full_text, related_laws, attachments, source_url

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
precedent_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.4.0

TDQS

A4.1/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses the return payload (category, fields, full_text, related_laws, attachments, source_url), which is real behavioral information, but it is silent on read-only semantics, permissions/auth, pagination, and error behavior for an invalid id.

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 purpose sentence is front-loaded, and the Args/Returns structure is scannable with no filler. The Returns list is slightly padded with parenthetical examples, but every element is informative.

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, the Returns section usefully enumerates what comes back, and the single required parameter is fully explained, so an agent has what it needs to invoke and consume the tool. Missing only is any note on failure modes or whether the id must come from the same session's search.

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 0% – 'Precedent Id' is just a bare string – so the description must compensate, and it does: it identifies the parameter's origin (search_precedents output) and gives three concrete id format examples spanning different record categories. It stops short of explaining whether formats are interchangeable, but adds substantial meaning.

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 the full text (全文) of a precedent. It also explicitly ties itself to search_precedents, so an agent can distinguish it from that sibling (search vs. fetch full text) without opening either schema.

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?

The description establishes the workflow prerequisite by saying the id comes from search_precedents results, which tells the agent when this tool applies. It does not name any exclusions or alternative fetch tools (get_judgment, get_interpretation), but the usage context is clear.

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