Skip to main content
Glama

japanlaw.org — Japanese law

Read a provision or a law

fetch
Read-onlyIdempotent

Read in full a law or provision search found, by its id. A provision's id (labor-standards-act/art-36) returns it as Markdown: the Japanese text with each paragraph's English under it, every English line marked as the Ministry of Justice's translation, the Ministry's with a slip corrected, or machine translation; its address and URLs on every line; what it cites and what cites it; and its sources. A law's id (labor-standards-act) returns the law's overview — what it is for, who it applies to, how it is enforced — the texts held, and its outline, never its whole text. The site's other pages are read by id too, each as its own Markdown: a legal term explained (concepts/act — the explanation search's concepts give an id for), a day of the calendar of changes (changes/2027-04-01), an amending Act (acts/508AC0000000060) and a topic's laws (laws/work); metadata.kind says which, and metadata.lawId is "" on a page of no law. A japanlaw.org URL is accepted as an id too. A provision is read in the text in force unless asOf (a day) or version names another text held: an earlier one, or one an amendment not yet in force will leave.

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": {
      "id": "<id>"
    },
    "name": "fetch"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesAn id from search or get_law: a law's slug, <slug>/<address>, or a page's id — concepts/<key>, changes/<day>, acts/<law id>, laws/<topic>. A japanlaw.org URL also works.
asOfNoRead the text as it stood on this day, YYYY-MM-DD (2027-04-01): past, today or to come. Unset reads the text in force. A day whose text japanlaw.org does not hold is refused as not held, with the texts that are; never answered with the nearest text.
langNoThe language of the pages every url opens, and of the card get_provision is drawn as: "en" (default) or "ja". A law's or a provision's text always holds both languages; a page's id (concepts/, changes/, acts/, laws/) is returned in this language, or in the language its japanlaw.org URL names when lang is unset.
versionNoRead one held text by its version, as get_law's versions lists it (20270401_508AC0000000060). Unset reads the text in force. Pass asOf or version, not both.

Output Schema

NameRequiredDescriptionDefault
idYes
urlYes
noteNoWhat to know about this answer. Where the law was not named exactly, it opens by saying how it was read: a slug or English title a letter or two off read as the one held law it is near — "read 'labor-contract-act' as labor-contracts-act (労働契約法, Labor Contracts Act)".
textYes
titleYes
metadataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / note
      Added value: +{
      +  "description": "What to know about this answer. Where the law was not named exactly, it opens by saying how it was read: a slug or English title a letter or two off read as the one held law it is near — \"read 'labor-contract-act' as labor-contracts-act (労働契約法, Labor Contracts Act)\".",
      +  "type": "string"
      +}
  2. Changed2 schema fields changed
    • changedInput schema / properties / id / description
      Previous value: -"An id from search or get_law: a law's slug, or <slug>/<address>. A japanlaw.org URL also works."New value: +"An id from search or get_law: a law's slug, <slug>/<address>, or a page's id — concepts/<key>, changes/<day>, acts/<law id>, laws/<topic>. A japanlaw.org URL also works."
    • changedInput schema / properties / lang / description
      Previous value: -"The language of the pages every url opens, and of the card get_provision is drawn as: \"en\" (default) or \"ja\". The text returned always holds both languages."New value: +"The language of the pages every url opens, and of the card get_provision is drawn as: \"en\" (default) or \"ja\". A law's or a provision's text always holds both languages; a page's id (concepts/, changes/, acts/, laws/) is returned in this language, or in the language its japanlaw.org URL names when lang is unset."
  3. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), and the description adds substantial behavior beyond that: translation provenance is marked per line (Ministry translation, slip-corrected, or machine translation), laws deliberately return an overview rather than full text, and asOf requests for unheld dates are refused as 'not held' instead of silently snapping to the nearest text. It also states the asOf/version mutual exclusion.

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

Conciseness3/5

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

The core verb and id contract are front-loaded, which is correct, but the body is two long compound sentences packed with parenthetical examples that are partly duplicated by the schema. The final asOf/version sentence is convoluted enough to slow comprehension.

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

Completeness5/5

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

For a four-parameter tool with an output schema, the description supplies everything an agent needs before calling: accepted id shapes, per-page-kind return content, language behavior, and the exact failure mode of an unavailable asOf date. Nothing material is missing.

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 id, asOf, lang, and version are already fully documented in the schema, including the version format and the asOf-or-version rule. The description mostly restates those semantics with worked examples (labor-standards-act/art-36, changes/2027-04-01) rather than adding new meaning, 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?

The description opens with a specific verb plus resource ("Read in full a law or provision ... by its id") and then enumerates exactly what each id namespace (law slug, slug/address, concepts/, changes/, acts/, laws/) returns. That lets an agent predict the payload before calling and separates this tool from narrower readers like get_provision or get_law.

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?

Usage is implied by the required precondition ("a provision search found" / "id from search or get_law"), and the note that a law's id returns only an overview is a useful boundary. However, siblings get_law and get_provision are never mentioned, so the agent gets no explicit rule for when fetch beats those narrower readers.

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.

Resources