{"ok":true,"site":{"host":"bokuweb.github.io","url":"https://bokuweb.github.io/lawrenceanum/","type":"live","desc":"Lawrenceanum","tools":[{"name":"list_data_sources","kind":"answer","impl":"imperative","description":"対応する12種のデータと検索可否、一覧・詳細の必須引数、項目取得の section を案内する。公開データの存在・更新状況は get_data_status で確認する。","annotations":{"readOnlyHint":true,"untrustedContentHint":true},"inputSchema":{"type":"object","properties":{},"required":[],"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/lawrenceanum/"},{"name":"search_legal_data","kind":"answer","impl":"imperative","description":"法令の条文・国会発言・官報・通達・自治体例規・パブコメ・議案・審議会を全文検索する。同義語展開、索引順ページング、詳細取得用 document_args に対応。例規は先頭2000候補内の検索のため自治体・都道府県で絞り込む。DBの取得失敗はエラーを返す。","annotations":{"readOnlyHint":true,"untrustedContentHint":true},"inputSchema":{"type":"object","properties":{"query":{"type":"string","minLength":1,"description":"2文字以上の全文検索キーワード（空白区切りは AND 条件）"},"corpus":{"type":"string","enum":["laws","proceedings","kanpo","tsutatsu","reiki","pubcomment","gian","shingikai"],"default":"laws"},"limit":{"type":"integer","minimum":1,"maximum":100,"default":20},"offset":{"type":"integer","minimum":0,"default":0},"categories":{"type":"array","items":{"type":"string"},"description":"法令検索の分類フィルター。例: [\"民事\"]。laws だけで指定可能。"},"municipality_code":{"type":"string","minLength":1,"description":"自治体例規検索の自治体コード。reiki だけで指定可能。"},"prefecture":{"type":"string","minLength":1,"description":"例規検索の都道府県名。municipality_code と同時指定不可。"},"title_only":{"type":"boolean","default":false,"description":"例規の題名だけを検索。reiki だけで指定可能。"}},"required":["query"],"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/lawrenceanum/"},{"name":"list_legal_data","kind":"answer","impl":"imperative","description":"法令・会議録・パブコメ・議案・通達集・自治体・例規・政府調達・審議会・統計・Wiki・官報の一覧。メタデータ部分一致検索と完全一致フィルター、ページングが可能。reiki は municipality_code、kanpo は date が必須。","annotations":{"readOnlyHint":true,"untrustedContentHint":true},"inputSchema":{"type":"object","properties":{"corpus":{"type":"string","enum":["laws","proceedings","pubcomment","gian","tsutatsu","municipalities","reiki","procurement","shingikai","budget","wiki","kanpo"],"default":"laws"},"limit":{"type":"integer","minimum":1,"maximum":100,"default":20},"offset":{"type":"integer","minimum":0,"default":0},"query":{"type":"string","minLength":1,"description":"メタデータを部分一致で検索。空白区切りの語は AND 条件。本文の全文検索には search_legal_data を使う。"},"filters":{"type":"object","additionalProperties":{"type":"string"},"description":"一覧のフィールドに完全一致する条件。例: {\"category\":\"民事\"}, {\"ministry\":\"moj\"}, {\"session\":\"217\"}。"},"sort_by":{"type":"string","minLength":1,"description":"並べ替えるフィールド。ネストした値は dimensions.area のように指定。"},"sort_order":{"type":"string","enum":["asc","desc"],"default":"asc"},"municipality_code":{"type":"string","minLength":1,"description":"reiki の一覧を取得する自治体コード。municipalities の一覧で取得。"},"date":{"type":"string","minLength":1,"description":"kanpo の発行日 YYYY-MM-DD。"}},"required":[],"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/lawrenceanum/"},{"name":"get_legal_document","kind":"answer","impl":"imperative","description":"一覧・検索の document_args をそのまま渡して詳細・本文・出典を取得する。IDと追加必須引数は list_data_sources で確認可能。laws は revision_id で過去版も取得可能。","annotations":{"readOnlyHint":true,"untrustedContentHint":true},"inputSchema":{"type":"object","properties":{"corpus":{"type":"string","enum":["laws","proceedings","pubcomment","gian","tsutatsu","municipalities","reiki","procurement","shingikai","budget","wiki","kanpo"],"default":"laws"},"id":{"type":"string","minLength":1,"description":"一覧・検索結果の ID（Wiki は path）。"},"session":{"type":"string","minLength":1,"description":"議案の国会回次。文字列で指定。"},"ministry":{"type":"string","minLength":1,"description":"審議会の府省 ID。例: moj, cao, mlit, mhlw。"},"municipality_code":{"type":"string","minLength":1,"description":"自治体コード。"},"revision_id":{"type":"string","minLength":1,"description":"法令の版 ID。省略時は配信中の current.json。"},"date":{"type":"string","minLength":1,"description":"官報発行日 YYYY-MM-DD。"}},"required":[],"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/lawrenceanum/"},{"name":"list_document_entries","kind":"answer","impl":"imperative","description":"文書内の条文・附則・別表、会議録の発言、パブコメ意見・添付、議案項目、通達、例規、審議会添付、統計値、官報記事を検索・絞り込み・並べ替え・ページングして取得する。各項目の entry_args を get_document_entry に渡せる。entry_index は元の区分内で固定。section は list_data_sources で確認。","annotations":{"readOnlyHint":true,"untrustedContentHint":true},"inputSchema":{"type":"object","properties":{"corpus":{"type":"string","enum":["laws","proceedings","pubcomment","gian","tsutatsu","municipalities","reiki","procurement","shingikai","budget","wiki","kanpo"],"default":"laws"},"id":{"type":"string","minLength":1,"description":"一覧・検索結果の ID（Wiki は path）。"},"session":{"type":"string","minLength":1,"description":"議案の国会回次。文字列で指定。"},"ministry":{"type":"string","minLength":1,"description":"審議会の府省 ID。例: moj, cao, mlit, mhlw。"},"municipality_code":{"type":"string","minLength":1,"description":"自治体コード。"},"revision_id":{"type":"string","minLength":1,"description":"法令の版 ID。省略時は配信中の current.json。"},"date":{"type":"string","minLength":1,"description":"官報発行日 YYYY-MM-DD。"},"section":{"type":"string","minLength":1,"description":"文書内の区分。list_data_sources の sections で確認。省略時は先頭の区分。"},"limit":{"type":"integer","minimum":1,"maximum":100,"default":20},"offset":{"type":"integer","minimum":0,"default":0},"query":{"type":"string","minLength":1,"description":"メタデータを部分一致で検索。空白区切りの語は AND 条件。本文の全文検索には search_legal_data を使う。"},"filters":{"type":"object","additionalProperties":{"type":"string"},"description":"一覧のフィールドに完全一致する条件。例: {\"category\":\"民事\"}, {\"ministry\":\"moj\"}, {\"session\":\"217\"}。"},"sort_by":{"type":"string","minLength":1,"description":"並べ替えるフィールド。ネストした値は dimensions.area のように指定。"},"sort_order":{"type":"string","enum":["asc","desc"],"default":"asc"}},"required":[],"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/lawrenceanum/"},{"name":"get_document_entry","kind":"answer","impl":"imperative","description":"文書内の1項目を取得する。検索結果・項目一覧の entry_args をそのまま渡せる。手動指定では entry_index と entry_id はいずれか一方が必須。ID重複時は entry_index を使う。","annotations":{"readOnlyHint":true,"untrustedContentHint":true},"inputSchema":{"type":"object","properties":{"corpus":{"type":"string","enum":["laws","proceedings","pubcomment","gian","tsutatsu","municipalities","reiki","procurement","shingikai","budget","wiki","kanpo"],"default":"laws"},"id":{"type":"string","minLength":1,"description":"一覧・検索結果の ID（Wiki は path）。"},"session":{"type":"string","minLength":1,"description":"議案の国会回次。文字列で指定。"},"ministry":{"type":"string","minLength":1,"description":"審議会の府省 ID。例: moj, cao, mlit, mhlw。"},"municipality_code":{"type":"string","minLength":1,"description":"自治体コード。"},"revision_id":{"type":"string","minLength":1,"description":"法令の版 ID。省略時は配信中の current.json。"},"date":{"type":"string","minLength":1,"description":"官報発行日 YYYY-MM-DD。"},"section":{"type":"string","minLength":1,"description":"文書内の区分。list_data_sources の sections で確認。省略時は先頭の区分。"},"entry_index":{"type":"integer","minimum":0},"entry_id":{"type":"string","minLength":1,"description":"条文・発言・添付 ID、通達番号、議案項目の key。"}},"required":[],"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/lawrenceanum/"},{"name":"get_law_article","kind":"answer","impl":"imperative","description":"法令の特定の条文（附則を含む）または別表を取得する。article_id は詳細または全文検索で取得。revision_id 省略時は current.json の版。","annotations":{"readOnlyHint":true,"untrustedContentHint":true},"inputSchema":{"type":"object","properties":{"law_id":{"type":"string","minLength":1,"description":"法令 ID。"},"article_id":{"type":"string","minLength":1,"description":"条文 ID。"},"revision_id":{"type":"string","minLength":1,"description":"過去版の revision_id。"}},"required":["law_id","article_id"],"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/lawrenceanum/"},{"name":"list_law_versions","kind":"answer","impl":"imperative","description":"法令の版一覧と本文の取得可否を返す。body_available / path を確認してから過去版を取得する。","annotations":{"readOnlyHint":true,"untrustedContentHint":true},"inputSchema":{"type":"object","properties":{"law_id":{"type":"string","minLength":1,"description":"法令 ID。"},"limit":{"type":"integer","minimum":1,"maximum":100,"default":20},"offset":{"type":"integer","minimum":0,"default":0}},"required":["law_id"],"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/lawrenceanum/"},{"name":"get_law_timeline","kind":"answer","impl":"imperative","description":"法令の制定・改正・廃止の履歴と官報リンクを取得する。","annotations":{"readOnlyHint":true,"untrustedContentHint":true},"inputSchema":{"type":"object","properties":{"law_id":{"type":"string","minLength":1,"description":"法令 ID。"}},"required":["law_id"],"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/lawrenceanum/"},{"name":"list_law_diffs","kind":"answer","impl":"imperative","description":"配信済みの法令の版間差分と変更件数を一覧取得する。from_revision_id / to_revision_id を get_law_diff に渡す。","annotations":{"readOnlyHint":true,"untrustedContentHint":true},"inputSchema":{"type":"object","properties":{"law_id":{"type":"string","minLength":1,"description":"法令 ID。"},"limit":{"type":"integer","minimum":1,"maximum":100,"default":20},"offset":{"type":"integer","minimum":0,"default":0},"query":{"type":"string","minLength":1,"description":"メタデータを部分一致で検索。空白区切りの語は AND 条件。本文の全文検索には search_legal_data を使う。"},"filters":{"type":"object","additionalProperties":{"type":"string"},"description":"一覧のフィールドに完全一致する条件。例: {\"category\":\"民事\"}, {\"ministry\":\"moj\"}, {\"session\":\"217\"}。"},"sort_by":{"type":"string","minLength":1,"description":"並べ替えるフィールド。ネストした値は dimensions.area のように指定。"},"sort_order":{"type":"string","enum":["asc","desc"],"default":"asc"}},"required":["law_id"],"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/lawrenceanum/"},{"name":"get_law_diff","kind":"answer","impl":"imperative","description":"配信済みの版間差分を条文単位で取得する。query / filters で変更箇所を絞り込める。任意の版ペアの差分生成は行わない。","annotations":{"readOnlyHint":true,"untrustedContentHint":true},"inputSchema":{"type":"object","properties":{"law_id":{"type":"string","minLength":1,"description":"法令 ID。"},"from_revision_id":{"type":"string","minLength":1,"description":"変更前の版 ID。"},"to_revision_id":{"type":"string","minLength":1,"description":"変更後の版 ID。"},"limit":{"type":"integer","minimum":1,"maximum":100,"default":20},"offset":{"type":"integer","minimum":0,"default":0},"query":{"type":"string","minLength":1,"description":"メタデータを部分一致で検索。空白区切りの語は AND 条件。本文の全文検索には search_legal_data を使う。"},"filters":{"type":"object","additionalProperties":{"type":"string"},"description":"一覧のフィールドに完全一致する条件。例: {\"category\":\"民事\"}, {\"ministry\":\"moj\"}, {\"session\":\"217\"}。"},"sort_by":{"type":"string","minLength":1,"description":"並べ替えるフィールド。ネストした値は dimensions.area のように指定。"},"sort_order":{"type":"string","enum":["asc","desc"],"default":"asc"}},"required":["law_id","from_revision_id","to_revision_id"],"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/lawrenceanum/"},{"name":"get_law_snapshot","kind":"answer","impl":"imperative","description":"公開済みの指定日時点の法令の版を解決する。include_body=true なら解決された過去版本文も取得。指定日JSONが未配信の場合はエラー。include_unenforced など配信データの条件を返す。","annotations":{"readOnlyHint":true,"untrustedContentHint":true},"inputSchema":{"type":"object","properties":{"law_id":{"type":"string","minLength":1,"description":"法令 ID。"},"date":{"type":"string","minLength":1,"description":"基準日 YYYY-MM-DD。"},"include_body":{"type":"boolean","default":false}},"required":["law_id","date"],"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/lawrenceanum/"},{"name":"get_related_documents","kind":"answer","impl":"imperative","description":"法令に関連する国会会議録・パブコメ・通達、または会議録で言及された法令を取得する。関連度・照合理由と詳細取得用 document_args を返す。","annotations":{"readOnlyHint":true,"untrustedContentHint":true},"inputSchema":{"type":"object","properties":{"corpus":{"type":"string","enum":["laws","proceedings"],"default":"laws"},"id":{"type":"string","minLength":1,"description":"起点の法令 ID または会議 ID。"},"target":{"type":"string","enum":["laws","proceedings","pubcomment","tsutatsu"]},"limit":{"type":"integer","minimum":1,"maximum":100,"default":20},"offset":{"type":"integer","minimum":0,"default":0},"query":{"type":"string","minLength":1,"description":"メタデータを部分一致で検索。空白区切りの語は AND 条件。本文の全文検索には search_legal_data を使う。"},"filters":{"type":"object","additionalProperties":{"type":"string"},"description":"一覧のフィールドに完全一致する条件。例: {\"category\":\"民事\"}, {\"ministry\":\"moj\"}, {\"session\":\"217\"}。"},"sort_by":{"type":"string","minLength":1,"description":"並べ替えるフィールド。ネストした値は dimensions.area のように指定。"},"sort_order":{"type":"string","enum":["asc","desc"],"default":"asc"}},"required":["id","target"],"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/lawrenceanum/"},{"name":"get_wiki_links","kind":"answer","impl":"imperative","description":"Wiki ページの関連ページを無向グラフから取得する。リンク方向の区別は配信データに存在しない。各リンクに接続先の題名・種別と詳細取得用 document_args を付ける。","annotations":{"readOnlyHint":true,"untrustedContentHint":true},"inputSchema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"Wiki ページの path。"},"limit":{"type":"integer","minimum":1,"maximum":100,"default":20},"offset":{"type":"integer","minimum":0,"default":0},"query":{"type":"string","minLength":1,"description":"メタデータを部分一致で検索。空白区切りの語は AND 条件。本文の全文検索には search_legal_data を使う。"},"filters":{"type":"object","additionalProperties":{"type":"string"},"description":"一覧のフィールドに完全一致する条件。例: {\"category\":\"民事\"}, {\"ministry\":\"moj\"}, {\"session\":\"217\"}。"},"sort_by":{"type":"string","minLength":1,"description":"並べ替えるフィールド。ネストした値は dimensions.area のように指定。"},"sort_order":{"type":"string","enum":["asc","desc"],"default":"asc"}},"required":["id"],"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/lawrenceanum/"},{"name":"get_law_updates","kind":"answer","impl":"imperative","description":"法令の追加・変更・削除を日付別に取得する。date 省略時は公開データの最新更新日。","annotations":{"readOnlyHint":true,"untrustedContentHint":true},"inputSchema":{"type":"object","properties":{"date":{"type":"string","minLength":1,"description":"更新日 YYYY-MM-DD。省略すると latest。"},"limit":{"type":"integer","minimum":1,"maximum":100,"default":20},"offset":{"type":"integer","minimum":0,"default":0},"query":{"type":"string","minLength":1,"description":"メタデータを部分一致で検索。空白区切りの語は AND 条件。本文の全文検索には search_legal_data を使う。"},"filters":{"type":"object","additionalProperties":{"type":"string"},"description":"一覧のフィールドに完全一致する条件。例: {\"category\":\"民事\"}, {\"ministry\":\"moj\"}, {\"session\":\"217\"}。"},"sort_by":{"type":"string","minLength":1,"description":"並べ替えるフィールド。ネストした値は dimensions.area のように指定。"},"sort_order":{"type":"string","enum":["asc","desc"],"default":"asc"}},"required":[],"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/lawrenceanum/"},{"name":"get_law_references","kind":"answer","impl":"imperative","description":"法令・条文間の引用リンクを取得する。direction は outgoing（参照先）または incoming（被参照）。article_id 省略時は法令全体。","annotations":{"readOnlyHint":true,"untrustedContentHint":true},"inputSchema":{"type":"object","properties":{"law_id":{"type":"string","minLength":1,"description":"法令 ID。"},"article_id":{"type":"string","minLength":1,"description":"条文 ID。"},"direction":{"type":"string","enum":["outgoing","incoming"],"default":"outgoing"},"limit":{"type":"integer","minimum":1,"maximum":100,"default":20},"offset":{"type":"integer","minimum":0,"default":0}},"required":["law_id"],"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/lawrenceanum/"},{"name":"get_recent_changes","kind":"answer","impl":"imperative","description":"法令・議案・パブコメ・官報・会議録・審議会・調達の新着フィードを取得する。対応する項目に本文取得用 document_args を返す。官報は発行日単位。","annotations":{"readOnlyHint":true,"untrustedContentHint":true},"inputSchema":{"type":"object","properties":{"limit":{"type":"integer","minimum":1,"maximum":100,"default":20},"offset":{"type":"integer","minimum":0,"default":0},"query":{"type":"string","minLength":1,"description":"メタデータを部分一致で検索。空白区切りの語は AND 条件。本文の全文検索には search_legal_data を使う。"},"filters":{"type":"object","additionalProperties":{"type":"string"},"description":"一覧のフィールドに完全一致する条件。例: {\"category\":\"民事\"}, {\"ministry\":\"moj\"}, {\"session\":\"217\"}。"},"sort_by":{"type":"string","minLength":1,"description":"並べ替えるフィールド。ネストした値は dimensions.area のように指定。"},"sort_order":{"type":"string","enum":["asc","desc"],"default":"asc"}},"required":[],"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/lawrenceanum/"},{"name":"get_upcoming_enforcements","kind":"answer","impl":"imperative","description":"公開データの今後の施行予定を取得する。本文取得用 document_args は施行対象の revision_id があればその版を指定する。","annotations":{"readOnlyHint":true,"untrustedContentHint":true},"inputSchema":{"type":"object","properties":{"limit":{"type":"integer","minimum":1,"maximum":100,"default":20},"offset":{"type":"integer","minimum":0,"default":0},"query":{"type":"string","minLength":1,"description":"メタデータを部分一致で検索。空白区切りの語は AND 条件。本文の全文検索には search_legal_data を使う。"},"filters":{"type":"object","additionalProperties":{"type":"string"},"description":"一覧のフィールドに完全一致する条件。例: {\"category\":\"民事\"}, {\"ministry\":\"moj\"}, {\"session\":\"217\"}。"},"sort_by":{"type":"string","minLength":1,"description":"並べ替えるフィールド。ネストした値は dimensions.area のように指定。"},"sort_order":{"type":"string","enum":["asc","desc"],"default":"asc"}},"required":[],"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/lawrenceanum/"},{"name":"get_data_status","kind":"answer","impl":"imperative","description":"公開データの更新日時・収集状況・各コーパスの件数とエラーを取得する。","annotations":{"readOnlyHint":true,"untrustedContentHint":true},"inputSchema":{"type":"object","properties":{},"required":[],"additionalProperties":false},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/lawrenceanum/"}],"apiSurface":"spec","category":"Productivity & Business","toolCount":19}}