Skip to main content
Glama

japan-legislation-mcp-server

Look Up Japanese Law Citations

jplaw_lookup_citation
Read-onlyIdempotent

Resolve exact Japanese law titles, abbreviations, law IDs, and published numbers, optionally followed by a 条/項/号 address. Process the first 25 citations and return the rest for continuation. Accept Japanese eras or Gregorian law-number years and Arabic or kanji numerals. Call jplaw_get_provision to confirm the address in a specific revision.

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": {
      "citations": "<citations>"
    },
    "name": "jplaw_lookup_citation"
  }
}

Input Schema

NameRequiredDescriptionDefault
citationsYesCitations in caller order, for example 平成15年法律第57号 or 個人情報保護法第二十七条第一項.

Output Schema

NameRequiredDescriptionDefault
errorNoPresent when the call failed. Absent on success.
noticeNoHow to continue a batch with deferred citations.
resultsNoOne result per processed citation, in caller order.
deferredNoUnprocessed citations in caller order.
attributionNoSource and reformatting credit.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

The annotations already disclose readOnlyHint, idempotentHint, and openWorldHint, so the description does not need to restate them. It adds real behavior instead: it processes only the first 25 citations and returns the remainder for continuation, and it accepts Japanese-era or Gregorian law-number years with Arabic or kanji numerals. It does not say how unresolved or ambiguous citations are reported, whether as an error or as a per-item failure.

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?

Four compact sentences, each carrying useful content, with the capability statement front-loaded before the batching limit and the sibling hand-off. The phrasing 'return the rest for continuation' is slightly terse and could be read as ambiguous about whether the remainder is echoed back in the response, but no sentence is wasted.

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?

The output schema and annotations already cover return shape and the safety profile, and the description fills in the batch size and format flexibility, so the agent has enough to invoke the tool correctly. The remaining gap is failure semantics: the description does not say what happens when a citation cannot be resolved or is ambiguous.

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?

There is only one parameter and the schema description coverage is 100%, so the schema already documents the citations array and gives examples. The description still adds value by stating the accepted numeral systems and year formats, but it does not describe item ordering guarantees, duplicates, or how the 25-item split maps back to caller order.

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 states a specific verb and resource: it resolves exact Japanese law titles, abbreviations, law IDs, and published numbers, plus an optional 条/項/号 address. It also distinguishes itself from jplaw_get_provision, which is the tool that confirms an address in a specific revision, so an agent can tell the two apart.

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 clear routing: use jplaw_get_provision when an address must be confirmed in a particular revision, which makes this tool the resolution step before that verification. The word 'exact' implicitly limits this tool to exact identifiers rather than free-text search, but it never states that explicitly or names jplaw_search_laws as the alternative for approximate queries.

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.