Skip to main content
Glama

japan-legislation-mcp-server

Browse Japanese Law Text

jplaw_get_law
Read-onlyIdempotent

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.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "jplaw_get_law"
  }
}

Input Schema

NameRequiredDescriptionDefault
lawNoExact e-Gov law ID, Japanese law number, title, or abbreviation. Required unless a revision ID is supplied.
asofNoCalendar date on or after 2017-04-01. Mutually exclusive with law_revision_id.
partNoJapanese part label (such as 本則, 制定文, 目次, or 別表第1), structure path, or canonical selector from this revision. Use 全部 for the whole law.
viewNoDefaults 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.
limitNoMaximum complete outline entries or text units per page.
offsetNoNumber of outline entries or text units to skip.
outlineNoOutline detail level. Defaults to full. Use headings to omit article and paragraph detail. Applies only to outline views.
law_revision_idNoExact pinned revision ID from a law read or revision list. Mutually exclusive with asof.
include_amendment_supplNoInclude amending supplementary provisions in whole-law text. Outlines include them within the selected scope. Explicit supplement selections always include the selected supplement.

Output Schema

NameRequiredDescriptionDefault
lawNoIdentity of the selected law.
viewNoType of paged result.
countNoEntries on this page.
errorNoPresent when the call failed. Absent on success.
foundNoWhether the law revision and requested part were resolved.
unitsNoComplete Japanese text units in document order.
outlineNoOutline entries in document order.
guidanceNoHow to recover from a miss or an offset beyond the end.
revisionNoPinned text revision and its observed update timestamp.
downloadsNoDownloads for the complete pinned law.
selectionNoSelection and paging inputs used for the view.
truncatedNoWhether further entries are available after this page.
candidatesNoEqually exact law matches for an ambiguous selector.
attachmentsNoAttachment descriptors for the pinned revision.
attributionNoSource attribution and transformation notice.
next_offsetNoFirst unread entry, or null at the end.
total_countNoExact total entries for this view.
candidate_selectorsNoCanonical part selectors for an ambiguous part label.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The annotations already cover the safety profile (readOnly, idempotent, open world), and the description adds real behavior on top: the view default flips between outline and text depending on whether part is supplied, and revision pinning keeps results stable across paginated calls. The dangling 'updated' reference is an unexplained behavior hint that never resolves against the schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with the primary capability, then pagination discipline. It is dense and mostly earns its space, though the final sentence is cryptic enough to cost more attention than it returns.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present and full parameter documentation, the description need not explain return values, and it covers the operational essentials for a paginated read tool. The only real gap is the unbacked 'updated' mention and the absence of any contrast with jplaw_get_provision.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents every parameter including defaults, enums, and the asof/law_revision_id mutual exclusion. The description reinforces the interaction between part and view but adds no syntax or format detail beyond what the schema states, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names concrete operations — browsing a whole-law or selected-part outline, restricting to headings, and reading complete text units — so the resource and the two output modes are clear. It does not, however, distinguish this from the sibling jplaw_get_provision, leaving the boundary between 'text units' and 'provision' implicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives genuine procedural guidance for pagination: pin law_revision_id and keep part/view constant when following next_offset, which prevents drift between pages. It offers no guidance on when to pick this tool over jplaw_get_provision or jplaw_search_text, and 'Check updated for corrections' points at a field that does not exist in the schema, which weakens otherwise useful advice.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.