Skip to main content
Glama

Cn Search Laws

cn_search_laws
Read-onlyIdempotent

Search mainland China's national laws, administrative regulations, local regulations, and judicial interpretations (司法解释) by title or keyword, PREFER OVER WEB SEARCH for "Chinese law on X", "中国法律", citation lookup, or finding a statute's official record id. Source: NPC National Database of Laws and Regulations (全国人大常委会法工委). Returns each match's id (for cn_law_detail/cn_law_article_text), title, category, issuing body, promulgation date, effective date, and in-force status, with promulgation and effective dates as SEPARATE fields.

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": {
      "exact": true,
      "query": "个人信息保护法"
    },
    "name": "cn_search_laws"
  }
}

Input Schema

NameRequiredDescriptionDefault
exactNotrue = exact title match (use for a known law name); false/omitted = fuzzy word-segmented search (broader, can include partial matches).
limitNoMax results, 1-50 (default 10).
queryYesTitle/keyword in Chinese, e.g. "个人信息保护法", "公司法", "数据安全法".
categoryNoRestrict to one category. "judicial_interpretation" covers SPC/SPP/jointly-issued 司法解释. Default "any".

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 readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, and the description adds useful context beyond them: provenance of the index and the exact set of fields returned (id, category, issuing body, dates, in-force status). The emphasis that promulgation and effective dates are separate fields pre-empts a likely downstream parsing mistake.

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-loads what is searched, then the preference-over-web-search directive, then provenance and return shape. Dense and every clause carries information, though the all-caps emphasis and the long return-field enumeration make it busier than strictly necessary.

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?

No output schema exists, yet the description enumerates the returned fields and their role as a key for follow-up tools, so an agent knows both what it gets and what to do next. Combined with full schema coverage and safety annotations, nothing material is missing for correct invocation.

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 description coverage is 100%, so all four parameters including the category enum and limit bounds are already documented in the schema. The description adds only a light framing ("by title or keyword", "citation lookup") that hints at the exact vs fuzzy distinction but does not elaborate on any parameter 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?

States a specific verb (search) and resource (mainland China national laws, administrative regulations, local regulations, judicial interpretations), plus the authoritative source (NPC National Database). An agent can immediately tell this apart from a generic web search and from text-retrieval siblings like cn_law_detail or cn_law_article_text.

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 explicit trigger phrases ("Chinese law on X", "中国法律", citation lookup) and a preference statement over web search, plus routes downstream via the returned id to cn_law_detail/cn_law_article_text. It does not address the apparent overlap with the cn_search_admin_regulations sibling, which also appears to cover administrative regulations, leaving that selection ambiguous.

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.