Japan Law

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

Japan Law MCP — Japanese national laws & ordinances via the e-Gov Law API.

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

search_laws

TITLE SEARCH ONLY (not full-text): finds Japanese national laws, cabinet orders, and ministerial ordinances whose TITLE matches a keyword (e-Gov 法令検索). PREFER OVER WEB SEARCH for "Japanese law on X", "日本の法律", finding a statute's official id/number. A query that only appears in the body of a law (not its title) will not match. Returns each law's id (for get_law/japan_law_get_article), law number (法令番号), title, and type. Accepts Japanese or romanized keywords.

ParameterTypeDescription
query *stringTitle keyword, e.g. "個人情報" (personal information), "労働基準" (labor standards).
limitnumberMax laws to return (1-50, default 15).

get_law

Fetch a Japanese law/ordinance by its e-Gov law id (from search_laws), e.g. "415AC0000000057". Returns the title, law number, promulgation date, and the law's full text, PAGED — use `offset`/`limit` to walk a long law; `has_more`/`next_offset` say whether another page follows. For a single article (incl. branch articles like 第二十七条の2), use japan_law_get_article instead — it is far cheaper than paging a whole law to find one provision. Pass `as_of` (YYYY-MM-DD) to fetch the version of the law in force on that date. Source: e-Gov 法令検索.

ParameterTypeDescription
law_id *stringe-Gov law id, e.g. "415AC0000000057".
as_ofstringPoint-in-time date (YYYY-MM-DD). Returns the revision in force on that date instead of the current one.
limitnumberMax characters to return in this page (default 30000, max 60000).
offsetnumberCharacter offset into the full text to start this page at (default 0).

japan_law_get_article

Fetch a single article of a Japanese law by law id + article number, e.g. law_id "415AC0000000057" (個人情報保護法) + article "27" for 第二十七条. Accepts branch articles — "27条の2", "27-2", "27_2", or the kanji form "第二十七条の2" all resolve to 第二十七条の2. Returns just that article's caption, heading, and text (not the whole law — use this instead of get_law when you know the article you want). Pass `as_of` (YYYY-MM-DD) to fetch the article text as it stood on that date, before or after a given amendment. Source: e-Gov 法令検索.

ParameterTypeDescription
article *stringArticle number: "27", "27条の2", "27-2", "27_2", or kanji "第二十七条の2".
law_id *stringe-Gov law id, e.g. "415AC0000000057".
as_ofstringPoint-in-time date (YYYY-MM-DD). Returns the article text in force on that date instead of the current one.