Skip to main content
Glama

law_keyword_search

Search Japanese laws and regulations by keyword through the Laws API V2 without an API key; control result count and offset for pagination.

Instructions

【法令API V2】キーワードで法令を検索(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": {
      "keyword": "<keyword>"
    },
    "name": "law_keyword_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo取得件数(デフォルト20)
offsetNo取得開始オフセット(デフォルト0)
keywordYes検索キーワード

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full disclosure burden, and it only adds that no API key is required. It does not state that the operation is read-only, whether results are paginated, what a result record contains (law ID, title, ...), or any rate/limit behavior beyond what the schema implies.

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 single short phrase is front-loaded with the API family and the core action, and both bracketed notes (V2, no API key) carry real information. It is efficient, though its brevity borders on under-specification rather than tight writing.

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 three-parameter search tool with full schema coverage, the definition covers the essentials but leaves the result shape unspecified, and no output schema exists to fill that gap. An agent knows how to call it but not what it will receive back.

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 each of the three parameters (keyword, limit, offset) is documented in the schema with types, bounds, and defaults. The description adds no semantics beyond what the schema already provides, 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 (検索) and resource (法令) plus the retrieval mode (キーワード), which lets an agent understand it is a keyword-based law lookup against the e-Gov 法令API V2. It stops short of distinguishing itself from the sibling law_search, so the boundary between the two is left to inference.

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, no stated exclusions, and no mention of the sibling law_search as an alternative. The parenthetical (APIキー不要) hints at a no-setup path but does not tell an agent when this tool is preferable to another law tool.

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