japanlaw.org — Japanese law

Japanese statutes and the Ministry of Justice's English, cited to the item, every line sourced.

¿Debería usar esto?

Calidad y seguridad

A
Calidad de la descripción
100%
Integridad del esquema
99%
Calidad de los nombres
100%
Riesgo de envenenamiento
100%
Coincidencia de permisos
90%
Cumplimiento del protocolo
100%

Hallazgos (1)

  • LOWTool 'fetch' suggests web access but openWorldHint=falseen fetch

Basado en el análisis automatizado de las definiciones de herramientas y el cumplimiento del protocolo.

Costo de contexto

~5,141Tokens (definiciones de herramientas)
~4.5 KBTamaño de respuesta típico
Impacto significativo en la atención (4.02% del contexto de 128k)

Este es el número aproximado de tokens que se consumen cada vez que las herramientas del servidor se cargan en el contexto de un modelo. Los recuentos más altos reducen la atención disponible para otras tareas.

Instalar

Instalación con un clic

Agrega esto a tu archivo `claude_desktop_config.json`:

{
  "mcpServers": {
    "japanese-law": {
      "url": "https://japanlaw.org/mcp"
    }
  }
}

Puntos de conexión remotos

https://japanlaw.org/mcpstreamable-http

Qué puede hacer

Inventario de herramientas

Herramientas (8)

🟢 Solo lectura🟡 Escritura🔴 Eliminación⚪ Desconocido
🟢search(query, law, page, limit, lang)

Search the Japanese statutes japanlaw.org holds, in force today. A query with any Japanese in it searches the Japanese text (時間外労働, 有給休暇); one without searches the English shown for each provision, stemmed (overtime, paid leave). Results are laws whose title matches, then one result per matching article at its best-matching paragraph or item, best first; each has an id to pass to fetch (or pass its law and path to get_provision as law and address), the page's url, the Japanese and English designation (第三十六条第一項 / Article 36, paragraph (1)) and a snippet. terms lists words a law defines that match; concepts, words of Japanese law the site explains. Every word must be at least two characters. Only the laws list_laws names are searched; law searches one of them alone, its provisions and the terms it defines. When a law the reader names finds nothing, check list_laws: one not there is not held — say so rather than answering from memory.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "Words to find, in Japanese or English."
    },
    "law": {
      "description": "Search this law only: its Japanese title, English title, short name, slug or e-Gov law ID. Unset searches every law held.",
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "page": {
      "description": "Which page of results, from 1.",
      "type": "integer",
      "minimum": 1,
      "maximum": 1000
    },
    "limit": {
      "description": "Articles per page, 1–25; default 10.",
      "type": "integer",
      "minimum": 1,
      "maximum": 25
    },
    "lang": {
      "description": "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.",
      "type": "string",
      "enum": [
        "en",
        "ja"
      ]
    }
  },
  "required": [
    "query"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

Esquema de salida

{
  "type": "object",
  "properties": {
    "total": {
      "type": "number"
    },
    "page": {
      "type": "number"
    },
    "pages": {
      "type": "number"
    },
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "title",
          "url"
        ],
        "additionalProperties": {}
      }
    }
  },
  "required": [
    "total",
    "page",
    "pages",
    "results"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": {}
}
🟢fetch(id, asOf, version, lang)

Read what an id from search names. 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. 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.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 500,
      "description": "An id from search or get_law: a law's slug, or <slug>/<address>. A japanlaw.org URL also works."
    },
    "asOf": {
      "description": "Read 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.",
      "type": "string",
      "maxLength": 20
    },
    "version": {
      "description": "Read 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.",
      "type": "string",
      "maxLength": 80
    },
    "lang": {
      "description": "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.",
      "type": "string",
      "enum": [
        "en",
        "ja"
      ]
    }
  },
  "required": [
    "id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

Esquema de salida

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "text": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "metadata": {
      "type": "object",
      "properties": {
        "lawId": {
          "type": "string"
        }
      },
      "required": [
        "lawId"
      ],
      "additionalProperties": {}
    }
  },
  "required": [
    "id",
    "title",
    "text",
    "url",
    "metadata"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": {}
}
🟢list_laws(lang)

