Convert lunar and solar dates
convert_lunar_solarConverts a date between the Gregorian calendar and the Vietnamese lunar calendar (with leap months, 1900–2100), and gives the can chi of the day, month and year plus the solar term.
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>",
"date": "<date>"
},
"name": "convert_lunar_solar"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | YYYY-MM-DD; for lunar_to_solar this is the lunar year, month and day | |
| direction | Yes | ||
| leap_month | No | lunar_to_solar only: true if the lunar month is a leap month |