Skip to main content
Glama

Tw Law Search

tw_law_search
Read-onlyIdempotent

Search Taiwan national statutes and the Constitution by TITLE keyword, Chinese or English, "個人資料保護法", "Personal Data Protection", "民法", "Civil Code". This is a title search, not full-text; it will not find a law by a phrase appearing only inside an article. Returns each match's pcode (for tw_law_info/tw_law_article), Chinese and English titles, law level, category, whether an official English translation exists, and the last amendment date. Source: Taiwan Ministry of Justice, Laws & Regulations Database.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "個人資料保護法"
    },
    "name": "tw_law_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax laws to return (1-50, default 10).
queryYesTitle keyword, Chinese or English, e.g. "個人資料保護法" or "Personal Data Protection Act".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds real context beyond that: the data source (Taiwan Ministry of Justice database) and the shape of the returned fields, including whether an official English translation exists. It does not cover rate limits, result ordering, or empty-result behavior, so it stays at solid-but-not-rich.

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-loaded with the core action and the title-vs-full-text constraint before the return-field detail, which is the right order for an agent. It is slightly overstuffed with five quoted title examples, though that redundancy does help disambiguate Chinese/English query forms.

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?

There is no output schema, so the description carries the burden of describing return values, and it does so reasonably: pcode, both titles, law level, category, English-translation availability, last amendment date. What is missing is anything about result ordering, paging behavior, or zero-match outcomes for a 2-parameter search tool.

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

Parameters3/5

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

Schema coverage is 100%, so both parameters are already documented and the baseline is 3. The description does add one genuinely useful clarification beyond the schema: that the query is matched against titles in either Chinese or English, which constrains what values are viable.

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 ("Search Taiwan national statutes and the Constitution by TITLE keyword") and immediately scopes it against a plausible misreading by naming what it is not (full-text). Naming tw_law_info/tw_law_article as the consumers of the returned pcode also distinguishes it from its closest siblings.

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?

Gives explicit when-not guidance: "This is a title search, not full-text; it will not find a law by a phrase appearing only inside an article," which tells the agent exactly which queries will fail here. It also implicitly routes the agent onward by flagging that pcode feeds tw_law_info/tw_law_article.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.