農曆公曆互轉
calendar_convertConvert between lunar and solar dates with leap month support, returning authoritative calendar data, Ganzhi year/month/day, and zodiac signs. Use it to avoid AI's incorrect leap month guesses.
Instructions
農曆與公曆日期互轉(含閏月處理、干支年月日、生肖)。
農曆閏月分配無簡單規律(哪年閏幾月由天文計算決定),AI 經常猜錯。 本工具返回權威曆表數據。
支持兩個方向:
solar → lunar:輸入公曆日期,返回農曆日期(含是否閏月)
lunar → solar:輸入農曆日期(isLeapMonth 標記閏月),返回公曆日期
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": {
"direction": "<direction>",
"year": "<year>",
"month": "<month>",
"day": "<day>"
},
"name": "calendar_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| day | Yes | 日期 | |
| year | Yes | 年份 | |
| month | Yes | 月份(1-12) | |
| direction | Yes | 轉換方向 | |
| isLeapMonth | No | 農曆輸入時是否為閏月(lunar2solar 方向) |