Skip to main content
Glama

law_data

Retrieve Japanese law full text as JSON by law ID or law number through the Law API V2, with no API key required.

Instructions

【法令API V2】法令本文取得(JSON, APIキー不要)

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": {
      "lawId": "<lawId>"
    },
    "name": "law_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
lawIdYes法令ID or 法令番号 (例: 129AC0000000089)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose two genuinely useful facts: the response is JSON and no API key is required. It says nothing about response size for long statutes, rate limiting, or error behavior for invalid lawIds.

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?

A single front-loaded line with no waste; the source tag and the no-API-key note are the highest-value facts packed into minimal space. Slightly more text on what the returned body looks like would not hurt, but nothing is redundant.

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

Completeness3/5

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

For a one-parameter lookup with full schema coverage this is close to sufficient, and 'JSON' partially covers the missing output schema. However, with no output schema the description could reasonably say more about what the law body payload contains.

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 coverage is 100%, and the schema already documents lawId with both ID and 法令番号 formats plus an example. The description adds no semantics beyond that, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

「法令本文取得」states a specific verb (retrieve) and resource (law full text), which distinguishes it from the law_keyword_search/law_search siblings that find laws rather than fetch a body. The bracketed 【法令API V2】 tag identifies the data source. It stops short of naming the alternatives explicitly, so it is clear but not fully differentiated.

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?

The verb choice implies the use case: fetch a single law's body when you already have its identifier. There is no explicit when-to-use/when-not statement and no pointer telling an agent to call law_search first to obtain a lawId, so the guidance remains implied.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools