Skip to main content
Glama

RegAI Legal MCP (Taiwan)

search_law_titles

Read-onlyIdempotent

Resolve a full or partial law name to the official law name(s) in the corpus. Call this first when you are unsure of the exact name a law is filed under before using get_article_by_number / get_law_hierarchy / get_law_details. Returns a numbered list: an exact match first, then names starting with the query, then other names containing it; at most 50, with the total when more match. To find articles by topic, use search_law instead.

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": {
      "query": "<query>"
    },
    "name": "search_law_titles"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesA full or partial law name in Traditional Chinese, e.g. "個人資料" or "營業秘密". Returns matching official law names.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds real behavioral detail beyond that: the result ordering (exact match, prefix matches, substring matches), the 50-item cap, and the total-match count when truncated. It stops short of stating whether matching is case/whitespace-normalized, but that is minor.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, each doing distinct work: purpose, sequencing/alternatives, and return-shape contract. Front-loaded with the core action and no filler.

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 compensates by documenting the return structure, ordering, cap, and truncation signal. Combined with annotations covering safety and a fully documented single parameter, an agent has everything needed to call and interpret this 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% and the single parameter is fully described there (including language and example queries), so the schema carries the load. The description only restates the parameter's role conceptually and adds no format, encoding, or edge-case guidance beyond the schema. Baseline 3 is appropriate.

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 (resolve) and resource (law name → official law names), and names the sibling tools it complements (get_article_by_number, get_law_hierarchy, get_law_details) and the one it contrasts with (search_law). An agent can distinguish it from all siblings purely from this sentence.

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 an explicit trigger ("Call this first when you are unsure of the exact name a law is filed under") plus a named alternative with its own condition ("To find articles by topic, use search_law instead"). When-to-use, when-to-use-alternatives, and sequencing are all spelled out.

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.