Skip to main content
Glama

law_search

Retrieve Japanese law lists as JSON without an API key, filtering by category and paginating results with limit and offset.

Instructions

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

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

Input Schema

NameRequiredDescriptionDefault
limitNo取得件数(デフォルト20)
offsetNo取得開始オフセット(デフォルト0)
categoryNo1:憲法 2:法律 3:政令 4:勅令 5:府省令 6:規則

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden, and it does disclose two real traits: the response is JSON and authentication is not required. It says nothing about ordering, whether the listing is exhaustive, how pagination totals behave, or rate limits, so the agent is left guessing about everything beyond auth and format.

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 compact phrase with zero filler, front-loading the API version, the operation, and the format. It is efficient rather than bloated, though the terseness tips into under-specification rather than optimal structure.

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

Completeness2/5

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

For a three-parameter listing tool with no output schema and no annotations, the description should say what a returned law record contains and how this differs from keyword search. It supplies neither, so an agent cannot tell what it will get back or when this tool beats its closest sibling.

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% — limit, offset, and the 1-6 category code mapping are all documented in the schema itself. The description adds no extra meaning about these parameters (e.g. which category values map to which real-world law types), 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?

The description names a specific verb and resource (法令一覧取得 = retrieve the list of laws) and clarifies that the response is JSON and needs no API key, which usefully corrects the impression given by the name 'law_search' that this is a keyword search. It does not, however, explicitly distinguish itself from the sibling law_keyword_search, so the agent must infer the difference.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance and no exclusion criteria: nothing says to prefer law_keyword_search when the user supplies a term, or that this tool is for enumerating/browsing laws by category. The only usage-adjacent note is that no API key is required, which is a prerequisite rather than routing guidance.

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