Every law japanlaw.org holds: Japanese and English title, short names, kind (法律 Act, 政令 Cabinet Order, 省令 Ministerial Order…), law number, the date the text held took effect, number of articles, the share of paragraphs with English, and URLs; kinds counts them by kind. A law not in this list is not held, whatever its kind — a 条例 (a prefecture's or city's ordinance) included — so say so rather than quoting its text from memory.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "lang": {
      "description": "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.",
      "type": "string",
      "enum": [
        "en",
        "ja"
      ]
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

Esquema de salida

{
  "type": "object",
  "properties": {
    "total": {
      "type": "number"
    },
    "laws": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string"
          },
          "lawId": {
            "type": "string"
          },
          "titleJa": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "slug",
          "lawId",
          "titleJa",
          "url"
        ],
        "additionalProperties": {}
      }
    }
  },
  "required": [
    "total",
    "laws"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": {}
}
🟢get_law(law, section, outline, under, lang)

One law: titles, number, kind, when the text in force took effect, the texts held (versions: in force, not yet in force, no longer in force, each with the days it stands), how much of it has the Ministry's English, and this site's plain description of it — what it is for, who it applies to and who it does not, and on request (section) its exceptions and how it is enforced — each claim with the provisions it rests on (basis). Then its outline: by default the parts and chapters of the main text (編, 章); outline "articles" lists every article (for a very long law, its headings instead), and under (a heading's path, such as ch-4) lists everything under that heading. outlineUrl turns an outline path into its page.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "law": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "The law: its Japanese title (労働基準法), English title (Labor Standards Act), short name (労基法), slug (labor-standards-act) or e-Gov law ID (322AC0000000049)."
    },
    "section": {
      "description": "One section of the description, in full: summary, applies, excludes, exceptions, enforcement or topics. Unset gives summary, applies, excludes and topics, and names the others in description.more.",
      "type": "string",
      "enum": [
        "summary",
        "applies",
        "excludes",
        "exceptions",
        "enforcement",
        "topics"
      ]
    },
    "outline": {
      "description": "\"headings\" (default) or \"articles\".",
      "type": "string",
      "enum": [
        "headings",
        "articles"
      ]
    },
    "under": {
      "description": "A heading's or run's path from the outline, such as ch-4 or from-art-31: list everything under it.",
      "type": "string",
      "maxLength": 200
    },
    "lang": {
      "description": "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.",
      "type": "string",
      "enum": [
        "en",
        "ja"
      ]
    }
  },
  "required": [
    "law"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

Esquema de salida

{
  "type": "object",
  "properties": {
    "lawId": {
      "type": "string"
    },
    "slug": {
      "type": "string"
    },
    "titleJa": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "outlineUrl": {
      "type": "string"
    },
    "outline": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "pathLabelJa": {
            "type": "string"
          }
        },
        "required": [
          "path",
          "kind",
          "pathLabelJa"
        ],
        "additionalProperties": {}
      }
    }
  },
  "required": [
    "lawId",
    "slug",
    "titleJa",
    "url",
    "outlineUrl",
    "outline"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": {}
}
🟢get_provision(law, address, asOf, version, from, ...)

