和暦と西暦の変換(令和・平成・昭和)
jp_era_convertConvert between Gregorian dates and Japanese era dates (和暦: 昭和 Showa, 平成 Heisei, 令和 Reiwa), handling the exact switch days (昭和 began 1926-12-25, 平成 began 1989-01-08, 令和 began 2019-05-01) and 元年 (first year). Use it when filling Japanese forms, contracts or documents that require 和暦, or when reading a 和暦 date. Modes: {to:"wareki", date:"YYYY-MM-DD"}; {to:"seireki", era, year, month, day}; {to:"wareki", year_only} (lists every era in that year). A 平成 date after 2019-04-30 (e.g. 平成31年5月1日) is read as that day and the correct 令和 form is returned with a note; a Showa date from 1989-01-08 on (e.g. 昭和64年1月8日, Showa 64-01-08), dates that do not exist, and dates before 1926-12-25 return an error.
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": {
"to": "<to>"
},
"name": "jp_era_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | wareki=西暦から和暦へ、seireki=和暦から西暦へ | |
| day | No | ||
| era | No | to が seireki の時の元号 | |
| date | No | to が wareki の時の西暦の日(YYYY-MM-DD) | |
| year | No | 元号の年(元年は 1) | |
| month | No | ||
| year_only | No | to が wareki で、年だけ変える時の西暦の年 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | Yes | この答えに効いた決まり・前提(日本語) | |
| result | Yes | ||
| doc_url | Yes | 人が読む説明のページ(式・出所・例)。利用者に次に読んでもらう先 | |
| sources | Yes | ||
| law_as_of | No | 出所が書く法令の基準日(例:2026-04-01=令和8年4月1日現在法令等) | |
| checked_on | Yes | Cyclix Agents が出所を最後に確かめた日 | |
| disclaimer | Yes |