Skip to main content
Glama

japanlaw.org — Japanese law

Look up the words a law defines

get_definitions
Read-onlyIdempotent

What a word means in a Japanese law that defines it. 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.cursor, passed back as cursor with the same arguments, goes on. The text in force only.

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": "get_definitions"
  }
}

Input Schema

NameRequiredDescriptionDefault
lawYesThe law: its Japanese title (労働基準法), English title (Labor Standards Act), short name (労基法), slug (labor-standards-act) or e-Gov law ID (322AC0000000049). A slug or English title a letter or two off is read as the one held law it is near, and note says so.
langNoThe 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.
termNoOne word to look up: the term (労働者), its reading (ろうどうしゃ) or its English (worker).
cursorNoGo on from here: the cursor an earlier answer's continued gave, with the same law, address and term.
addressNoA 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.

Output Schema

NameRequiredDescriptionDefault
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)".
pathYes
lawIdYes
totalYes
conceptsYes
definitionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / law / description
      Previous value: -"The law: its Japanese title (労働基準法), English title (Labor Standards Act), short name (労基法), slug (labor-standards-act) or e-Gov law ID (322AC0000000049)."New value: +"The law: its Japanese title (労働基準法), English title (Labor Standards Act), short name (労基法), slug (labor-standards-act) or e-Gov law ID (322AC0000000049). A slug or English title a letter or two off is read as the one held law it is near, and note says so."
    • 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
    • addedInput schema / properties / cursor
      Added value: +{
      +  "description": "Go on from here: the cursor an earlier answer's continued gave, with the same law, address and term.",
      +  "maxLength": 300,
      +  "type": "string"
      +}
    • removedInput schema / properties / from
      Removed value: -{
      -  "description": "Go on from this term: the from an earlier answer's continued gave, with the same law, address and term.",
      -  "maxLength": 300,
      -  "type": "string"
      -}
  3. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Beyond the readOnly/idempotent annotations, it discloses real behavioral facts: results are scoped to the defining law and each definition's reach, only text in force is returned, a term filter truncates to a single hit, and continued.cursor must be replayed with identical arguments. It does not discuss rate limits or failure modes, but the added context is substantial.

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 purpose is front-loaded, but the prose is a dense run-on with heavy em-dash and parenthesis nesting that makes the address and pagination behavior harder to extract than necessary. Nothing is off-topic, yet the sentences do not earn their length as cleanly as they could.

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?

For a five-parameter, open-world lookup with an output schema, the description covers scope, filtering, pagination, and currency of text adequately. It spends words enumerating return fields (statuteJa, englishWhose, scope) that the output schema already carries, while leaving unaddressed what happens when a term has no definition.

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

Parameters4/5

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

Schema description coverage is already 100%, so the baseline is 3; the description earns above that by explaining the semantic effect of address (definitions that apply because the provision's text uses the word, plus legal-vocabulary concepts) and of term (accepts Japanese term, reading, or English). Most of the remaining parameter detail duplicates the schema.

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 opening sentence names a specific resource and scope — the words a statute defines for itself (定義語) and how far each definition reaches — which is clearly distinct from get_law or get_provision. It also contrasts the tool's answer against everyday or cross-statute meaning, so an agent can tell what class of question this answers without opening the schema.

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?

It gives explicit when-to-use guidance ("Call it before explaining what a provision means") and explains the two modes: unset address lists every term, set address returns only definitions applying in that provision. It does not explicitly name an alternative tool or when-not-to-use this one, relying on get_provision only implicitly via formatting references.

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