Cn Law

v0.2.1
io.github.pipeworx-io/cn-law Checked 2 days ago Published 1 month ago

China (mainland) national law — one pack per jurisdiction (at-ris precedent: legislation AND case…

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

cn_search_laws

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.

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

cn_law_detail

Metadata for one law/regulation/interpretation record from cn_search_laws: title, category, issuing body, promulgation date, effective date, and in-force status, plus whether article-level text can be extracted via cn_law_article_text. Source: NPC National Database of Laws and Regulations.

ParameterTypeDescription
id *stringRecord id ("bbbs") from cn_search_laws.

cn_law_article_text

The Chinese text of ONE specific article/provision of a law, regulation, or judicial interpretation found via cn_search_laws — not the whole document. Extracted from the official PDF the NPC database itself serves (that database has no per-article JSON text field). Returns found:false with an explanation rather than a snippet when the article cannot be located or the PDF cannot be read — this tool never fabricates text.

ParameterTypeDescription
article *string | numberArticle number (13) or the Chinese citation itself ("第十三条", "十三条之一").
id *stringRecord id ("bbbs") from cn_search_laws.

cn_search_admin_regulations

Search mainland Chinese administrative regulations (行政法规) by title — a second official copy of the same regulations cn_search_laws covers, used here specifically because its detail pages carry the FULL regulation text inline as plain HTML (cn_search_laws/cn_law_article_text route through a PDF instead). Source: Ministry of Justice (司法部), National Administrative Regulations Database.

ParameterTypeDescription
query *stringTitle keyword in Chinese, e.g. "公司法" (matches implementing regulations), "数据安全".
limitnumberMax results, 1-30 (default 10).

cn_admin_regulation_text

Full Chinese text of one administrative regulation found via cn_search_admin_regulations, plus its revision-date history. Source: Ministry of Justice, National Administrative Regulations Database.

ParameterTypeDescription
law_id *stringRecord id ("LawID") from cn_search_admin_regulations.

cn_guiding_cases_list

Index of the Supreme People's Court's official Guiding Cases (指导性案例) — binding case guidance for lower courts, numbered sequentially and released in batches. Page 1 is the newest batch. Source: court.gov.cn, 审判业务 > 指导性案例.

ParameterTypeDescription
pagenumberPage number, 1 = newest (default 1). Higher numbers go further back.

cn_guiding_case_detail

Full text of one Supreme People's Court Guiding Case from cn_guiding_cases_list: title, issuing source, publication date, keywords (关键词), holding (裁判要点), and the full case narrative, in Chinese. Source: court.gov.cn.

ParameterTypeDescription
id *stringCase id from cn_guiding_cases_list.