One article, paragraph or item of a law, with everything under it. Call it with law and address: {"law": "labor-standards-act", "address": "art-36"}, or {"law": "労働基準法", "address": "第三十二条の三第一項"}. For each paragraph and item, the Japanese text (textJa), its English (textEn) and whose that English is (englishWhose: ministry — the Ministry of Justice's translation; corrected — the Ministry's with a slip this site corrected; machine — this site's machine translation, not official), and its url. Also what the provision cites, the terms it defines, how many provisions cite it, and the official e-Gov page. A very long one — a big appended table, a 附則 of many articles — stops at a provision; continued.from, passed back as from with the same address, goes on from there. Shown to the reader as a card where the chat app can draw one. The text in force by default; asOf (a day) or version reads another text held — as it stood on a past day, or as an amendment not yet in force will leave it — and version says which text the answer is. Quoting it, link its url (the reader's page, with the English marked), not e-Gov's, and say whose English each quoted paragraph is.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "law": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "The law: its Japanese title (労働基準法), English title (Labor Standards Act), short name (労基法), slug (labor-standards-act) or e-Gov law ID (322AC0000000049)."
    },
    "address": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "The provision, as the statute writes it (第三十六条第二項第一号), as the Ministry's English does (Article 36(2)(i)), or as japanlaw.org does (art-36/par-2/item-1). A bare number is an article: 36. Supplementary provisions and appended tables use the site's addresses, which search and get_law hand out."
    },
    "asOf": {
      "description": "Read 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.",
      "type": "string",
      "maxLength": 20
    },
    "version": {
      "description": "Read 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.",
      "type": "string",
      "maxLength": 80
    },
    "from": {
      "description": "Go on from this provision: the from an earlier answer's continued gave, with the same address. Unset starts at the address.",
      "type": "string",
      "maxLength": 200
    },
    "lang": {
      "description": "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.",
      "type": "string",
      "enum": [
        "en",
        "ja"
      ]
    }
  },
  "required": [
    "law",
    "address"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

Esquema de salida

{
  "type": "object",
  "properties": {
    "lawId": {
      "type": "string"
    },
    "path": {
      "type": "string"
    },
    "pathLabelJa": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "permanentUrl": {
      "type": "string"
    },
    "provisions": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string"
          },
          "textJa": {
            "type": [
              "string",
              "null"
            ]
          },
          "textEn": {
            "type": [
              "string",
              "null"
            ]
          },
          "englishWhose": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "ministry",
                  "corrected",
                  "machine"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "path",
          "textJa",
          "textEn",
          "englishWhose",
          "url"
        ],
        "additionalProperties": {}
      }
    }
  },
  "required": [
    "lawId",
    "path",
    "pathLabelJa",
    "url",
    "permanentUrl",
    "provisions"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": {}
}
🟢get_citing_provisions(law, address, limit, lang)

Every provision in the laws japanlaw.org holds that cites the given one — the other direction from what a statute says, which no official source publishes. Each with its law, designation, the words it cites with, an id for fetch and its url; link each one you name by its fromUrl. Call it with law and address, as get_provision: {"law": "labor-standards-act", "address": "Article 36(1)"}.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "law": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "The law: its Japanese title (労働基準法), English title (Labor Standards Act), short name (労基法), slug (labor-standards-act) or e-Gov law ID (322AC0000000049)."
    },
    "address": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "The provision, as the statute writes it (第三十六条第二項第一号), as the Ministry's English does (Article 36(2)(i)), or as japanlaw.org does (art-36/par-2/item-1). A bare number is an article: 36. Supplementary provisions and appended tables use the site's addresses, which search and get_law hand out."
    },
    "limit": {
      "description": "How many to return, 1–300; default 50. total counts them all.",
      "type": "integer",
      "minimum": 1,
      "maximum": 300
    },
    "lang": {
      "description": "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.",
      "type": "string",
      "enum": [
        "en",
        "ja"
      ]
    }
  },
  "required": [
    "law",
    "address"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

Esquema de salida

{
  "type": "object",
  "properties": {
    "lawId": {
      "type": "string"
    },
    "path": {
      "type": "string"
    },
    "total": {
      "type": "number"
    },
    "citing": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "fromLawId": {
            "type": "string"
          },
          "fromPath": {
            "type": "string"
          },
          "fromUrl": {
            "type": "string"
          }
        },
        "required": [
          "fromLawId",
          "fromPath",
          "fromUrl"
        ],
        "additionalProperties": {}
      }
    }
  },
  "required": [
    "lawId",
    "path",
    "total",
    "citing"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": {}
}
🟢get_definitions(law, address, term, from, lang)

