Skip to main content
Glama

get_law

Retrieves specific Japanese statutory provisions from the e-Gov Law API by law name, article, paragraph, or item, including abbreviated law names and supplementary provisions for amendment transition rules.

Instructions

日本の法令から特定の条文を取得する。e-Gov法令API v2を使用。略称にも対応(所法→所得税法、措法→租税特別措置法 等)。条番号が分かっていれば必ず条・項を指定して取る(目次や附則一覧は大きいので最後の手段)。改正法の経過措置は本則ではなく改正法の附則にある。例: インボイスの免税事業者等からの仕入れの80%・50%控除=law_name "消費税法", supplementary "平成28年法律第15号", article "52"(80%)・"53"(その後の段階的控除)、少額特例(1万円未満の帳簿のみ保存)=同 article "53の2"、2割特例= supplementary "平成28年法律第15号", article "51の2"。

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": {
      "law_name": "<law_name>"
    },
    "name": "get_law"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemNo号番号(省略時は項全体)。paragraph を省略しても全項から探す。枝番号の号は文字列で指定する。例: 1, 2, "3の2", "12の5の2", "六"
formatNo出力形式。"markdown"=条文全文(デフォルト), "toc"=目次のみ, "suppl"=附則の一覧(消費税法は160件超と大きいので supplementary で絞り込む)
articleNo条文番号(format="toc"の場合は省略可)。例: "33", "33の2", "57の3", "第33条"
subitemNo号の下のサブアイテム。item と併せて指定する。階層が深い場合は区切って並べる。例: "イ", "ロ", "イ (1)", "イ-1-i"
law_nameYes法令名または略称。例: "所得税法", "法人税法", "租税特別措置法", "所法", "措法", "所得税法施行令", "所令"。e-Gov の law_id を直接指定することもできる(例: "405AC0000000088" = 行政手続法)。プリセット未登録の法令はこちらが確実。
paragraphNo項番号(省略時は条文全体)。例: 1, 2
supplementaryNo附則を対象にする。true または "制定" で制定時附則。改正法の附則は法令番号で指定する。例: true, "制定", "平成29年法律第45号", "令和元年法律第34号"。format="suppl" と併せて "平成28年" などを渡すと附則一覧をその改正法だけに絞り込む

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.1

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations at all, the description carries the whole burden. It discloses useful behavior: the backing API, abbreviation expansion (所法→所得税法, 措法→租税特別措置法), that toc/suppl outputs are very large, and where transitional provisions are located. However, it never states that the operation is a read-only retrieval with no side effects, nor any auth, rate-limit, or not-found behavior, so important behavioral context for an unannotated tool is still missing.

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

Conciseness3/5

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

The purpose and usage rules are front-loaded and dense, but the trailing example block is long and narrowly tied to invoice tax scenarios, which inflates the definition without serving general callers. It is informative rather than redundant, yet the example section could be trimmed considerably without losing guidance.

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?

For a 7-parameter tool with full schema coverage and no output schema, the description covers purpose, when to specify article/paragraph, the cost of toc/suppl, abbreviation handling, and where transitional provisions live. Remaining gaps are error/not-found behavior and confirmation that the response is a plain provision text, but the essentials for correct invocation are present.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning beyond it: abbreviation-to-formal-name mapping for law_name, the convention that supplementary takes a law number like 平成28年法律第15号 to target an amending law, and worked examples showing how supplementary + article combine (e.g., article 52/53/53の2 for the invoice transitional deduction). This teaches parameter interplay the schema documents only piecewise.

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 opens with a specific verb+resource: retrieving a specific provision (特定の条文) from Japanese laws via the e-Gov law API v2, which is far more concrete than the bare name get_law. It also clarifies the scope boundary by saying that if the article number is known you should always specify article/paragraph, implicitly contrasting with browsing a table of contents. The sibling search_law is never named, so differentiation relies on inference.

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 actionable when-to guidance: always specify article and paragraph when the number is known, and treat toc / supplementary lists as a last resort because they are large. It also adds a non-obvious retrieval hint that transitional measures for amending laws live in the amending law's supplementary provisions rather than the main text. No explicit named alternative (e.g., search_law) or exclusion is given, so it stops short of full routing guidance.

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