Skip to main content
Glama
oldbear-meme

mcp-taiwan-legal-db-integrated

by oldbear-meme

get_pcode

Convert a Taiwan law name to its national law database pcode. Supports fuzzy matching for over 11,700 regulations.

Instructions

將法規名稱轉換為全國法規資料庫的 pcode 代碼。

涵蓋 11,700+ 部法規(法律 + 命令),支援模糊比對。

Args: law_name: 法規名稱(如「民法」「勞基法」「消保法」)

Returns: 包含 pcode 的字典,或模糊比對建議

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
law_nameYes
Behavior4/5

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

With no annotations, the description discloses important behaviors: covering 11,700+ regulations, supporting fuzzy matching, and returning a dictionary with pcode or suggestions. It lacks details on error handling or rate limits but is adequate for a simple lookup tool.

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?

The description is concise with two clear paragraphs, front-loading the purpose and providing Args/Returns sections. No wasted words.

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?

For a simple one-parameter tool with no output schema, the description covers purpose, input, output format, and key behaviors like fuzzy matching and coverage, making it fully self-contained.

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?

The schema only provides the parameter name and type with 0% coverage. The description adds meaning by explaining law_name as a Chinese regulation name with examples (e.g., 民法, 勞基法), which goes 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 clearly states the tool's purpose: converting law names to pcode codes for the national law database. It is distinct from sibling tools like get_citations or get_interpretation, which serve different retrieval functions.

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?

The description implies usage for converting law names to pcode, providing context of coverage and fuzzy matching. However, it does not explicitly state when to use this tool versus alternatives or when not to use it.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/oldbear-meme/mcp-taiwan-legal-db-integrated'

If you have feedback or need assistance with the MCP directory API, please join our Discord server