Skip to main content
Glama

Semantic search over Taiwan administrative interpretations

search_legal_references
Read-onlyIdempotent

SEMANTIC search over Taiwan administrative interpretations (行政函釋/令函), administrative orders, tax interpretations, and constitutional interpretations/judgments, by natural-language query. Optional filters: authority (exact agency name, e.g. 財政部/勞動部), source_kind. Returns candidate listings (citation, serial_no, lifecycle status, similarity score, excerpt). ⚠️ Results are semantic-similarity candidates, NOT verified answers: a high score does NOT mean the reference is relevant to your question, still in force, or authoritative — this service performs no relevance judgment; that is YOUR job as the calling model. Before citing any candidate you MUST: (1) read the excerpt and decide relevance yourself; (2) call get_legal_reference with its serial_no to retrieve the full text and validity status — repealed/ceased means do not cite as current law, unknown means validity is unverified; (3) quote only text that exists verbatim in the retrieved full text. These are agency materials, NOT court judgments: never present them as court reasoning and never mix them with judgment citations; for judgments use search_judgments. An empty result does NOT mean no relevant interpretation exists (the corpus is not exhaustive). 勞動部不當勞動行為裁決委員會 decisions (勞裁字) are NOT in this tool's corpus: they ARE included in the service and are returned by search_bundle/search_judgments for labour queries (doc_id prefix 'arb:'). Never conclude that 裁決 are not covered from a miss here.

Input Schema

NameRequiredDescriptionDefault
queryYesNatural-language topic query, e.g. 扣繳義務人未依限申報之處罰
authorityNoOptional exact agency name filter, e.g. 財政部
max_resultsNo
source_kindNoOptional: administrative_interpretation / administrative_order / tax_interpretation / constitutional_interpretation / constitutional_judgment

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnly/idempotent/openWorld), and the description adds substantial non-annotation context: results are unranked-for-relevance candidates, corpus is non-exhaustive, materials are agency documents not court reasoning. It stops short of describing ranking mechanics or pagination, but the verification workflow it specifies is unusually strong behavioral disclosure.

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 purpose and filters, then the caveats. The warning block is long but each item (verify, quote verbatim, mis-citation risks, corpus gaps) carries distinct operational weight. Slightly dense in the legal-disclaimer run-on, but no dead sentences.

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?

With no output schema, the description names the returned fields (citation, serial_no, lifecycle status, similarity score, excerpt) and the required follow-up path for full text, so an agent knows both what comes back and what to do next. Nothing needed for correct invocation is missing.

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 coverage is 75%, so filters are already partly documented; the description reinforces authority as an exact agency name with concrete examples (財政部/勞動部) and enumerates source_kind values in prose. It adds meaning beyond the schema for the two filters but says nothing about max_results or query phrasing beyond what the schema shows.

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+resource ('SEMANTIC search over Taiwan administrative interpretations'), enumerates the corpus types covered, and explicitly distinguishes itself from court judgments and the 裁決 corpus. An agent can tell it apart from search_judgments and search_bundle 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?

Gives explicit routing: use search_judgments for judgments, use search_bundle/search_judgments for 勞裁字 labour decisions, and mandates a follow-up get_legal_reference call before citing. It also states when-not-to-infer (empty result does not mean the interpretation doesn't exist).

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.