Skip to main content
Glama

japan-legislation-mcp-server

Search Japanese Laws

jplaw_search_laws
Read-onlyIdempotent

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.

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_search_laws"
  }
}

Input Schema

NameRequiredDescriptionDefault
asofNoISO date for the historical or future metadata view, from 2017-04-01. Omit for the default view.
sortNoSort by ascending law number, newest law promulgation, or newest amendment promulgation.law_number
limitNoMaximum results per page. Values above 500 are served at 500.
titleNoSubstring of the Japanese title or an abbreviation. Ignores ASCII case and width.
offsetNoZero-based offset or next_offset from the previous call.
statusNoRepeal status. in_force selects e-Gov status None in the selected view.in_force
law_typesNoAccept any listed law type. A compound value matches the exact composite type.
categoriesNoAccept any listed Japanese subject category code.
law_num_eraNoEra of the published law number.
law_num_yearNoYear within the Japanese era of the published law number.
promulgation_toNoLatest law promulgation date, inclusive.
amendment_law_idNoExact 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_fromNoEarliest law promulgation date, inclusive.
amendment_enforcement_toNoLatest reported amendment enforcement date, inclusive. A date not yet fixed matches at e-Gov’s placeholder and is marked enforcement_date_placeholder.
amendment_promulgation_toNoLatest promulgation date of the selected revision’s amendment, inclusive.
amendment_enforcement_fromNoEarliest reported amendment enforcement date, inclusive. A date not yet fixed matches at e-Gov’s placeholder and is marked enforcement_date_placeholder.
amendment_promulgation_fromNoEarliest promulgation date of the selected revision’s amendment, inclusive.

Output Schema

NameRequiredDescriptionDefault
lawsNoMatching law identities and selected revisions.
countNoNumber of results returned in this page.
errorNoPresent when the call failed. Absent on success.
limitNoEffective maximum number of results in this page.
noticeNoPaging or empty-result guidance when applicable.
offsetNoZero-based offset into the filtered collection.
truncatedNoWhether more matching laws can be read using next_offset.
fetched_atNoWhen this metadata snapshot finished loading, ISO 8601.
attributionNoSource and reformatting credit.
next_offsetNoOffset of the first unread result, or null at the end.
total_countNoTotal results before pagination.
applied_filtersNoEffective search filters and sort order.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, and openWorld, so the safety profile is covered. The description adds genuinely useful behavioral context: this searches metadata only, and results are scoped to a selectable date view. It does not mention paging behavior or result-set size limits, which is a minor omission given the schema covers limit/offset.

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 short sentences, front-loaded with the scope and facets, followed by disambiguation to siblings. No filler and no repetition of schema content.

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 and full schema coverage, the description need not explain return values, and it covers the core search facets plus sibling routing. However, six amendment-related filter parameters form a substantive capability the prose never mentions, so the description is slightly thinner than the tool's actual complexity.

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% across 17 parameters, so the schema carries parameter semantics fully. The description only adds meaning for asof ("select a date view") and otherwise restates facets already documented in the schema. Baseline 3 is appropriate.

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 (Search) and resource (national law metadata) and enumerates the facets it filters on: title/abbreviation, law type, subject, promulgation, repeal status, amending law ID. The word "metadata" in the first clause already distinguishes it from the body-text search sibling.

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

Usage Guidelines5/5

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

Explicitly routes the agent to alternatives with conditions: body-text words go to jplaw_search_text, full amendment history of one law goes to jplaw_list_revisions. It also explains the asof parameter's purpose, so the agent knows when a date view is appropriate.

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.