Skip to main content
Glama

RegAI Legal MCP (Taiwan)

get_article_by_number

Read-onlyIdempotent

Fetch the exact text of one Taiwan law article by law name + article number. Use this instead of search_law when you already know which article you want. Returns the current version (and, for a pending amendment, its historical counterpart too).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "law_name": "<law_name>",
      "article_number": "<article_number>"
    },
    "name": "get_article_by_number"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoOptional. "en" returns the official government English translation of the article when one exists (only ~21% of laws have one); omit or "zh-TW" for the Traditional Chinese text. An English text is a translation labelled with the Chinese version it renders and may lag the current law; whether an article is in force, pending or repealed comes only from the Chinese text -- check it before stating effectiveness.
law_nameYesExact law name in Traditional Chinese, e.g. "民法", "中華民國刑法", "勞動基準法". Use the official short name; search_law_titles can resolve a partial name.
article_numberYesArticle number as it appears in the law, e.g. "184", "12-1", "1211-1". Do not include the 條 character.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / lang / description
      Previous value: -"Optional. \"en\" returns the official government English translation of the article when one exists (only ~21% of laws have one); omit or \"zh-TW\" for the Traditional Chinese text."New value: +"Optional. \"en\" returns the official government English translation of the article when one exists (only ~21% of laws have one); omit or \"zh-TW\" for the Traditional Chinese text. An English text is a translation labelled with the Chinese version it renders and may lag the current law; whether an article is in force, pending or repealed comes only from the Chinese text -- check it before stating effectiveness."
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safe-read profile (readOnlyHint, idempotentHint, destructiveHint=false, openWorldHint=false), so the description's job is lighter. It adds genuinely non-obvious behavior: the result is the current version, and a pending amendment also yields its historical counterpart — something an agent could not infer from annotations or schema.

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?

Two front-loaded sentences with no filler; the primary action comes first and the routing hint second. The parenthetical about historical counterparts is slightly dense but earns its place by disclosing a non-obvious return behavior.

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 simple 3-param read tool with full schema coverage and no output schema, this covers purpose, routing, and the one surprising return trait. It doesn't describe the response shape (article text vs. metadata), which is a minor gap given no output schema exists.

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 100%, but the description still adds value by framing the two required inputs as the identifying pair and clarifying that the lookup is exact. The schema already handles the lang caveats and article-number formatting nuances, so this is well supported.

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 (Fetch), a precise resource (one Taiwan law article), and the identifying inputs (law name + article number). It explicitly distinguishes itself from the sibling search_law, so an agent can route without opening the 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?

Gives a clear selection rule: use this instead of search_law when the article is already known. It does not cover the reverse case (use search_law when the article number is unknown) or mention searching by topic, so it stops short of full when/when-not guidance.

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.