Skip to main content
Glama

japan-legislation-mcp-server

List Japanese Law Revisions

jplaw_list_revisions
Read-onlyIdempotent

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.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "law": "<law>"
    },
    "name": "jplaw_list_revisions"
  }
}

Input Schema

NameRequiredDescriptionDefault
lawYesExact law ID, number, Japanese title, or abbreviation.
limitNoMaximum number of revisions to return.
offsetNoZero-based offset or next_offset from the previous call.
statusesNoAccept any listed revision status. Status is relative to the present.
enforcement_toNoLatest reported amendment enforcement date, inclusive. A date not yet fixed matches at e-Gov’s placeholder and is marked enforcement_date_placeholder.
promulgation_toNoLatest amendment promulgation date, inclusive.
enforcement_fromNoEarliest reported amendment enforcement date, inclusive. A date not yet fixed matches at e-Gov’s placeholder and is marked enforcement_date_placeholder.
promulgation_fromNoEarliest amendment promulgation date, inclusive.

Output Schema

NameRequiredDescriptionDefault
lawNoIdentity of the resolved law.
pageNoPaging information for the filtered history.
errorNoPresent when the call failed. Absent on success.
foundNoWhether exactly one law and its revision history were found.
noticeNoHow to recover from an empty or overshot page.
guidanceNoHow to recover from an absent or ambiguous law.
revisionsNoPage of revisions, provided on a successful law lookup.
truncatedNoWhether more matching revisions can be read using page.next_offset.
candidatesNoLaw identities that matched an ambiguous selector.
attributionNoSource and reformatting credit.
coverage_floorNoEarliest 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_filtersNoEffective date and status filters.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint, so the safety profile is covered. The description adds genuinely new behavioral context: results span repealed, previous, current, and unenforced versions and are returned newest-first, which tells the agent how to interpret and consume the ordering.

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

Conciseness5/5

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

Three sentences, each earning its place: scope first, then the two follow-up call paths keyed to the relevant output fields. No restatement of the title and no filler.

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, return-value detail is not required, and the description covers scope, ordering, and what to do with the returned IDs. Pagination via limit/offset is left entirely to the schema, which is a minor omission for a listing tool rather than a harmful one.

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%, including detailed notes on the status enum values and the placeholder-date behavior for enforcement_from/enforcement_to, so the schema carries the parameter burden. The description itself explains no individual parameter and only references output identifiers (law_revision_id, amendment_law_id), so the baseline 3 applies.

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

Purpose5/5

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

States a specific verb and resource — tracing past, current, and not-yet-enforced versions of one national law — and adds the ordering guarantee (e-Gov's newest-first order). That scope is clearly distinct from the sibling tools such as jplaw_get_provision or jplaw_search_laws.

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

Usage Guidelines4/5

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

The description gives explicit downstream routing: feed law_revision_id to jplaw_get_law or jplaw_get_provision to read that version, and amendment_law_id to jplaw_search_laws to find co-amended laws. What it does not state is when an agent should prefer this listing over those tools in the first place, so it stops just short of full when/when-not guidance.

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.