Skip to main content
Glama

Hk Law Info

hk_law_info
Read-onlyIdempotent

Resolve a Hong Kong Ordinance/subsidiary legislation/instrument to its full metadata by Cap. number ("486", "Cap. 486", "486A" for subsidiary legislation) or an exact/partial English or Chinese title, the exact-citation step before reading a section. Returns the English and Traditional Chinese titles (both original-language, equally authentic under Cap. 5 s.4B, neither is a translation), the in-force status, the VERSION DATE of the English text and of the Chinese text as SEPARATE fields (one language can be consolidated ahead of the other), whether it is a principal Ordinance / subsidiary legislation / instrument, and the section count. 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": {
      "cap": "486"
    },
    "name": "hk_law_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
capNoChapter number, e.g. "486", "Cap. 486", or "486A" for a subsidiary legislation suffix.
titleNoEnglish or Traditional Chinese title, exact or partial, used when cap is not known.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

The annotations already declare readOnly, idempotent, and non-destructive, and the description adds genuine behavioral context: the source (HK DoJ e-Legislation), that in-force status is reported, and that the two language version dates are separate fields that can diverge. It does not cover failure behavior – no match found, or ambiguous partial titles matching multiple instruments – which matters for a resolver.

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 verb, resource, and return payload, and the parenthetical format examples earn their space. The single run-on sentence carries heavy parenthetical nesting (the Cap. 5 s.4B aside) that could be split for scannability, but little is actually wasted.

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?

With no output schema, the description does the work of enumerating returned fields (bilingual titles, in-force status, separate version dates, instrument type, section count), which is strong. It is still silent on ambiguity and not-found behavior for partial-title lookups, the main completeness gap for 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 schema already documents the cap formats and the "486A" subsidiary-suffix convention, so the description largely repeats structured data ("486", "Cap. 486", "486A", exact/partial English or Chinese title). The one added nuance is that titles are equally authentic originals rather than translations, but that is framed as an output fact, not parameter meaning.

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 and resource ("Resolve a Hong Kong Ordinance/subsidiary legislation/instrument to its full metadata") and adds scope (by Cap. number or partial title). It also positions itself in the workflow as "the exact-citation step before reading a section," which separates it from the search and section-reading siblings.

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 clear usage context: use it as the citation-resolution step before reading a section, and use the title field "when cap is not known." It does not explicitly say when to prefer hk_law_search instead (e.g., topic/keyword lookup), so the routing against that sibling is inferred 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.