Skip to main content
Glama

Tw Law Info

tw_law_info
Read-onlyIdempotent

Resolve a Taiwan law to its full metadata by pcode (from tw_law_search) or an exact/partial Chinese or English title, the exact-citation step before reading an article. Returns the law's level (法律/憲法), category, official English title if one exists, whether it has been abolished, the LAST AMENDMENT date and the date that amendment TAKES/TOOK LEGAL EFFECT as separate fields (Taiwan statutes can be amended on one date and take effect on another, sometimes "to be set later by the Executive Yuan", flagged as effective_date_pending), the full promulgation history (in Chinese, and in English when the law has an official translation), and the article count. 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": {
      "pcode": "I0050021"
    },
    "name": "tw_law_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoChinese or English law title, exact or partial, used when pcode is not known.
pcodeNoThe law's pcode, e.g. "I0050021" (from tw_law_search).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent and non-destructive, so safety is covered. Beyond that, the description discloses substantive behavior: it separates LAST AMENDMENT date from the date the amendment takes legal effect, names the effective_date_pending flag for amendments left 'to be set later by the Executive Yuan', notes the promulgation history is in Chinese and only English when an official translation exists, and names the source database. That is real domain context an agent would otherwise miss.

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?

It is a single dense sentence but front-loaded with purpose and identifier sources before the return-field details. Every clause carries information (level, category, English title, abolished flag, amendment vs effective date, promulgation history, article count), though the run-on structure makes it harder to scan than a short bulleted form.

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?

There is no output schema, so the description carries the full burden of describing returns, and it does so comprehensively field by field, including the amendment/effective-date subtlety and the pending-date flag. For a two-parameter read tool with annotations already covering safety, nothing an agent needs to call it or interpret results is missing.

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 description coverage is 100% and the schema already explains that name accepts exact or partial Chinese/English titles and that pcode comes from tw_law_search. The description largely restates this; it hints at pcode-first resolution and that name matching is fuzzy, but adds no format, precedence, or failure-mode detail beyond the schema.

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 opens with a specific verb and resource ('Resolve a Taiwan law to its full metadata') and enumerates both accepted identifiers (pcode, exact/partial Chinese or English title). It also positions the tool against siblings, calling it 'the exact-citation step before reading an article', so an agent can tell it apart from tw_law_search and tw_law_article 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 Guidelines5/5

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

Usage is explicit: pcode is taken 'from tw_law_search', and this is the step to run after searching and before reading an article. The ordering against both neighbouring tools is stated rather than inferred, leaving little ambiguity about when to reach for this versus search or article retrieval.

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.