Skip to main content
Glama
lawchat-oss

mcp-taiwan-legal-db

by lawchat-oss

search_statistics

Search official Taiwan legal statistics tables and reports by keyword, source, and year; pass result IDs to get_statistics for full tables or reports.

Instructions

搜尋官方法律統計表與報告。

來源:司法院司法統計年報、司法統計月報(各級法院各類案件收結、終結情形、上訴、發回更審等統計表)、 法務部法務統計常用統計表(偵查、起訴、定罪、執行、矯正等)、法務部司法官學院《犯罪狀況及其分析》年度報告。 結果的 id 傳給 get_statistics 取得表格內容(以「|」分欄的文字)或報告全文。

Args: keyword: 表名或報告關鍵字,比對標題(如「收結」「上訴」「民事」「有罪」「詐欺」) source: 來源(司法統計、月報、法務統計、犯罪狀況);不填 = 全部 year: 民國年(司法統計年報、月報用;不填 = 最新一年) page: 頁數

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNo
yearNo
sourceNo
keywordNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.7.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 disclose meaningful behavior: the keyword matches titles only, source options are enumerated, the year is a ROC year, and the two-step retrieval flow plus the pipe-delimited output format of get_statistics are explained. It omits pagination behavior, result ordering/limits, and any auth/permission context.

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?

Purpose is front-loaded on the first line, followed by a compact source list, the result-handling flow, and a clean per-argument breakdown. Slightly verbose in the source enumeration, but every element is informative and non-redundant given the empty schema.

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?

For a 4-parameter tool with no annotations and no output schema, the description covers parameter meaning, source scope, and the retrieval handoff to get_statistics. It is largely sufficient, with only minor gaps around paging semantics and result-size expectations.

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%, so the description must compensate, and it documents all four parameters: keyword (matches title), source (with candidate values and 'blank = all'), year (ROC, 'blank = latest'), and page. Only 'page' is left vague (page count/size unstated), so it nearly but not fully compensates.

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 (官方法律統計表與報告) and enumerates the exact corpora it covers (司法統計年報/月報、法務統計、犯罪狀況及其分析). An agent can distinguish it from search_judgments or search_regulations without opening any 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 explicitly: result ids are passed to get_statistics to retrieve the table text or full report, which clarifies when to use this tool versus the retrieval sibling. It does not state exclusions or when another statistics tool (e.g. get_sentencing_statistics) is preferable, so it stops short of full routing guidance.

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