get_law
Pack: japan-law · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/get_law for the schema, then POST the same URL with its arguments for the data.
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 法令検索.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
law_id | string | yes | e-Gov law id, e.g. “415AC0000000057”. |
as_of | string | no | Point-in-time date (YYYY-MM-DD). Returns the revision in force on that date instead of the current one. |
offset | number | no | Character offset into the full text to start this page at (default 0). |
limit | number | no | Max characters to return in this page (default ${DEFAULT_PAGE_CHARS}, max ${MAX_PAGE_CHARS}). |
Example call
Arguments
{
"law_id": "415AC0000000057"
}
curl
curl -X POST https://gateway.pipeworx.io/japan-law/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_law","arguments":{"law_id":"415AC0000000057"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_law', {
"law_id": "415AC0000000057"
});
More examples
{
"law_id": "415AC0000000057",
"offset": 30000
}
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the japan-law pack
{
"mcpServers": {
"japan-law": {
"url": "https://gateway.pipeworx.io/japan-law/mcp"
}
}
}
See Getting Started for client-specific install steps.