Skip to main content
Glama

Hk Law Search

hk_law_search
Read-onlyIdempotent

Search Hong Kong Ordinances, subsidiary legislation and instruments by TITLE keyword, English or Traditional Chinese, "Personal Data", "個人資料", "Companies Ordinance", "公司條例". This is a title search, not full-text; it will not find a chapter by a phrase appearing only inside a section. Also accepts a bare chapter number ("486") for an exact match. Returns each match's Cap. number (for hk_law_info/hk_law_section), English and Traditional Chinese titles, in-force status, and whether it is a principal Ordinance, subsidiary legislation, or an instrument. Source: Hong Kong Department of Justice, e-Legislation.

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": {
      "query": "Personal Data"
    },
    "name": "hk_law_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax chapters to return (1-50, default 10).
queryYesTitle keyword (English or Traditional Chinese) or a bare chapter number, e.g. "Personal Data", "個人資料", or "486".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, open-world behavior, so the bar is lower. The description adds genuinely useful context beyond them: the data source (HK Department of Justice e-Legislation) and a precise account of what each result contains, including in-force status and chapter classification.

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 capability and the most important constraint (title-only search). The inline example list ('Personal Data', '個人資料', 'Companies Ordinance', '公司條例') partly duplicates the schema examples, which is the only real waste.

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, and the description compensates by enumerating exactly what a match returns (Cap. number, bilingual titles, in-force status, chapter type) and by flagging the title-only limitation. An agent has everything needed to call it and interpret results.

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 schema already documents both query and limit, including examples. The description restates the dual-mode query semantics (English/Traditional Chinese keyword vs. bare chapter number) but adds little that the schema does not already say, and never mentions the limit parameter.

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: search Hong Kong Ordinances, subsidiary legislation and instruments by TITLE keyword. It immediately delimits scope ('title search, not full-text') and notes the bare-chapter-number mode, so an agent can distinguish it from full-text or section-lookup siblings 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?

It gives an explicit when-not ('will not find a chapter by a phrase appearing only inside a section') and positions the output as an entry point to hk_law_info/hk_law_section via the Cap. number. It stops short of naming the alternative tool for full-text lookup, so the routing is implied rather than stated.

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.