get_law_content
Retrieve Japanese legal statutes from the e-Gov API. Get full law content or summaries for large documents, with JSON or XML formatting options.
Instructions
Get law content (optimized per API spec with size limits)
Args:
law_id: Law ID
law_num: Law number
response_format: "json" or "xml"
elm: Element to retrieve (currently disabled due to API 400 errors)
ctx: FastMCP context for logging
Returns:
Dict with law content. For large laws (>800KB), returns summary with recommendation to use find_law_article for specific articles.
Note:
- elm parameter is currently disabled due to e-Gov API 400 errors
- Large laws like Company Law (会社法) will return a summary instead of full text
- Use find_law_article tool for specific article searches in large laws
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| law_id | No | ||
| law_num | No | ||
| response_format | No | json | |
| elm | No |