The words a law defines for itself (定義語): inside that law, and only as far as each definition reaches, the word means what the statute says, not what it means in everyday speech or in another law. For each, the statute's own words (statuteJa), its reading, its English and whose that is (englishWhose), a plain explanation by japanlaw.org (explanation, in lang), where it is defined (definedAt, url) and how far it reaches (scope, scopeLabel). With address — {"law": "labor-standards-act", "address": "art-36"} — the definitions that apply in that provision, because its text uses the word, and japanlaw.org's explanations of the words of Japanese law it uses (concepts: 施行, 政令, 附則…). Call it before explaining what a provision means. term narrows the answer to one word, in Japanese, its reading or its English. A law with many terms stops at one; continued.from, passed back as from with the same arguments, goes on. The text in force only.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "law": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "The law: its Japanese title (労働基準法), English title (Labor Standards Act), short name (労基法), slug (labor-standards-act) or e-Gov law ID (322AC0000000049)."
    },
    "address": {
      "description": "A provision: the definitions that apply in it, and the legal vocabulary it uses. Unset lists every term the law defines. Written as for get_provision: 第三十六条, Article 36(2) or art-36/par-2.",
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "term": {
      "description": "One word to look up: the term (労働者), its reading (ろうどうしゃ) or its English (worker).",
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "from": {
      "description": "Go on from this term: the from an earlier answer's continued gave, with the same law, address and term.",
      "type": "string",
      "maxLength": 300
    },
    "lang": {
      "description": "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.",
      "type": "string",
      "enum": [
        "en",
        "ja"
      ]
    }
  },
  "required": [
    "law"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

Esquema de salida

{
  "type": "object",
  "properties": {
    "lawId": {
      "type": "string"
    },
    "path": {
      "type": [
        "string",
        "null"
      ]
    },
    "url": {
      "type": "string"
    },
    "total": {
      "type": "number"
    },
    "definitions": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "term": {
            "type": "string"
          },
          "statuteJa": {
            "type": [
              "string",
              "null"
            ]
          },
          "english": {
            "type": [
              "string",
              "null"
            ]
          },
          "englishWhose": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "ministry",
                  "corrected",
                  "machine"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "definedAt": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "scope": {
            "type": "string"
          }
        },
        "required": [
          "term",
          "statuteJa",
          "english",
          "englishWhose",
          "definedAt",
          "url",
          "scope"
        ],
        "additionalProperties": {}
      }
    },
    "concepts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "ja": {
            "type": "string"
          },
          "en": {
            "type": "string"
          },
          "explanation": {
            "type": "string"
          }
        },
        "required": [
          "key",
          "ja",
          "en",
          "explanation"
        ],
        "additionalProperties": {}
      }
    }
  },
  "required": [
    "lawId",
    "path",
    "url",
    "total",
    "definitions",
    "concepts"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": {}
}
🟢get_amendments(law, revision, from, lang)

A law's amendments whose changes japanlaw.org holds: the amending Act (titles, law number), the day it takes effect, whether it is in force, not yet in force or since replaced (state), how many provisions it changes, adds and removes, and its revision key. With revision — {"law": "labor-standards-act", "revision": "20270401_508AC0000000060"} — every provision that amendment changes, its wording before and after in Japanese and English, and whose each English is (beforeEnglishWhose, afterEnglishWhose). A long one stops at a provision; continued.from, passed back as from with the same revision, goes on. An amendment e-Gov publishes no text for is named as such (comparedAcross, textPublished false): its changes are listed with the next amendment's and cannot be told apart from them — never describe them as its own. One whose changes are not held says so; never describe its changes from memory. version names the text an amendment leaves, for get_provision and fetch. Link each amendment by its url.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "law": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "The law: its Japanese title (労働基準法), English title (Labor Standards Act), short name (労基法), slug (labor-standards-act) or e-Gov law ID (322AC0000000049)."
    },
    "revision": {
      "description": "One amendment, by the revision key a list gave (20270401_508AC0000000060): its changes, provision by provision. Unset lists the amendments.",
      "type": "string",
      "minLength": 1,
      "maxLength": 80
    },
    "from": {
      "description": "Go on from this provision: the from an earlier answer's continued gave, with the same revision.",
      "type": "string",
      "maxLength": 200
    },
    "lang": {
      "description": "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.",
      "type": "string",
      "enum": [
        "en",
        "ja"
      ]
    }
  },
  "required": [
    "law"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

Esquema de salida

{
  "type": "object",
  "properties": {
    "lawId": {
      "type": "string"
    },
    "lawSlug": {
      "type": "string"
    }
  },
  "required": [
    "lawId",
    "lawSlug"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": {}
}

Comunidad

Califica este servidor

Evidencia

Observaciones recientes

verificadoversión no registrada8 herramientas