japan-legislation-mcp-server
An MCP server that allows agents to search Japanese national laws via the e-Gov Law API, read provisions as of a specific date, trace amendments, and find subordinate laws. It supports STDIO and Streamable HTTP transports and provides tools for searching by title, citation, or text.
Endpoint and access
No sign-in to connect and list tools. Individual tools may still need a vendor account, credentials, or permissions; check the documented prerequisites.
https://japan-legislation.caseyjhand.com/mcpWhat its tools do
8 tools, grouped by the hints the server advertises. Hints are self-declared, not verified behavior.
Checks and signals
Each line is separate evidence, not a trust score.
- Passed Endpoint answered the live check ·
- Availability 1 of 1 checks passed in 30 days
What you can do with it
- Search national law metadata by Japanese title or abbreviation
- Read provisions as of a specific date
- Trace amendments and revision history of a law
- Find implementing orders and ordinances for an Act
Source and maintenance
- Maintenance checked
Protocol and capabilities
- Server
- japan-legislation-mcp-server 0.3.0
- MCP protocol negotiated in check
- 2025-11-25
- Tools
- 8 advertised
- Resources
- 1 advertised
- Resource templates
- 1 advertised
- Prompts
- 0 advertised
{
"tools": {
"listChanged": true
},
"logging": {},
"prompts": {
"listChanged": true
},
"resources": {
"subscribe": true,
"listChanged": true
},
"extensions": {
"io.modelcontextprotocol/skills": {
"directoryRead": true
}
}
}Server-provided instructions
Untrusted server output shown for inspection. It is not Koskamo guidance and is excluded from knowledge search.
Tools
8 advertised
jplaw_search_laws — Search Japanese Laws
Search national law metadata by Japanese title or abbreviation, law type, subject, promulgation, repeal status, or amending law ID. Use asof to select a date view. For words in a law’s body, call jplaw_search_text. To see every amendment of one law, call jplaw_list_revisions.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"asof": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "ISO date for the historical or future metadata view, from 2017-04-01. Omit for the default view."
},
"sort": {
"enum": [
"law_number",
"promulgated",
"amended"
],
"type": "string",
"default": "law_number",
"description": "Sort by ascending law number, newest law promulgation, or newest amendment promulgation."
},
"limit": {
"type": "integer",
"default": 25,
"maximum": 500,
"description": "Maximum results per page. Values above 500 are served at 500.",
"exclusiveMinimum": 0
},
"title": {
"type": "string",
"description": "Substring of the Japanese title or an abbreviation. Ignores ASCII case and width."
},
"offset": {
"type": "integer",
"default": 0,
"maximum": 9007199254740991,
"minimum": 0,
"description": "Zero-based offset or next_offset from the previous call."
},
"status": {
"enum": [
"in_force",
"all",
"Repeal",
"Expire",
"Suspend",
"LossOfEffectiveness"
],
"type": "string",
"default": "in_force",
"description": "Repeal status. in_force selects e-Gov status None in the selected view."
},
"law_types": {
"type": "array",
"items": {
"enum": [
"Constitution",
"Act",
"CabinetOrder",
"ImperialOrder",
"MinisterialOrdinance",
"Rule",
"Misc",
"Act,ImperialOrder",
"Act,CabinetOrder",
"Act,MinisterialOrdinance"
],
"type": "string"
},
"description": "Accept any listed law type. A compound value matches the exact composite type."
},
"categories": {
"type": "array",
"items": {
"enum": [
"001",
"002",
"003",
"004",
"005",
"006",
"007",
"008",
"009",
"010",
"011",
"012",
"013",
"014",
"015",
"016",
"017",
"018",
"019",
"020",
"021",
"022",
"023",
"024",
"025",
"026",
"027",
"028",
"029",
"030",
"031",
"032",
"033",
"034",
"035",
"036",
"037",
"038",
"039",
"040",
"041",
"042",
"043",
"044",
"045",
"046",
"047",
"048",
"049",
"050"
],
"type": "string"
},
"description": "Accept any listed Japanese subject category code."
},
"law_num_era": {
"enum": [
"Meiji",
"Taisho",
"Showa",
"Heisei",
"Reiwa"
],
"type": "string",
"description": "Era of the published law number."
},
"law_num_year": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Year within the Japanese era of the published law number.",
"exclusiveMinimum": 0
},
"promulgation_to": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Latest law promulgation date, inclusive."
},
"amendment_law_id": {
"type": "string",
"pattern": "^[A-Za-z0-9]{15}$",
"description": "Exact 15-character e-Gov law ID of an amending Act. Select affected laws and their matched revisions. Use status all for every repeal status."
},
"promulgation_from": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Earliest law promulgation date, inclusive."
},
"amendment_enforcement_to": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Latest reported amendment enforcement date, inclusive. A date not yet fixed matches at e-Gov’s placeholder and is marked enforcement_date_placeholder."
},
"amendment_promulgation_to": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Latest promulgation date of the selected revision’s amendment, inclusive."
},
"amendment_enforcement_from": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Earliest reported amendment enforcement date, inclusive. A date not yet fixed matches at e-Gov’s placeholder and is marked enforcement_date_placeholder."
},
"amendment_promulgation_from": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Earliest promulgation date of the selected revision’s amendment, inclusive."
}
},
"additionalProperties": false
}{
"type": "object",
"$defs": {
"LawIdentity": {
"type": "object",
"required": [
"law_id",
"law_num",
"law_title",
"law_types"
],
"properties": {
"law_id": {
"type": "string",
"pattern": "^[A-Z0-9]{15}$",
"description": "Stable e-Gov law ID."
},
"law_num": {
"type": "string",
"description": "Published Japanese law number."
},
"category": {
"type": "string",
"description": "Japanese subject classification."
},
"law_title": {
"type": "string",
"description": "Japanese title at this revision."
},
"law_types": {
"type": "array",
"items": {
"type": "string",
"description": "e-Gov type code."
},
"description": "Law types, with compound types split."
},
"repeal_date": {
"type": "string",
"description": "Date of repeal or e-Gov processing date, as labeled."
},
"abbreviations": {
"type": "array",
"items": {
"type": "string",
"description": "A published Japanese abbreviation."
},
"description": "Published title abbreviations."
},
"repeal_status": {
"enum": [
"None",
"Repeal",
"Expire",
"Suspend",
"LossOfEffectiveness"
],
"type": "string",
"description": "Repeal or equivalent status at the selected revision."
},
"remain_in_force": {
"type": "boolean",
"description": "Still effective after repeal."
},
"repeal_date_kind": {
"enum": [
"repeal_date",
"processing_date"
],
"type": "string",
"description": "Meaning of the reported repeal date."
},
"promulgation_date": {
"type": "string",
"description": "Original law promulgation date."
}
},
"additionalProperties": false
},
"LawRevision": {
"type": "object",
"required": [
"law_revision_id",
"current_revision_status",
"updated",
"law_title"
],
"properties": {
"updated": {
"type": "string",
"description": "Source metadata timestamp (ISO 8601 with offset)."
},
"law_title": {
"type": "string",
"description": "Published title at this revision."
},
"law_revision_id": {
"type": "string",
"pattern": "^[A-Z0-9]{15}_[0-9]{8}_[A-Z0-9]{15}$",
"description": "Exact revision ID for reading this version."
},
"amendment_law_id": {
"type": "string",
"description": "Amending law ID."
},
"amendment_law_num": {
"type": "string",
"description": "Published amending law number."
},
"amendment_law_title": {
"type": "string",
"description": "Published amending law title."
},
"current_revision_status": {
"enum": [
"CurrentEnforced",
"PreviousEnforced",
"UnEnforced",
"Repeal"
],
"type": "string",
"description": "Enforcement status relative to today."
},
"amendment_promulgate_date": {
"type": "string",
"description": "Date the amending law was promulgated."
},
"amendment_enforcement_date": {
"type": "string",
"description": "Reported enforcement date. Provisional when enforcement_date_placeholder is true."
},
"enforcement_date_placeholder": {
"type": "boolean",
"description": "True when both dates carry e-Gov’s placeholder for an unfixed date. Omitted otherwise."
},
"amendment_enforcement_comment": {
"type": "string",
"description": "Source explanation of amendment timing."
},
"amendment_scheduled_enforcement_date": {
"type": "string",
"description": "e-Gov’s placeholder enforcement date (擬似的な施行期日), not necessarily the actual date. Set while the date is not yet fixed, such as 政令で定める日."
}
},
"additionalProperties": false
}
},
"anyOf": [
{
"not": {
"required": [
"error"
]
},
"required": [
"laws",
"offset",
"limit",
"count",
"total_count",
"next_offset",
"fetched_at",
"attribution",
"applied_filters"
]
},
{
"required": [
"error"
]
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"laws": {
"type": "array",
"items": {
"type": "object",
"required": [
"law",
"revision"
],
"properties": {
"law": {
"$ref": "#/$defs/LawIdentity",
"description": "Law identity in the selected metadata view."
},
"revision": {
"$ref": "#/$defs/LawRevision",
"description": "Revision in the selected metadata view."
},
"law_num_arabic": {
"type": "string",
"description": "Published law number with Arabic numerals."
},
"law_num_gregorian_year": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Gregorian year of the published law number."
},
"current_law_revision_id": {
"type": "string",
"pattern": "^[A-Z0-9]{15}_[0-9]{8}_[A-Z0-9]{15}$",
"description": "Current revision ID, if provided."
}
},
"description": "A law and its selected revision.",
"additionalProperties": false
},
"description": "Matching law identities and selected revisions."
},
"count": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Number of results returned in this page."
},
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "JSON-RPC error code for this failure."
},
"data": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"examples": [
"invalid_date_range",
"asof_before_coverage",
"upstream_rejected_query"
],
"description": "Machine-readable failure mode. Declared by this tool: `invalid_date_range`: A date window has a from date after its to date. `asof_before_coverage`: asof precedes the earliest supported date. `upstream_rejected_query`: e-Gov rejected the catalog query. Other values are possible when a failure originates below the handler."
},
"recovery": {
"type": "object",
"required": [
"hint"
],
"properties": {
"hint": {
"type": "string"
}
},
"description": "Actionable next step for the caller.",
"additionalProperties": {}
},
"retryable": {
"type": "boolean",
"description": "Whether retrying may succeed."
}
},
"additionalProperties": {}
},
"message": {
"type": "string",
"description": "Human-readable description of what went wrong."
}
},
"description": "Present when the call failed. Absent on success.",
"additionalProperties": {}
},
"limit": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Effective maximum number of results in this page.",
"exclusiveMinimum": 0
},
"notice": {
"type": "string",
"description": "Paging or empty-result guidance when applicable."
},
"offset": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Zero-based offset into the filtered collection."
},
"truncated": {
"type": "boolean",
"description": "Whether more matching laws can be read using next_offset."
},
"fetched_at": {
"type": "string",
"description": "When this metadata snapshot finished loading, ISO 8601."
},
"attribution": {
"type": "string",
"description": "Source and reformatting credit."
},
"next_offset": {
"anyOf": [
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
{
"type": "null"
}
],
"description": "Offset of the first unread result, or null at the end."
},
"total_count": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Total results before pagination."
},
"applied_filters": {
"type": "object",
"required": [
"status",
"sort"
],
"properties": {
"asof": {
"type": "string",
"description": "Applied ISO date (YYYY-MM-DD)."
},
"sort": {
"enum": [
"law_number",
"promulgated",
"amended"
],
"type": "string",
"default": "law_number",
"description": "Sort by ascending law number, newest law promulgation, or newest amendment promulgation."
},
"title": {
"type": "string",
"description": "Substring of the Japanese title or an abbreviation. Ignores ASCII case and width."
},
"status": {
"enum": [
"in_force",
"all",
"Repeal",
"Expire",
"Suspend",
"LossOfEffectiveness"
],
"type": "string",
"default": "in_force",
"description": "Repeal status. in_force selects e-Gov status None in the selected view."
},
"law_types": {
"type": "array",
"items": {
"enum": [
"Constitution",
"Act",
"CabinetOrder",
"ImperialOrder",
"MinisterialOrdinance",
"Rule",
"Misc",
"Act,ImperialOrder",
"Act,CabinetOrder",
"Act,MinisterialOrdinance"
],
"type": "string"
},
"description": "Accept any listed law type. A compound value matches the exact composite type."
},
"categories": {
"type": "array",
"items": {
"enum": [
"001",
"002",
"003",
"004",
"005",
"006",
"007",
"008",
"009",
"010",
"011",
"012",
"013",
"014",
"015",
"016",
"017",
"018",
"019",
"020",
"021",
"022",
"023",
"024",
"025",
"026",
"027",
"028",
"029",
"030",
"031",
"032",
"033",
"034",
"035",
"036",
"037",
"038",
"039",
"040",
"041",
"042",
"043",
"044",
"045",
"046",
"047",
"048",
"049",
"050"
],
"type": "string"
},
"description": "Accept any listed Japanese subject category code."
},
"law_num_era": {
"enum": [
"Meiji",
"Taisho",
"Showa",
"Heisei",
"Reiwa"
],
"type": "string",
"description": "Era of the published law number."
},
"law_num_year": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Year within the Japanese era of the published law number.",
"exclusiveMinimum": 0
},
"promulgation_to": {
"type": "string",
"description": "Applied ISO date (YYYY-MM-DD)."
},
"amendment_law_id": {
"type": "string",
"description": "Applied amending law ID, in uppercase."
},
"promulgation_from": {
"type": "string",
"description": "Applied ISO date (YYYY-MM-DD)."
},
"amendment_enforcement_to": {
"type": "string",
"description": "Applied ISO date (YYYY-MM-DD)."
},
"amendment_promulgation_to": {
"type": "string",
"description": "Applied ISO date (YYYY-MM-DD)."
},
"amendment_enforcement_from": {
"type": "string",
"description": "Applied ISO date (YYYY-MM-DD)."
},
"amendment_promulgation_from": {
"type": "string",
"description": "Applied ISO date (YYYY-MM-DD)."
}
},
"description": "Effective search filters and sort order.",
"additionalProperties": false
}
},
"additionalProperties": false
}{
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true
}jplaw_search_text — Search Japanese Law Text
Search Japanese statutes across laws for highlighted previews grouped by law. Filter with sections and continue with next_offset and the same filters. Read exact text with jplaw_get_law or jplaw_get_provision. Supply law or law_revision_id for literal search of paragraphs, their inline tables and lists, and article captions. Reopen a scoped match with its selector as jplaw_get_law.part or, when present, its address as a jplaw_get_provision.provisions entry. Pin the returned revision for reads and paging. Restart if revision.updated changes.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"keyword"
],
"properties": {
"law": {
"type": "string",
"description": "Exact law ID, Japanese number, title, or abbreviation for scoped search."
},
"asof": {
"anyOf": [
{
"type": "string",
"const": ""
},
{
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "ISO calendar date."
}
],
"description": "Calendar date YYYY-MM-DD from 2017-04-01. Omit for the current version."
},
"limit": {
"type": "integer",
"default": 25,
"maximum": 1000,
"description": "Maximum snippets or scoped matches per page. Values above 1000 are served at 1000.",
"exclusiveMinimum": 0
},
"offset": {
"type": "integer",
"default": 0,
"maximum": 9007199254740991,
"minimum": 0,
"description": "Upstream snippet or scoped match offset. Pass the previous next_offset."
},
"keyword": {
"type": "string",
"minLength": 1,
"description": "Japanese body text. Across laws use space (AND), | (OR), ! (NOT), or * and ? wildcards. In one revision, join literal terms by whitespace (AND within one provision)."
},
"sections": {
"type": "array",
"items": {
"enum": [
"mainprovision",
"supplprovision",
"amendsupplprovision",
"caption",
"enactstatement",
"relatedarticlenum"
],
"type": "string",
"description": "Section label."
},
"description": "Cross-law snippet sections. The search scans later pages to fill the limit."
},
"law_types": {
"type": "array",
"items": {
"enum": [
"Constitution",
"Act",
"CabinetOrder",
"ImperialOrder",
"MinisterialOrdinance",
"Rule",
"Misc",
"Act,ImperialOrder",
"Act,CabinetOrder",
"Act,MinisterialOrdinance"
],
"type": "string",
"description": "An e-Gov law type."
},
"description": "Cross-law filter for law types."
},
"categories": {
"type": "array",
"items": {
"enum": [
"001",
"002",
"003",
"004",
"005",
"006",
"007",
"008",
"009",
"010",
"011",
"012",
"013",
"014",
"015",
"016",
"017",
"018",
"019",
"020",
"021",
"022",
"023",
"024",
"025",
"026",
"027",
"028",
"029",
"030",
"031",
"032",
"033",
"034",
"035",
"036",
"037",
"038",
"039",
"040",
"041",
"042",
"043",
"044",
"045",
"046",
"047",
"048",
"049",
"050"
],
"type": "string",
"description": "A three-digit category code."
},
"description": "Cross-law filter for category codes from jplaw_list_reference."
},
"law_revision_id": {
"type": "string",
"pattern": "^[A-Z0-9]{15}_[0-9]{8}_[A-Z0-9]{15}$",
"description": "Exact revision ID for scoped search. Mutually exclusive with asof."
}
},
"additionalProperties": false
}{
"type": "object",
"$defs": {
"LawIdentity": {
"type": "object",
"required": [
"law_id",
"law_num",
"law_title",
"law_types"
],
"properties": {
"law_id": {
"type": "string",
"pattern": "^[A-Z0-9]{15}$",
"description": "Stable e-Gov law ID."
},
"law_num": {
"type": "string",
"description": "Published Japanese law number."
},
"category": {
"type": "string",
"description": "Japanese subject classification."
},
"law_title": {
"type": "string",
"description": "Japanese title at this revision."
},
"law_types": {
"type": "array",
"items": {
"type": "string",
"description": "e-Gov type code."
},
"description": "Law types, with compound types split."
},
"repeal_date": {
"type": "string",
"description": "Date of repeal or e-Gov processing date, as labeled."
},
"abbreviations": {
"type": "array",
"items": {
"type": "string",
"description": "A published Japanese abbreviation."
},
"description": "Published title abbreviations."
},
"repeal_status": {
"enum": [
"None",
"Repeal",
"Expire",
"Suspend",
"LossOfEffectiveness"
],
"type": "string",
"description": "Repeal or equivalent status at the selected revision."
},
"remain_in_force": {
"type": "boolean",
"description": "Still effective after repeal."
},
"repeal_date_kind": {
"enum": [
"repeal_date",
"processing_date"
],
"type": "string",
"description": "Meaning of the reported repeal date."
},
"promulgation_date": {
"type": "string",
"description": "Original law promulgation date."
}
},
"additionalProperties": false
},
"LawRevision": {
"type": "object",
"required": [
"law_revision_id",
"current_revision_status",
"updated",
"law_title"
],
"properties": {
"updated": {
"type": "string",
"description": "Source metadata timestamp (ISO 8601 with offset)."
},
"law_title": {
"type": "string",
"description": "Published title at this revision."
},
"law_revision_id": {
"type": "string",
"pattern": "^[A-Z0-9]{15}_[0-9]{8}_[A-Z0-9]{15}$",
"description": "Exact revision ID for reading this version."
},
"amendment_law_id": {
"type": "string",
"description": "Amending law ID."
},
"amendment_law_num": {
"type": "string",
"description": "Published amending law number."
},
"amendment_law_title": {
"type": "string",
"description": "Published amending law title."
},
"current_revision_status": {
"enum": [
"CurrentEnforced",
"PreviousEnforced",
"UnEnforced",
"Repeal"
],
"type": "string",
"description": "Enforcement status relative to today."
},
"amendment_promulgate_date": {
"type": "string",
"description": "Date the amending law was promulgated."
},
"amendment_enforcement_date": {
"type": "string",
"description": "Reported enforcement date. Provisional when enforcement_date_placeholder is true."
},
"enforcement_date_placeholder": {
"type": "boolean",
"description": "True when both dates carry e-Gov’s placeholder for an unfixed date. Omitted otherwise."
},
"amendment_enforcement_comment": {
"type": "string",
"description": "Source explanation of amendment timing."
},
"amendment_scheduled_enforcement_date": {
"type": "string",
"description": "e-Gov’s placeholder enforcement date (擬似的な施行期日), not necessarily the actual date. Set while the date is not yet fixed, such as 政令で定める日."
}
},
"additionalProperties": false
}
},
"anyOf": [
{
"not": {
"required": [
"error"
]
},
"required": [
"groups",
"query",
"offset",
"limit",
"count",
"truncated",
"next_offset",
"incomplete",
"notices",
"attribution"
]
},
{
"required": [
"error"
]
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"count": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Snippets or scoped matches on this page."
},
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "JSON-RPC error code for this failure."
},
"data": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"examples": [
"invalid_keyword_syntax",
"invalid_scoped_keyword_syntax",
"scoped_search_filters",
"conflicting_revision",
"asof_before_coverage",
"upstream_rejected_query"
],
"description": "Machine-readable failure mode. Declared by this tool: `invalid_keyword_syntax`: A wildcard expression contains whitespace, parentheses, ! or |. `invalid_scoped_keyword_syntax`: A scoped keyword uses |, !, parentheses, * or ?. `scoped_search_filters`: A scoped search supplies nonempty sections, law_types or categories. `conflicting_revision`: Both asof and law_revision_id are supplied, or law and law_revision_id identify different laws. `asof_before_coverage`: The requested date precedes the coverage floor. `upstream_rejected_query`: e-Gov rejects a search parameter. Other values are possible when a failure originates below the handler."
},
"recovery": {
"type": "object",
"required": [
"hint"
],
"properties": {
"hint": {
"type": "string"
}
},
"description": "Actionable next step for the caller.",
"additionalProperties": {}
},
"retryable": {
"type": "boolean",
"description": "Whether retrying may succeed."
}
},
"additionalProperties": {}
},
"message": {
"type": "string",
"description": "Human-readable description of what went wrong."
}
},
"description": "Present when the call failed. Absent on success.",
"additionalProperties": {}
},
"limit": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Effective page limit."
},
"query": {
"type": "object",
"required": [
"keyword"
],
"properties": {
"law": {
"type": "string",
"description": "Exact law selector requested for scoped search."
},
"asof": {
"type": "string",
"description": "Applied ISO date (YYYY-MM-DD)."
},
"keyword": {
"type": "string",
"minLength": 1,
"description": "Japanese body text. Across laws use space (AND), | (OR), ! (NOT), or * and ? wildcards. In one revision, join literal terms by whitespace (AND within one provision)."
},
"sections": {
"type": "array",
"items": {
"enum": [
"mainprovision",
"supplprovision",
"amendsupplprovision",
"caption",
"enactstatement",
"relatedarticlenum"
],
"type": "string",
"description": "Section label."
},
"description": "Cross-law snippet sections. The search scans later pages to fill the limit."
},
"law_types": {
"type": "array",
"items": {
"enum": [
"Constitution",
"Act",
"CabinetOrder",
"ImperialOrder",
"MinisterialOrdinance",
"Rule",
"Misc",
"Act,ImperialOrder",
"Act,CabinetOrder",
"Act,MinisterialOrdinance"
],
"type": "string",
"description": "An e-Gov law type."
},
"description": "Cross-law filter for law types."
},
"categories": {
"type": "array",
"items": {
"enum": [
"001",
"002",
"003",
"004",
"005",
"006",
"007",
"008",
"009",
"010",
"011",
"012",
"013",
"014",
"015",
"016",
"017",
"018",
"019",
"020",
"021",
"022",
"023",
"024",
"025",
"026",
"027",
"028",
"029",
"030",
"031",
"032",
"033",
"034",
"035",
"036",
"037",
"038",
"039",
"040",
"041",
"042",
"043",
"044",
"045",
"046",
"047",
"048",
"049",
"050"
],
"type": "string",
"description": "A three-digit category code."
},
"description": "Cross-law filter for category codes from jplaw_list_reference."
},
"law_revision_id": {
"type": "string",
"description": "Revision ID requested for scoped search."
}
},
"description": "Applied search expression, filters and date.",
"additionalProperties": false
},
"groups": {
"type": "array",
"items": {
"type": "object",
"required": [
"law",
"revision",
"snippets"
],
"properties": {
"law": {
"$ref": "#/$defs/LawIdentity",
"description": "Law containing these previews."
},
"revision": {
"$ref": "#/$defs/LawRevision",
"description": "Version in which the previews occur."
},
"snippets": {
"type": "array",
"items": {
"type": "object",
"required": [
"section",
"excerpt",
"highlights",
"upstream_preview_length",
"excerpted"
],
"properties": {
"excerpt": {
"type": "string",
"description": "Japanese search preview with highlight markup removed."
},
"section": {
"type": "string",
"description": "Section label reported by e-Gov."
},
"excerpted": {
"type": "boolean",
"description": "Whether this server shortened the upstream preview."
},
"highlights": {
"type": "array",
"items": {
"type": "object",
"required": [
"start",
"end"
],
"properties": {
"end": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Exclusive Unicode code-point offset in the excerpt."
},
"start": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Inclusive Unicode code-point offset in the excerpt."
}
},
"description": "One highlighted range.",
"additionalProperties": false
},
"description": "Highlighted ranges within the excerpt."
},
"upstream_preview_length": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Code points in the upstream preview before local clipping, excluding tags."
}
},
"description": "Search preview supplied by e-Gov, which may itself omit surrounding source text.",
"additionalProperties": false
},
"description": "Previews in e-Gov order."
}
},
"description": "One law revision with matching previews.",
"additionalProperties": false
},
"description": "Cross-law previews grouped by law and revision in law-ID order. Empty in scoped mode."
},
"offset": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Requested offset."
},
"scoped": {
"oneOf": [
{
"type": "object",
"required": [
"found",
"law",
"revision",
"matches",
"total_count"
],
"properties": {
"law": {
"$ref": "#/$defs/LawIdentity",
"description": "Law selected for the search."
},
"found": {
"type": "boolean",
"const": true,
"description": "The law revision resolved."
},
"matches": {
"type": "array",
"items": {
"type": "object",
"required": [
"selector",
"label",
"excerpt",
"highlights"
],
"properties": {
"label": {
"type": "string",
"description": "Japanese provision label."
},
"address": {
"type": "object",
"required": [
"article"
],
"properties": {
"article": {
"anyOf": [
{
"type": "integer",
"maximum": 9007199254740991,
"description": "Positive article number.",
"exclusiveMinimum": 0
},
{
"type": "string",
"pattern": "^[1-9\\uFF11-\\uFF19][0-9\\uFF10-\\uFF19]*(?:_[1-9\\uFF11-\\uFF19][0-9\\uFF10-\\uFF19]*)*$",
"description": "Article number with optional underscore-separated branches."
}
],
"description": "Article number or branch, such as 4_3_2."
},
"paragraph": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Paragraph number (項).",
"exclusiveMinimum": 0
},
"supplement": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Occurrence of 附則 in the selected revision outline.",
"exclusiveMinimum": 0
}
},
"description": "Pass as a provisions entry to jplaw_get_provision. Omitted for standalone paragraphs.",
"additionalProperties": false
},
"excerpt": {
"type": "string",
"description": "Plain-text window of up to 240 Unicode code points."
},
"selector": {
"type": "string",
"description": "Canonical part selector in the pinned revision."
},
"highlights": {
"type": "array",
"items": {
"type": "object",
"required": [
"start",
"end"
],
"properties": {
"end": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Exclusive code-point offset."
},
"start": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Inclusive code-point offset."
}
},
"description": "One highlighted range.",
"additionalProperties": false
},
"description": "Matching ranges in the excerpt, measured in Unicode code points."
}
},
"description": "One provision matching the literal terms.",
"additionalProperties": false
},
"description": "Matching provisions in source order."
},
"revision": {
"$ref": "#/$defs/LawRevision",
"description": "Exact revision searched."
},
"total_count": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Matching provisions before paging."
}
},
"description": "Search completed against a resolved revision.",
"additionalProperties": false
},
{
"type": "object",
"required": [
"found",
"guidance"
],
"properties": {
"found": {
"type": "boolean",
"const": false,
"description": "The law or revision did not resolve uniquely."
},
"guidance": {
"type": "string",
"description": "How to select the law or revision."
},
"candidates": {
"type": "array",
"items": {
"$ref": "#/$defs/LawIdentity",
"description": "One equally exact law match."
},
"description": "Equally exact law matches."
}
},
"description": "The requested law or revision could not be selected.",
"additionalProperties": false
}
],
"description": "Result when searching one law revision."
},
"notices": {
"type": "array",
"items": {
"type": "string",
"description": "Interpretation or continuation note."
},
"description": "Guidance on search interpretation or continuation."
},
"truncated": {
"type": "boolean",
"description": "Whether this search has a continuation."
},
"incomplete": {
"type": "boolean",
"description": "True if a cross-law scan reached its deadline. Continue with next_offset and the same filters."
},
"attribution": {
"type": "string",
"description": "Source credit and processing statement."
},
"next_offset": {
"anyOf": [
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
{
"type": "null"
}
],
"description": "Next upstream snippet or scoped match offset, or null when exhausted."
},
"upstream_total_count": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Total reported by e-Gov before section filtering."
}
},
"additionalProperties": false
}{
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true
}jplaw_get_provision — Read Japanese Law Provisions
Read Japanese 条, 項, or 号 from one e-Gov law revision. Process the first 10 addresses and return the rest for continuation. Use jplaw_get_law for a revision outline, supplementary occurrences, tables, or text pages.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"provisions"
],
"properties": {
"law": {
"type": "string",
"description": "Exact e-Gov law ID, Japanese law number, title, or abbreviation. Required unless a revision ID is supplied."
},
"asof": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Calendar date on or after 2017-04-01. Mutually exclusive with law_revision_id."
},
"provisions": {
"type": "array",
"items": {
"anyOf": [
{
"type": "string",
"description": "Japanese display address in 条/項/号 notation."
},
{
"type": "object",
"required": [
"article"
],
"properties": {
"item": {
"anyOf": [
{
"type": "integer",
"maximum": 9007199254740991,
"description": "Positive item number.",
"exclusiveMinimum": 0
},
{
"type": "string",
"pattern": "^[1-9\\uFF11-\\uFF19][0-9\\uFF10-\\uFF19]*(?:_[1-9\\uFF11-\\uFF19][0-9\\uFF10-\\uFF19]*)*$",
"description": "Positive decimal item number or underscore-separated item branch."
}
],
"description": "Item number (号) such as 3 or \"3\", or branch such as \"3_2\". Omit the paragraph only for a sole first paragraph."
},
"article": {
"anyOf": [
{
"type": "integer",
"maximum": 9007199254740991,
"description": "Positive article number.",
"exclusiveMinimum": 0
},
{
"type": "string",
"pattern": "^[1-9\\uFF11-\\uFF19][0-9\\uFF10-\\uFF19]*(?:_[1-9\\uFF11-\\uFF19][0-9\\uFF10-\\uFF19]*)*$",
"description": "Article number with optional underscore-separated branches."
}
],
"description": "Article number or branch, such as 4_3_2."
},
"paragraph": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Paragraph number (項).",
"exclusiveMinimum": 0
},
"supplement": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Occurrence of 附則 in the selected revision outline.",
"exclusiveMinimum": 0
}
},
"description": "Structured Japanese provision coordinates.",
"additionalProperties": false
}
],
"description": "Japanese 条/項/号 address or provision coordinates."
},
"minItems": 1,
"description": "Provision addresses in caller order, for example 第二条第三号の二 or 附則第二条."
},
"law_revision_id": {
"type": "string",
"pattern": "^[A-Z0-9]{15}_[0-9]{8}_[A-Z0-9]{15}$",
"description": "Exact pinned revision ID from a law read or revision list. Mutually exclusive with asof."
}
},
"additionalProperties": false
}{
"type": "object",
"$defs": {
"LawIdentity": {
"type": "object",
"required": [
"law_id",
"law_num",
"law_title",
"law_types"
],
"properties": {
"law_id": {
"type": "string",
"pattern": "^[A-Z0-9]{15}$",
"description": "Stable e-Gov law ID."
},
"law_num": {
"type": "string",
"description": "Published Japanese law number."
},
"category": {
"type": "string",
"description": "Japanese subject classification."
},
"law_title": {
"type": "string",
"description": "Japanese title at this revision."
},
"law_types": {
"type": "array",
"items": {
"type": "string",
"description": "e-Gov type code."
},
"description": "Law types, with compound types split."
},
"repeal_date": {
"type": "string",
"description": "Date of repeal or e-Gov processing date, as labeled."
},
"abbreviations": {
"type": "array",
"items": {
"type": "string",
"description": "A published Japanese abbreviation."
},
"description": "Published title abbreviations."
},
"repeal_status": {
"enum": [
"None",
"Repeal",
"Expire",
"Suspend",
"LossOfEffectiveness"
],
"type": "string",
"description": "Repeal or equivalent status at the selected revision."
},
"remain_in_force": {
"type": "boolean",
"description": "Still effective after repeal."
},
"repeal_date_kind": {
"enum": [
"repeal_date",
"processing_date"
],
"type": "string",
"description": "Meaning of the reported repeal date."
},
"promulgation_date": {
"type": "string",
"description": "Original law promulgation date."
}
},
"additionalProperties": false
},
"LawRevision": {
"type": "object",
"required": [
"law_revision_id",
"current_revision_status",
"updated",
"law_title"
],
"properties": {
"updated": {
"type": "string",
"description": "Source metadata timestamp (ISO 8601 with offset)."
},
"law_title": {
"type": "string",
"description": "Published title at this revision."
},
"law_revision_id": {
"type": "string",
"pattern": "^[A-Z0-9]{15}_[0-9]{8}_[A-Z0-9]{15}$",
"description": "Exact revision ID for reading this version."
},
"amendment_law_id": {
"type": "string",
"description": "Amending law ID."
},
"amendment_law_num": {
"type": "string",
"description": "Published amending law number."
},
"amendment_law_title": {
"type": "string",
"description": "Published amending law title."
},
"current_revision_status": {
"enum": [
"CurrentEnforced",
"PreviousEnforced",
"UnEnforced",
"Repeal"
],
"type": "string",
"description": "Enforcement status relative to today."
},
"amendment_promulgate_date": {
"type": "string",
"description": "Date the amending law was promulgated."
},
"amendment_enforcement_date": {
"type": "string",
"description": "Reported enforcement date. Provisional when enforcement_date_placeholder is true."
},
"enforcement_date_placeholder": {
"type": "boolean",
"description": "True when both dates carry e-Gov’s placeholder for an unfixed date. Omitted otherwise."
},
"amendment_enforcement_comment": {
"type": "string",
"description": "Source explanation of amendment timing."
},
"amendment_scheduled_enforcement_date": {
"type": "string",
"description": "e-Gov’s placeholder enforcement date (擬似的な施行期日), not necessarily the actual date. Set while the date is not yet fixed, such as 政令で定める日."
}
},
"additionalProperties": false
},
"CanonicalAddress": {
"type": "object",
"required": [
"article",
"scope"
],
"properties": {
"item": {
"anyOf": [
{
"type": "integer",
"maximum": 9007199254740991,
"description": "Positive item number.",
"exclusiveMinimum": 0
},
{
"type": "string",
"pattern": "^[1-9]\\d*(?:_[1-9]\\d*)+$",
"description": "Canonical item branch with underscore-separated numbers."
}
],
"description": "Canonical item number or branch."
},
"scope": {
"enum": [
"main",
"supplement"
],
"type": "string",
"description": "Main provisions or supplementary provisions."
},
"article": {
"type": "string",
"pattern": "^[1-9]\\d*(?:_[1-9]\\d*)*$",
"description": "Canonical article number, with underscore-separated branches."
},
"paragraph": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Paragraph number (項).",
"exclusiveMinimum": 0
},
"supplement": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Occurrence of 附則 in the selected revision outline.",
"exclusiveMinimum": 0
}
},
"description": "Parsed coordinates; supplementary occurrences are pinned where resolved.",
"additionalProperties": false
},
"SubmittedProvision": {
"anyOf": [
{
"type": "string",
"description": "Japanese display address in 条/項/号 notation."
},
{
"type": "object",
"required": [
"article"
],
"properties": {
"item": {
"anyOf": [
{
"type": "integer",
"maximum": 9007199254740991,
"description": "Positive item number.",
"exclusiveMinimum": 0
},
{
"type": "string",
"pattern": "^[1-9\\uFF11-\\uFF19][0-9\\uFF10-\\uFF19]*(?:_[1-9\\uFF11-\\uFF19][0-9\\uFF10-\\uFF19]*)*$",
"description": "Positive decimal item number or underscore-separated item branch."
}
],
"description": "Item number (号) such as 3 or \"3\", or branch such as \"3_2\". Omit the paragraph only for a sole first paragraph."
},
"article": {
"anyOf": [
{
"type": "integer",
"maximum": 9007199254740991,
"description": "Positive article number.",
"exclusiveMinimum": 0
},
{
"type": "string",
"pattern": "^[1-9\\uFF11-\\uFF19][0-9\\uFF10-\\uFF19]*(?:_[1-9\\uFF11-\\uFF19][0-9\\uFF10-\\uFF19]*)*$",
"description": "Article number with optional underscore-separated branches."
}
],
"description": "Article number or branch, such as 4_3_2."
},
"paragraph": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Paragraph number (項).",
"exclusiveMinimum": 0
},
"supplement": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Occurrence of 附則 in the selected revision outline.",
"exclusiveMinimum": 0
}
},
"description": "Structured Japanese provision coordinates.",
"additionalProperties": false
}
],
"description": "Japanese 条/項/号 address or provision coordinates."
}
},
"anyOf": [
{
"not": {
"required": [
"error"
]
},
"required": [
"found",
"attribution"
]
},
{
"required": [
"error"
]
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"law": {
"$ref": "#/$defs/LawIdentity",
"description": "Identity of the selected law."
},
"asof": {
"type": "string",
"description": "Requested as-of date."
},
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "JSON-RPC error code for this failure."
},
"data": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"examples": [
"invalid_provision_address",
"missing_law",
"conflicting_revision",
"asof_before_coverage",
"upstream_rejected_query"
],
"description": "Machine-readable failure mode. Declared by this tool: `invalid_provision_address`: A submitted address cannot be parsed as a provision. `missing_law`: Neither law nor law_revision_id was supplied. `conflicting_revision`: Both version selectors are present or the law and revision refer to different laws. `asof_before_coverage`: The requested date predates e-Gov coverage. `upstream_rejected_query`: e-Gov rejected the query. Other values are possible when a failure originates below the handler."
},
"recovery": {
"type": "object",
"required": [
"hint"
],
"properties": {
"hint": {
"type": "string"
}
},
"description": "Actionable next step for the caller.",
"additionalProperties": {}
},
"retryable": {
"type": "boolean",
"description": "Whether retrying may succeed."
}
},
"additionalProperties": {}
},
"message": {
"type": "string",
"description": "Human-readable description of what went wrong."
}
},
"description": "Present when the call failed. Absent on success.",
"additionalProperties": {}
},
"found": {
"type": "boolean",
"description": "Whether the law revision was resolved."
},
"notice": {
"type": "string",
"description": "How to continue a batch with deferred addresses."
},
"deferred": {
"type": "array",
"items": {
"$ref": "#/$defs/SubmittedProvision"
},
"description": "Unprocessed addresses in caller order."
},
"guidance": {
"type": "string",
"description": "How to recover from a law or revision lookup miss."
},
"revision": {
"$ref": "#/$defs/LawRevision",
"description": "Pinned text revision."
},
"candidates": {
"type": "array",
"items": {
"$ref": "#/$defs/LawIdentity",
"description": "One equally exact law match."
},
"description": "Equally exact law matches for an ambiguous selector."
},
"provisions": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"required": [
"submitted",
"canonical_address",
"status",
"selector",
"label",
"markdown",
"figures"
],
"properties": {
"label": {
"type": "string",
"description": "Official provision label."
},
"status": {
"type": "string",
"const": "found",
"description": "The provision has text in this revision."
},
"caption": {
"type": "string",
"description": "Published provision caption."
},
"figures": {
"type": "array",
"items": {
"type": "object",
"required": [
"src",
"url"
],
"properties": {
"src": {
"type": "string",
"description": "Figure source path in the e-Gov law XML."
},
"url": {
"type": "string",
"description": "Revision-specific e-Gov figure URL."
},
"updated": {
"type": "string",
"description": "Attachment update timestamp when supplied by e-Gov."
}
},
"description": "One attachment referenced by the law.",
"additionalProperties": false
},
"description": "Revision-specific figures in the provision."
},
"markdown": {
"type": "string",
"description": "Japanese provision text, rendered as Markdown."
},
"selector": {
"type": "string",
"description": "Canonical part selector in this revision."
},
"submitted": {
"$ref": "#/$defs/SubmittedProvision"
},
"canonical_address": {
"$ref": "#/$defs/CanonicalAddress"
}
},
"description": "Provision with Japanese text.",
"additionalProperties": false
},
{
"type": "object",
"required": [
"submitted",
"canonical_address",
"status",
"selector",
"deletion_label"
],
"properties": {
"status": {
"type": "string",
"const": "deleted",
"description": "The provision falls within an explicit deletion."
},
"selector": {
"type": "string",
"description": "Canonical selector for the deletion entry."
},
"submitted": {
"$ref": "#/$defs/SubmittedProvision"
},
"deletion_label": {
"type": "string",
"description": "Published deletion label or range."
},
"canonical_address": {
"$ref": "#/$defs/CanonicalAddress"
}
},
"description": "Provision deleted in this revision.",
"additionalProperties": false
},
{
"type": "object",
"required": [
"submitted",
"canonical_address",
"status",
"guidance"
],
"properties": {
"status": {
"type": "string",
"const": "not_found",
"description": "The provision is absent or ambiguous."
},
"guidance": {
"type": "string",
"description": "How to locate the provision or select another revision."
},
"submitted": {
"$ref": "#/$defs/SubmittedProvision"
},
"canonical_address": {
"$ref": "#/$defs/CanonicalAddress"
},
"candidate_selectors": {
"type": "array",
"items": {
"type": "string"
},
"description": "Canonical selectors when original supplements are ambiguous."
}
},
"description": "Address that could not be uniquely resolved.",
"additionalProperties": false
},
{
"type": "object",
"required": [
"submitted",
"canonical_address",
"status",
"selector",
"label",
"children"
],
"properties": {
"label": {
"type": "string",
"description": "Official provision label."
},
"status": {
"type": "string",
"const": "outline",
"description": "The provision is available through smaller reads."
},
"caption": {
"type": "string",
"description": "Published provision caption."
},
"children": {
"type": "array",
"items": {
"type": "object",
"required": [
"selector",
"label",
"address",
"character_count"
],
"properties": {
"label": {
"type": "string",
"description": "Published label or number."
},
"address": {
"type": "object",
"required": [
"article"
],
"properties": {
"item": {
"anyOf": [
{
"type": "integer",
"maximum": 9007199254740991,
"description": "Positive item number.",
"exclusiveMinimum": 0
},
{
"type": "string",
"pattern": "^[1-9\\uFF11-\\uFF19][0-9\\uFF10-\\uFF19]*(?:_[1-9\\uFF11-\\uFF19][0-9\\uFF10-\\uFF19]*)+$",
"description": "Item branch with underscore-separated numbers."
}
],
"description": "Item number (号) or branch such as 3_2. Omit the paragraph only for a sole first paragraph."
},
"article": {
"anyOf": [
{
"type": "integer",
"maximum": 9007199254740991,
"description": "Positive article number.",
"exclusiveMinimum": 0
},
{
"type": "string",
"pattern": "^[1-9\\uFF11-\\uFF19][0-9\\uFF10-\\uFF19]*(?:_[1-9\\uFF11-\\uFF19][0-9\\uFF10-\\uFF19]*)*$",
"description": "Article number with optional underscore-separated branches."
}
],
"description": "Article number or branch, such as 4_3_2."
},
"paragraph": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Paragraph number (項).",
"exclusiveMinimum": 0
},
"supplement": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Occurrence of 附則 in the selected revision outline.",
"exclusiveMinimum": 0
}
},
"description": "Coordinates to pass in provisions to read this child.",
"additionalProperties": false
},
"selector": {
"type": "string",
"description": "Canonical part selector for this child."
},
"character_count": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Rendered size in Unicode code points."
}
},
"description": "One direct child of a large provision.",
"additionalProperties": false
},
"description": "Directly addressable children in source order."
},
"selector": {
"type": "string",
"description": "Pass this part selector to jplaw_get_law to read the entire provision."
},
"submitted": {
"$ref": "#/$defs/SubmittedProvision"
},
"canonical_address": {
"$ref": "#/$defs/CanonicalAddress"
}
},
"description": "Outline for a long provision.",
"additionalProperties": false
}
],
"description": "One result for a submitted provision address."
},
"description": "One result for each processed address, in caller order."
},
"attribution": {
"type": "string",
"description": "Source attribution and transformation notice."
}
},
"additionalProperties": false
}{
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true
}jplaw_get_law — Browse Japanese Law Text
Browse a whole-law or selected-part outline, optionally limited to headings, or read complete text units. Pin law_revision_id and keep the same part and view controls when following next_offset. Check updated for corrections.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"law": {
"type": "string",
"description": "Exact e-Gov law ID, Japanese law number, title, or abbreviation. Required unless a revision ID is supplied."
},
"asof": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Calendar date on or after 2017-04-01. Mutually exclusive with law_revision_id."
},
"part": {
"type": "string",
"description": "Japanese part label (such as 本則, 制定文, 目次, or 別表第1), structure path, or canonical selector from this revision. Use 全部 for the whole law."
},
"view": {
"enum": [
"outline",
"text"
],
"type": "string",
"description": "Defaults to an outline without part and text with part. Choose outline with part to browse its descendants, or text without part to read the whole law."
},
"limit": {
"type": "integer",
"default": 25,
"maximum": 9007199254740991,
"description": "Maximum complete outline entries or text units per page.",
"exclusiveMinimum": 0
},
"offset": {
"type": "integer",
"default": 0,
"maximum": 9007199254740991,
"minimum": 0,
"description": "Number of outline entries or text units to skip."
},
"outline": {
"enum": [
"full",
"headings"
],
"type": "string",
"description": "Outline detail level. Defaults to full. Use headings to omit article and paragraph detail. Applies only to outline views."
},
"law_revision_id": {
"type": "string",
"pattern": "^[A-Z0-9]{15}_[0-9]{8}_[A-Z0-9]{15}$",
"description": "Exact pinned revision ID from a law read or revision list. Mutually exclusive with asof."
},
"include_amendment_suppl": {
"type": "boolean",
"default": false,
"description": "Include amending supplementary provisions in whole-law text. Outlines include them within the selected scope. Explicit supplement selections always include the selected supplement."
}
},
"additionalProperties": false
}{
"type": "object",
"$defs": {
"LawIdentity": {
"type": "object",
"required": [
"law_id",
"law_num",
"law_title",
"law_types"
],
"properties": {
"law_id": {
"type": "string",
"pattern": "^[A-Z0-9]{15}$",
"description": "Stable e-Gov law ID."
},
"law_num": {
"type": "string",
"description": "Published Japanese law number."
},
"category": {
"type": "string",
"description": "Japanese subject classification."
},
"law_title": {
"type": "string",
"description": "Japanese title at this revision."
},
"law_types": {
"type": "array",
"items": {
"type": "string",
"description": "e-Gov type code."
},
"description": "Law types, with compound types split."
},
"repeal_date": {
"type": "string",
"description": "Date of repeal or e-Gov processing date, as labeled."
},
"abbreviations": {
"type": "array",
"items": {
"type": "string",
"description": "A published Japanese abbreviation."
},
"description": "Published title abbreviations."
},
"repeal_status": {
"enum": [
"None",
"Repeal",
"Expire",
"Suspend",
"LossOfEffectiveness"
],
"type": "string",
"description": "Repeal or equivalent status at the selected revision."
},
"remain_in_force": {
"type": "boolean",
"description": "Still effective after repeal."
},
"repeal_date_kind": {
"enum": [
"repeal_date",
"processing_date"
],
"type": "string",
"description": "Meaning of the reported repeal date."
},
"promulgation_date": {
"type": "string",
"description": "Original law promulgation date."
}
},
"additionalProperties": false
},
"LawRevision": {
"type": "object",
"required": [
"law_revision_id",
"current_revision_status",
"updated",
"law_title"
],
"properties": {
"updated": {
"type": "string",
"description": "Source metadata timestamp (ISO 8601 with offset)."
},
"law_title": {
"type": "string",
"description": "Published title at this revision."
},
"law_revision_id": {
"type": "string",
"pattern": "^[A-Z0-9]{15}_[0-9]{8}_[A-Z0-9]{15}$",
"description": "Exact revision ID for reading this version."
},
"amendment_law_id": {
"type": "string",
"description": "Amending law ID."
},
"amendment_law_num": {
"type": "string",
"description": "Published amending law number."
},
"amendment_law_title": {
"type": "string",
"description": "Published amending law title."
},
"current_revision_status": {
"enum": [
"CurrentEnforced",
"PreviousEnforced",
"UnEnforced",
"Repeal"
],
"type": "string",
"description": "Enforcement status relative to today."
},
"amendment_promulgate_date": {
"type": "string",
"description": "Date the amending law was promulgated."
},
"amendment_enforcement_date": {
"type": "string",
"description": "Reported enforcement date. Provisional when enforcement_date_placeholder is true."
},
"enforcement_date_placeholder": {
"type": "boolean",
"description": "True when both dates carry e-Gov’s placeholder for an unfixed date. Omitted otherwise."
},
"amendment_enforcement_comment": {
"type": "string",
"description": "Source explanation of amendment timing."
},
"amendment_scheduled_enforcement_date": {
"type": "string",
"description": "e-Gov’s placeholder enforcement date (擬似的な施行期日), not necessarily the actual date. Set while the date is not yet fixed, such as 政令で定める日."
}
},
"additionalProperties": false
}
},
"anyOf": [
{
"not": {
"required": [
"error"
]
},
"required": [
"found",
"truncated",
"attribution"
]
},
{
"required": [
"error"
]
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"law": {
"$ref": "#/$defs/LawIdentity",
"description": "Identity of the selected law."
},
"view": {
"enum": [
"outline",
"text"
],
"type": "string",
"description": "Type of paged result."
},
"count": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Entries on this page."
},
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "JSON-RPC error code for this failure."
},
"data": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"examples": [
"invalid_part",
"missing_law",
"conflicting_revision",
"asof_before_coverage",
"upstream_rejected_query"
],
"description": "Machine-readable failure mode. Declared by this tool: `invalid_part`: The part is neither recognized Japanese part syntax nor a canonical selector. `missing_law`: Neither law nor law_revision_id was supplied. `conflicting_revision`: Both version selectors are present or the law and revision refer to different laws. `asof_before_coverage`: The requested date predates e-Gov coverage. `upstream_rejected_query`: e-Gov rejected the query. Other values are possible when a failure originates below the handler."
},
"recovery": {
"type": "object",
"required": [
"hint"
],
"properties": {
"hint": {
"type": "string"
}
},
"description": "Actionable next step for the caller.",
"additionalProperties": {}
},
"retryable": {
"type": "boolean",
"description": "Whether retrying may succeed."
}
},
"additionalProperties": {}
},
"message": {
"type": "string",
"description": "Human-readable description of what went wrong."
}
},
"description": "Present when the call failed. Absent on success.",
"additionalProperties": {}
},
"found": {
"type": "boolean",
"description": "Whether the law revision and requested part were resolved."
},
"units": {
"type": "array",
"items": {
"type": "object",
"required": [
"selector",
"kind",
"label",
"markdown",
"figures"
],
"properties": {
"kind": {
"type": "string",
"description": "Japanese law XML element kind."
},
"label": {
"type": "string",
"description": "Published label when available."
},
"figures": {
"type": "array",
"items": {
"type": "object",
"required": [
"src",
"url"
],
"properties": {
"src": {
"type": "string",
"description": "Figure source path in the e-Gov law XML."
},
"url": {
"type": "string",
"description": "Revision-specific e-Gov figure URL."
},
"updated": {
"type": "string",
"description": "Attachment update timestamp when supplied by e-Gov."
}
},
"description": "One attachment referenced by the law.",
"additionalProperties": false
},
"description": "Figures referenced from this unit."
},
"markdown": {
"type": "string",
"description": "Japanese text rendered as Markdown."
},
"selector": {
"type": "string",
"description": "Canonical XML selector for this text unit."
}
},
"description": "One complete rendered text unit.",
"additionalProperties": false
},
"description": "Complete Japanese text units in document order."
},
"outline": {
"type": "array",
"items": {
"type": "object",
"required": [
"selector",
"kind",
"label",
"ancestors"
],
"properties": {
"kind": {
"type": "string",
"description": "Japanese law XML element kind."
},
"label": {
"type": "string",
"description": "Published label when available."
},
"caption": {
"type": "string",
"description": "Published caption."
},
"selector": {
"type": "string",
"description": "Canonical XML selector in this revision."
},
"ancestors": {
"type": "array",
"items": {
"type": "string"
},
"description": "Ancestor selectors, outermost first."
},
"article_range": {
"type": "string",
"description": "Published article range from the matching table of contents."
},
"deletion_label": {
"type": "string",
"description": "Official deletion label."
},
"amending_law_num": {
"type": "string",
"description": "Amending law number on this supplementary provision."
}
},
"description": "One indexed law outline entry.",
"additionalProperties": false
},
"description": "Outline entries in document order."
},
"guidance": {
"type": "string",
"description": "How to recover from a miss or an offset beyond the end."
},
"revision": {
"$ref": "#/$defs/LawRevision",
"description": "Pinned text revision and its observed update timestamp."
},
"downloads": {
"type": "array",
"items": {
"type": "object",
"required": [
"format",
"url"
],
"properties": {
"url": {
"type": "string",
"description": "Revision-specific e-Gov file download URL."
},
"format": {
"enum": [
"xml",
"json",
"html",
"rtf",
"docx"
],
"type": "string",
"description": "Download file format."
}
},
"description": "Download for one file format.",
"additionalProperties": false
},
"description": "Downloads for the complete pinned law."
},
"selection": {
"type": "object",
"required": [
"include_amendment_suppl",
"offset",
"limit"
],
"properties": {
"asof": {
"type": "string",
"description": "Requested as-of date."
},
"part": {
"type": "string",
"description": "Submitted part selector."
},
"limit": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Requested maximum entries per page.",
"exclusiveMinimum": 0
},
"offset": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Requested number of entries to skip."
},
"outline": {
"enum": [
"full",
"headings"
],
"type": "string",
"description": "Requested outline detail level."
},
"selector": {
"type": "string",
"description": "Canonical XML selector for the resolved part."
},
"include_amendment_suppl": {
"type": "boolean",
"description": "Whether the view includes amendment supplements."
}
},
"description": "Selection and paging inputs used for the view.",
"additionalProperties": false
},
"truncated": {
"type": "boolean",
"description": "Whether further entries are available after this page."
},
"candidates": {
"type": "array",
"items": {
"$ref": "#/$defs/LawIdentity",
"description": "One equally exact law match."
},
"description": "Equally exact law matches for an ambiguous selector."
},
"attachments": {
"type": "array",
"items": {
"type": "object",
"required": [
"src",
"url"
],
"properties": {
"src": {
"type": "string",
"description": "Figure source path in the e-Gov law XML."
},
"url": {
"type": "string",
"description": "Revision-specific e-Gov figure URL."
},
"updated": {
"type": "string",
"description": "Attachment update timestamp when supplied by e-Gov."
}
},
"description": "One attachment referenced by the law.",
"additionalProperties": false
},
"description": "Attachment descriptors for the pinned revision."
},
"attribution": {
"type": "string",
"description": "Source attribution and transformation notice."
},
"next_offset": {
"anyOf": [
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
{
"type": "null"
}
],
"description": "First unread entry, or null at the end."
},
"total_count": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Exact total entries for this view."
},
"candidate_selectors": {
"type": "array",
"items": {
"type": "string"
},
"description": "Canonical part selectors for an ambiguous part label."
}
},
"additionalProperties": false
}{
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true
}jplaw_list_revisions — List Japanese Law Revisions
Trace past, current, and not-yet-enforced versions of one national law, in e-Gov’s newest-first order. Use law_revision_id with jplaw_get_law or jplaw_get_provision to read that exact version. Use amendment_law_id with jplaw_search_laws to find other laws changed by the same amendment.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"law"
],
"properties": {
"law": {
"type": "string",
"minLength": 1,
"description": "Exact law ID, number, Japanese title, or abbreviation."
},
"limit": {
"type": "integer",
"default": 25,
"maximum": 9007199254740991,
"description": "Maximum number of revisions to return.",
"exclusiveMinimum": 0
},
"offset": {
"type": "integer",
"default": 0,
"maximum": 9007199254740991,
"minimum": 0,
"description": "Zero-based offset or next_offset from the previous call."
},
"statuses": {
"type": "array",
"items": {
"enum": [
"CurrentEnforced",
"PreviousEnforced",
"UnEnforced",
"Repeal"
],
"type": "string"
},
"description": "Accept any listed revision status. Status is relative to the present."
},
"enforcement_to": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Latest reported amendment enforcement date, inclusive. A date not yet fixed matches at e-Gov’s placeholder and is marked enforcement_date_placeholder."
},
"promulgation_to": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Latest amendment promulgation date, inclusive."
},
"enforcement_from": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Earliest reported amendment enforcement date, inclusive. A date not yet fixed matches at e-Gov’s placeholder and is marked enforcement_date_placeholder."
},
"promulgation_from": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Earliest amendment promulgation date, inclusive."
}
},
"additionalProperties": false
}{
"type": "object",
"$defs": {
"LawIdentity": {
"type": "object",
"required": [
"law_id",
"law_num",
"law_title",
"law_types"
],
"properties": {
"law_id": {
"type": "string",
"pattern": "^[A-Z0-9]{15}$",
"description": "Stable e-Gov law ID."
},
"law_num": {
"type": "string",
"description": "Published Japanese law number."
},
"category": {
"type": "string",
"description": "Japanese subject classification."
},
"law_title": {
"type": "string",
"description": "Japanese title at this revision."
},
"law_types": {
"type": "array",
"items": {
"type": "string",
"description": "e-Gov type code."
},
"description": "Law types, with compound types split."
},
"repeal_date": {
"type": "string",
"description": "Date of repeal or e-Gov processing date, as labeled."
},
"abbreviations": {
"type": "array",
"items": {
"type": "string",
"description": "A published Japanese abbreviation."
},
"description": "Published title abbreviations."
},
"repeal_status": {
"enum": [
"None",
"Repeal",
"Expire",
"Suspend",
"LossOfEffectiveness"
],
"type": "string",
"description": "Repeal or equivalent status at the selected revision."
},
"remain_in_force": {
"type": "boolean",
"description": "Still effective after repeal."
},
"repeal_date_kind": {
"enum": [
"repeal_date",
"processing_date"
],
"type": "string",
"description": "Meaning of the reported repeal date."
},
"promulgation_date": {
"type": "string",
"description": "Original law promulgation date."
}
},
"additionalProperties": false
},
"LawRevision": {
"type": "object",
"required": [
"law_revision_id",
"current_revision_status",
"updated",
"law_title"
],
"properties": {
"updated": {
"type": "string",
"description": "Source metadata timestamp (ISO 8601 with offset)."
},
"law_title": {
"type": "string",
"description": "Published title at this revision."
},
"law_revision_id": {
"type": "string",
"pattern": "^[A-Z0-9]{15}_[0-9]{8}_[A-Z0-9]{15}$",
"description": "Exact revision ID for reading this version."
},
"amendment_law_id": {
"type": "string",
"description": "Amending law ID."
},
"amendment_law_num": {
"type": "string",
"description": "Published amending law number."
},
"amendment_law_title": {
"type": "string",
"description": "Published amending law title."
},
"current_revision_status": {
"enum": [
"CurrentEnforced",
"PreviousEnforced",
"UnEnforced",
"Repeal"
],
"type": "string",
"description": "Enforcement status relative to today."
},
"amendment_promulgate_date": {
"type": "string",
"description": "Date the amending law was promulgated."
},
"amendment_enforcement_date": {
"type": "string",
"description": "Reported enforcement date. Provisional when enforcement_date_placeholder is true."
},
"enforcement_date_placeholder": {
"type": "boolean",
"description": "True when both dates carry e-Gov’s placeholder for an unfixed date. Omitted otherwise."
},
"amendment_enforcement_comment": {
"type": "string",
"description": "Source explanation of amendment timing."
},
"amendment_scheduled_enforcement_date": {
"type": "string",
"description": "e-Gov’s placeholder enforcement date (擬似的な施行期日), not necessarily the actual date. Set while the date is not yet fixed, such as 政令で定める日."
}
},
"additionalProperties": false
}
},
"anyOf": [
{
"not": {
"required": [
"error"
]
},
"required": [
"found",
"coverage_floor",
"attribution",
"applied_filters"
]
},
{
"required": [
"error"
]
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"law": {
"$ref": "#/$defs/LawIdentity",
"description": "Identity of the resolved law."
},
"page": {
"type": "object",
"required": [
"offset",
"limit",
"count",
"total_count",
"next_offset"
],
"properties": {
"count": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Number of results returned in this page."
},
"limit": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Effective maximum number of results in this page.",
"exclusiveMinimum": 0
},
"offset": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Zero-based offset into the filtered collection."
},
"next_offset": {
"anyOf": [
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
{
"type": "null"
}
],
"description": "Offset of the first unread result, or null at the end."
},
"total_count": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Total results before pagination."
}
},
"description": "Paging information for the filtered history.",
"additionalProperties": false
},
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "JSON-RPC error code for this failure."
},
"data": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"examples": [
"invalid_date_range",
"upstream_rejected_query"
],
"description": "Machine-readable failure mode. Declared by this tool: `invalid_date_range`: A date window has a from date after its to date. `upstream_rejected_query`: e-Gov rejected the revision or catalog query. Other values are possible when a failure originates below the handler."
},
"recovery": {
"type": "object",
"required": [
"hint"
],
"properties": {
"hint": {
"type": "string"
}
},
"description": "Actionable next step for the caller.",
"additionalProperties": {}
},
"retryable": {
"type": "boolean",
"description": "Whether retrying may succeed."
}
},
"additionalProperties": {}
},
"message": {
"type": "string",
"description": "Human-readable description of what went wrong."
}
},
"description": "Present when the call failed. Absent on success.",
"additionalProperties": {}
},
"found": {
"type": "boolean",
"description": "Whether exactly one law and its revision history were found."
},
"notice": {
"type": "string",
"description": "How to recover from an empty or overshot page."
},
"guidance": {
"type": "string",
"description": "How to recover from an absent or ambiguous law."
},
"revisions": {
"type": "array",
"items": {
"$ref": "#/$defs/LawRevision",
"description": "One enforced or not-yet-enforced revision."
},
"description": "Page of revisions, provided on a successful law lookup."
},
"truncated": {
"type": "boolean",
"description": "Whether more matching revisions can be read using page.next_offset."
},
"candidates": {
"type": "array",
"items": {
"$ref": "#/$defs/LawIdentity",
"description": "One matching law identity."
},
"description": "Law identities that matched an ambiguous selector."
},
"attribution": {
"type": "string",
"description": "Source and reformatting credit."
},
"coverage_floor": {
"type": "string",
"description": "Earliest supported asof date. The baseline revision can have an earlier enforcement date. For laws promulgated after the floor, history begins with the first available revision."
},
"applied_filters": {
"type": "object",
"properties": {
"statuses": {
"type": "array",
"items": {
"enum": [
"CurrentEnforced",
"PreviousEnforced",
"UnEnforced",
"Repeal"
],
"type": "string"
},
"description": "Accept any listed revision status. Status is relative to the present."
},
"enforcement_to": {
"type": "string",
"description": "Applied ISO date (YYYY-MM-DD)."
},
"promulgation_to": {
"type": "string",
"description": "Applied ISO date (YYYY-MM-DD)."
},
"enforcement_from": {
"type": "string",
"description": "Applied ISO date (YYYY-MM-DD)."
},
"promulgation_from": {
"type": "string",
"description": "Applied ISO date (YYYY-MM-DD)."
}
},
"description": "Effective date and status filters.",
"additionalProperties": false
}
},
"additionalProperties": false
}{
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true
}jplaw_find_subordinate_laws — Find Possible Implementing Instruments
Find candidate cabinet orders, ministerial ordinances and rules implementing a Japanese Act. Results identify matching titles and enactment statements; e-Gov has no official parent link. For citations anywhere in a law, use jplaw_search_text.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"law"
],
"properties": {
"law": {
"type": "string",
"minLength": 1,
"description": "Exact Japanese Act title, abbreviation, law number, or law ID."
},
"limit": {
"type": "integer",
"default": 25,
"maximum": 9007199254740991,
"description": "Number of unique instruments to return.",
"exclusiveMinimum": 0
},
"offset": {
"type": "integer",
"default": 0,
"maximum": 9007199254740991,
"minimum": 0,
"description": "Zero-based offset in the deduplicated law list. Pass next_offset to continue."
},
"status": {
"enum": [
"in_force",
"all"
],
"type": "string",
"default": "in_force",
"description": "Include only active instruments, or also inactive instruments."
}
},
"additionalProperties": false
}{
"type": "object",
"$defs": {
"LawIdentity": {
"type": "object",
"required": [
"law_id",
"law_num",
"law_title",
"law_types"
],
"properties": {
"law_id": {
"type": "string",
"pattern": "^[A-Z0-9]{15}$",
"description": "Stable e-Gov law ID."
},
"law_num": {
"type": "string",
"description": "Published Japanese law number."
},
"category": {
"type": "string",
"description": "Japanese subject classification."
},
"law_title": {
"type": "string",
"description": "Japanese title at this revision."
},
"law_types": {
"type": "array",
"items": {
"type": "string",
"description": "e-Gov type code."
},
"description": "Law types, with compound types split."
},
"repeal_date": {
"type": "string",
"description": "Date of repeal or e-Gov processing date, as labeled."
},
"abbreviations": {
"type": "array",
"items": {
"type": "string",
"description": "A published Japanese abbreviation."
},
"description": "Published title abbreviations."
},
"repeal_status": {
"enum": [
"None",
"Repeal",
"Expire",
"Suspend",
"LossOfEffectiveness"
],
"type": "string",
"description": "Repeal or equivalent status at the selected revision."
},
"remain_in_force": {
"type": "boolean",
"description": "Still effective after repeal."
},
"repeal_date_kind": {
"enum": [
"repeal_date",
"processing_date"
],
"type": "string",
"description": "Meaning of the reported repeal date."
},
"promulgation_date": {
"type": "string",
"description": "Original law promulgation date."
}
},
"additionalProperties": false
},
"LawRevision": {
"type": "object",
"required": [
"law_revision_id",
"current_revision_status",
"updated",
"law_title"
],
"properties": {
"updated": {
"type": "string",
"description": "Source metadata timestamp (ISO 8601 with offset)."
},
"law_title": {
"type": "string",
"description": "Published title at this revision."
},
"law_revision_id": {
"type": "string",
"pattern": "^[A-Z0-9]{15}_[0-9]{8}_[A-Z0-9]{15}$",
"description": "Exact revision ID for reading this version."
},
"amendment_law_id": {
"type": "string",
"description": "Amending law ID."
},
"amendment_law_num": {
"type": "string",
"description": "Published amending law number."
},
"amendment_law_title": {
"type": "string",
"description": "Published amending law title."
},
"current_revision_status": {
"enum": [
"CurrentEnforced",
"PreviousEnforced",
"UnEnforced",
"Repeal"
],
"type": "string",
"description": "Enforcement status relative to today."
},
"amendment_promulgate_date": {
"type": "string",
"description": "Date the amending law was promulgated."
},
"amendment_enforcement_date": {
"type": "string",
"description": "Reported enforcement date. Provisional when enforcement_date_placeholder is true."
},
"enforcement_date_placeholder": {
"type": "boolean",
"description": "True when both dates carry e-Gov’s placeholder for an unfixed date. Omitted otherwise."
},
"amendment_enforcement_comment": {
"type": "string",
"description": "Source explanation of amendment timing."
},
"amendment_scheduled_enforcement_date": {
"type": "string",
"description": "e-Gov’s placeholder enforcement date (擬似的な施行期日), not necessarily the actual date. Set while the date is not yet fixed, such as 政令で定める日."
}
},
"additionalProperties": false
}
},
"anyOf": [
{
"not": {
"required": [
"error"
]
},
"required": [
"found",
"instruments",
"query",
"count",
"truncated",
"next_offset",
"attribution",
"notice"
]
},
{
"required": [
"error"
]
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"count": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Number of instruments returned."
},
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "JSON-RPC error code for this failure."
},
"data": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"examples": [
"not_an_act",
"upstream_rejected_query"
],
"description": "Machine-readable failure mode. Declared by this tool: `not_an_act`: The supplied parent resolves to an instrument without Act force. `upstream_rejected_query`: e-Gov rejects a catalog or enactment-statement query. Other values are possible when a failure originates below the handler."
},
"recovery": {
"type": "object",
"required": [
"hint"
],
"properties": {
"hint": {
"type": "string"
}
},
"description": "Actionable next step for the caller.",
"additionalProperties": {}
},
"retryable": {
"type": "boolean",
"description": "Whether retrying may succeed."
}
},
"additionalProperties": {}
},
"message": {
"type": "string",
"description": "Human-readable description of what went wrong."
}
},
"description": "Present when the call failed. Absent on success.",
"additionalProperties": {}
},
"found": {
"type": "boolean",
"description": "Whether the parent Act was resolved."
},
"query": {
"type": "object",
"required": [
"law",
"status",
"offset",
"limit"
],
"properties": {
"law": {
"type": "string",
"minLength": 1,
"description": "Exact Japanese Act title, abbreviation, law number, or law ID."
},
"limit": {
"type": "integer",
"default": 25,
"maximum": 9007199254740991,
"description": "Number of unique instruments to return.",
"exclusiveMinimum": 0
},
"offset": {
"type": "integer",
"default": 0,
"maximum": 9007199254740991,
"minimum": 0,
"description": "Zero-based offset in the deduplicated law list. Pass next_offset to continue."
},
"status": {
"enum": [
"in_force",
"all"
],
"type": "string",
"default": "in_force",
"description": "Include only active instruments, or also inactive instruments."
}
},
"description": "Applied selector, status and pagination.",
"additionalProperties": false
},
"notice": {
"type": "string",
"description": "How to interpret the evidence."
},
"parent": {
"$ref": "#/$defs/LawIdentity",
"description": "Resolved parent Act."
},
"guidance": {
"type": "string",
"description": "How to resolve an ambiguous or missing parent."
},
"truncated": {
"type": "boolean",
"description": "Whether additional instruments remain after this page."
},
"candidates": {
"type": "array",
"items": {
"$ref": "#/$defs/LawIdentity",
"description": "Candidate parent law."
},
"description": "Exact parent matches when the selector is ambiguous."
},
"attribution": {
"type": "string",
"description": "Source credit and processing statement."
},
"instruments": {
"type": "array",
"items": {
"type": "object",
"required": [
"law",
"revision",
"signals",
"matched_titles",
"statements"
],
"properties": {
"law": {
"$ref": "#/$defs/LawIdentity",
"description": "The potentially subordinate instrument."
},
"signals": {
"type": "array",
"items": {
"enum": [
"title_extension",
"enactment_statement"
],
"type": "string",
"description": "Evidence type."
},
"description": "Signals supporting a possible relationship."
},
"revision": {
"$ref": "#/$defs/LawRevision",
"description": "Its listed revision."
},
"statements": {
"type": "array",
"items": {
"type": "object",
"required": [
"law_revision_id",
"preview"
],
"properties": {
"preview": {
"type": "object",
"required": [
"section",
"excerpt",
"highlights",
"upstream_preview_length",
"excerpted"
],
"properties": {
"excerpt": {
"type": "string",
"description": "Japanese search preview with highlight markup removed."
},
"section": {
"type": "string",
"description": "Section label reported by e-Gov."
},
"excerpted": {
"type": "boolean",
"description": "Whether this server shortened the upstream preview."
},
"highlights": {
"type": "array",
"items": {
"type": "object",
"required": [
"start",
"end"
],
"properties": {
"end": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Exclusive Unicode code-point offset in the excerpt."
},
"start": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Inclusive Unicode code-point offset in the excerpt."
}
},
"description": "One highlighted range.",
"additionalProperties": false
},
"description": "Highlighted ranges within the excerpt."
},
"upstream_preview_length": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Code points in the upstream preview before local clipping, excluding tags."
}
},
"description": "Search preview supplied by e-Gov, which may itself omit surrounding source text.",
"additionalProperties": false
},
"law_revision_id": {
"type": "string",
"description": "Revision in which this statement matched."
}
},
"description": "An enactment statement citing the parent law number.",
"additionalProperties": false
},
"description": "Enactment statements citing the parent, with search-preview provenance."
},
"matched_titles": {
"type": "array",
"items": {
"type": "string",
"description": "Matching published title or abbreviation."
},
"description": "Titles extending a parent name."
}
},
"description": "A possible implementing instrument.",
"additionalProperties": false
},
"description": "Matching instruments in law-ID order."
},
"next_offset": {
"anyOf": [
{
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
{
"type": "null"
}
],
"description": "Offset of the next instrument, or null."
},
"total_count": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Total unique instruments after filtering."
}
},
"additionalProperties": false
}{
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true
}jplaw_lookup_citation — Look Up Japanese Law Citations
Resolve exact Japanese law titles, abbreviations, law IDs, and published numbers, optionally followed by a 条/項/号 address. Process the first 25 citations and return the rest for continuation. Accept Japanese eras or Gregorian law-number years and Arabic or kanji numerals. Call jplaw_get_provision to confirm the address in a specific revision.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"citations"
],
"properties": {
"citations": {
"type": "array",
"items": {
"type": "string"
},
"minItems": 1,
"description": "Citations in caller order, for example 平成15年法律第57号 or 個人情報保護法第二十七条第一項."
}
},
"additionalProperties": false
}{
"type": "object",
"$defs": {
"LawIdentity": {
"type": "object",
"required": [
"law_id",
"law_num",
"law_title",
"law_types"
],
"properties": {
"law_id": {
"type": "string",
"pattern": "^[A-Z0-9]{15}$",
"description": "Stable e-Gov law ID."
},
"law_num": {
"type": "string",
"description": "Published Japanese law number."
},
"category": {
"type": "string",
"description": "Japanese subject classification."
},
"law_title": {
"type": "string",
"description": "Japanese title at this revision."
},
"law_types": {
"type": "array",
"items": {
"type": "string",
"description": "e-Gov type code."
},
"description": "Law types, with compound types split."
},
"repeal_date": {
"type": "string",
"description": "Date of repeal or e-Gov processing date, as labeled."
},
"abbreviations": {
"type": "array",
"items": {
"type": "string",
"description": "A published Japanese abbreviation."
},
"description": "Published title abbreviations."
},
"repeal_status": {
"enum": [
"None",
"Repeal",
"Expire",
"Suspend",
"LossOfEffectiveness"
],
"type": "string",
"description": "Repeal or equivalent status at the selected revision."
},
"remain_in_force": {
"type": "boolean",
"description": "Still effective after repeal."
},
"repeal_date_kind": {
"enum": [
"repeal_date",
"processing_date"
],
"type": "string",
"description": "Meaning of the reported repeal date."
},
"promulgation_date": {
"type": "string",
"description": "Original law promulgation date."
}
},
"additionalProperties": false
}
},
"anyOf": [
{
"not": {
"required": [
"error"
]
},
"required": [
"results",
"attribution"
]
},
{
"required": [
"error"
]
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "JSON-RPC error code for this failure."
},
"data": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"examples": [
"upstream_rejected_query"
],
"description": "Machine-readable failure mode. Declared by this tool: `upstream_rejected_query`: e-Gov rejected a catalog or identifier query. Other values are possible when a failure originates below the handler."
},
"recovery": {
"type": "object",
"required": [
"hint"
],
"properties": {
"hint": {
"type": "string"
}
},
"description": "Actionable next step for the caller.",
"additionalProperties": {}
},
"retryable": {
"type": "boolean",
"description": "Whether retrying may succeed."
}
},
"additionalProperties": {}
},
"message": {
"type": "string",
"description": "Human-readable description of what went wrong."
}
},
"description": "Present when the call failed. Absent on success.",
"additionalProperties": {}
},
"notice": {
"type": "string",
"description": "How to continue a batch with deferred citations."
},
"results": {
"type": "array",
"items": {
"type": "object",
"required": [
"citation",
"found"
],
"properties": {
"law": {
"$ref": "#/$defs/LawIdentity",
"description": "Identity of the resolved law."
},
"found": {
"type": "boolean",
"description": "Whether the citation resolved to a single law."
},
"address": {
"type": "object",
"required": [
"article",
"scope"
],
"properties": {
"item": {
"anyOf": [
{
"type": "integer",
"maximum": 9007199254740991,
"description": "Positive item number.",
"exclusiveMinimum": 0
},
{
"type": "string",
"pattern": "^[1-9]\\d*(?:_[1-9]\\d*)+$",
"description": "Canonical item branch with underscore-separated numbers."
}
],
"description": "Canonical item number or branch."
},
"scope": {
"enum": [
"main",
"supplement"
],
"type": "string",
"description": "Main provisions or supplementary provisions."
},
"article": {
"type": "string",
"pattern": "^[1-9]\\d*(?:_[1-9]\\d*)*$",
"description": "Canonical article number, with underscore-separated branches."
},
"paragraph": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Paragraph number (項).",
"exclusiveMinimum": 0
},
"supplement": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Occurrence of 附則 in the selected revision outline.",
"exclusiveMinimum": 0
}
},
"description": "Canonical coordinates parsed from the citation.",
"additionalProperties": false
},
"citation": {
"type": "string",
"description": "Citation exactly as submitted."
},
"guidance": {
"type": "string",
"description": "How to recover or verify a parsed address."
},
"ambiguous": {
"type": "boolean",
"const": true,
"description": "Whether multiple laws matched exactly."
},
"provision": {
"type": "string",
"description": "Japanese address ready to pass as an item in provisions in jplaw_get_provision."
},
"candidates": {
"type": "array",
"items": {
"$ref": "#/$defs/LawIdentity",
"description": "One matching law identity."
},
"description": "Every law that matched an ambiguous citation."
},
"matched_form": {
"enum": [
"law_id",
"law_num",
"law_title",
"abbreviation"
],
"type": "string",
"description": "Exact form that resolved the citation."
}
},
"description": "The result for one submitted citation.",
"additionalProperties": false
},
"description": "One result per processed citation, in caller order."
},
"deferred": {
"type": "array",
"items": {
"type": "string"
},
"description": "Unprocessed citations in caller order."
},
"attribution": {
"type": "string",
"description": "Source and reformatting credit."
}
},
"additionalProperties": false
}{
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true
}jplaw_list_reference — List Japanese Legislation Reference
Look up e-Gov law types, category codes, Japanese law numbers, revision IDs, provision addresses, full-text query syntax, coverage, and upstream errors. Omit topic to see the available topics.
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"topic": {
"enum": [
"law_types",
"categories",
"law_numbers",
"identifiers",
"provision_addresses",
"keyword_syntax",
"coverage",
"upstream_errors"
],
"type": "string",
"description": "Reference topic to expand."
}
},
"additionalProperties": false
}{
"type": "object",
"anyOf": [
{
"not": {
"required": [
"error"
]
},
"required": [
"entries",
"specification_url"
]
},
{
"required": [
"error"
]
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "JSON-RPC error code for this failure."
},
"data": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"description": "Machine-readable failure mode."
},
"recovery": {
"type": "object",
"required": [
"hint"
],
"properties": {
"hint": {
"type": "string"
}
},
"description": "Actionable next step for the caller.",
"additionalProperties": {}
},
"retryable": {
"type": "boolean",
"description": "Whether retrying may succeed."
}
},
"additionalProperties": {}
},
"message": {
"type": "string",
"description": "Human-readable description of what went wrong."
}
},
"description": "Present when the call failed. Absent on success.",
"additionalProperties": {}
},
"topic": {
"enum": [
"law_types",
"categories",
"law_numbers",
"identifiers",
"provision_addresses",
"keyword_syntax",
"coverage",
"upstream_errors"
],
"type": "string",
"description": "Selected topic."
},
"entries": {
"type": "array",
"items": {
"type": "object",
"required": [
"code",
"label"
],
"properties": {
"code": {
"type": "string",
"description": "Reference code, form or term."
},
"label": {
"type": "string",
"description": "Japanese label or description of what the entry means."
},
"detail": {
"type": "string",
"description": "Usage, scope or recovery guidance."
}
},
"description": "An entry with its code and usage details.",
"additionalProperties": false
},
"description": "Reference entries for the selected topic, or the topic list."
},
"specification_url": {
"type": "string",
"description": "HTTPS URL of the official e-Gov Law API specification."
}
},
"additionalProperties": false
}{
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true
}Prompts
0 advertised
Resources
1 advertised
japan-legislation-guide
Use jplaw_* to verify a Japanese legal citation, turn a statutory search preview into a quotable provision, trace a revision or amendment supplement, or check evidence that an order implements an Act.
skill://japan-legislation-guide/SKILL.mdio.modelcontextprotocol/skills
skill://{+path}90-day uptime
A lightweight connection check about every six hours, sampled on hosts with many listings. It shows the server answered, not that its tools work.
- 2026-12-02: 4 of 4 checks answered
- 2026-12-03: 4 of 4 checks answered
- 2026-12-04: 2 of 2 checks answered
30-day availability
Aggregated from read-only remote checks; this is not a tool-execution or security guarantee.
- Successful checks
- 1 of 1 (100%)
- Average latency
- 837 ms
- 95th percentile latency
- 837 ms
Maintenance history
Public check and source-refresh events. Editorial and ownership records remain private.
- · probe · passed · 837 ms · metadata changed · 8 tool(s), 1 resource(s), 1 resource template(s), 0 prompt(s)
Connect from your client
Each snippet registers the same endpoint; pick the client you use.
Claude Code
claude mcp add --transport http japan-legislation-mcp-server https://japan-legislation.caseyjhand.com/mcpCodex
codex mcp add japan-legislation-mcp-server --url https://japan-legislation.caseyjhand.com/mcpCursor
{
"mcpServers": {
"japan-legislation-mcp-server": {
"url": "https://japan-legislation.caseyjhand.com/mcp"
}
}
}Cline
{
"mcpServers": {
"japan-legislation-mcp-server": {
"type": "streamableHttp",
"url": "https://japan-legislation.caseyjhand.com/mcp",
"disabled": false
}
}
}VS Code
{
"servers": {
"japan-legislation-mcp-server": {
"type": "http",
"url": "https://japan-legislation.caseyjhand.com/mcp"
}
}
}Gemini CLI
gemini mcp add --transport http japan-legislation-mcp-server https://japan-legislation.caseyjhand.com/mcpClaude Desktop
https://japan-legislation.caseyjhand.com/mcpWindsurf
{
"mcpServers": {
"japan-legislation-mcp-server": {
"serverUrl": "https://japan-legislation.caseyjhand.com/mcp"
}
}
}Let your agent find its tools
Find servers like japan-legislation-mcp-server from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.