Skip to main content
Glama

japanlaw.org — Japanese law

List the laws held

list_laws
Read-onlyIdempotent

Check whether japanlaw.org holds a law, and find the name to pass as law. Every law japanlaw.org holds — or only those of one kind (法律 Act, 政令 Cabinet Order, 省令 Ministerial Order…), of one topic, or whose names hold query's words — each with its Japanese and English title, kind, law number and url; get_law has the rest. total counts the laws listed, held all the laws held, and kinds counts them by kind. A law not in the whole 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.

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

Input Schema

NameRequiredDescriptionDefault
kindNoOnly laws of this kind: Constitution, Act (法律), CabinetOrder (政令), MinisterialOrdinance (省令), ImperialOrdinance (勅令), Rule (規則).
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.
queryNoOnly laws whose title, short name, slug or law number holds these words, in Japanese or English (労基法, labor, 昭和二十二年法律第四十九号).
topicNoOnly the laws of one topic, as the site's laws pages group them: work, immigration, tax, social-security, business, consumers, civil, housing, crime, transport or government.

Output Schema

NameRequiredDescriptionDefault
lawsYes
totalYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / kind
      Added value: +{
      +  "description": "Only laws of this kind: Constitution, Act (法律), CabinetOrder (政令), MinisterialOrdinance (省令), ImperialOrdinance (勅令), Rule (規則).",
      +  "enum": [
      +    "Constitution",
      +    "Act",
      +    "CabinetOrder",
      +    "MinisterialOrdinance",
      +    "ImperialOrdinance",
      +    "Rule"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / query
      Added value: +{
      +  "description": "Only laws whose title, short name, slug or law number holds these words, in Japanese or English (労基法, labor, 昭和二十二年法律第四十九号).",
      +  "maxLength": 200,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / topic
      Added value: +{
      +  "description": "Only the laws of one topic, as the site's laws pages group them: work, immigration, tax, social-security, business, consumers, civil, housing, crime, transport or government.",
      +  "enum": [
      +    "work",
      +    "immigration",
      +    "tax",
      +    "social-security",
      +    "business",
      +    "consumers",
      +    "civil",
      +    "housing",
      +    "crime",
      +    "transport",
      +    "government"
      +  ],
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description's real contribution is the exhaustiveness contract: the unfiltered list is the complete set of holdings, which is what licenses a negative answer, and total/kinds describe the counts returned. It spends some of that budget restating the per-law fields (title, kind, number, url) that the output schema already covers, and the clause "held all the laws held" is garbled enough to be ambiguous.

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

Conciseness4/5

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

The purpose and the "find the name to pass as law" framing are front-loaded, and much of the length is load-bearing (the negative-case rule, the get_law handoff). It loses a point because the middle sentence is a single over-stuffed clause that mixes filters, returned fields, and counts, and one phrase is malformed.

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, the description does not need to explain return values, and it still notes the counts it exposes. It covers the filtered-list workflow and the crucial 'not held' inference; the only gap is that it never states what the tool does when filters match nothing versus when the law genuinely does not exist.

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% and three parameters are enums with meanings spelled out, so the description is working against a high baseline. It paraphrases the same filters (kind, topic, query words) and glosses the Japanese labels (法律 Act, 政令 Cabinet Order, 省令 Ministerial Order) but adds no constraint the schema lacks, such as how filters combine or whether they intersect.

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?

Uses a concrete verb+resource ("Every law japanlaw.org holds") and explicitly scopes the response to a summary listing (title, kind, law number, url) while naming the sibling that carries the full text ("get_law has the rest"). An agent can distinguish list_laws from get_law and search without inspecting either schema.

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?

Gives a positive use case ("Check whether japanlaw.org holds a law, and find the name to pass as law") and an explicit fallthrough to get_law, plus a when-not rule: a law absent from the full list is not held, so report that rather than reciting text from memory. The exclusion even covers the edge case of 条例 ordinances, which the kind enum cannot express.

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