bazi_chart
Compute a BaZi four-pillars chart from birth data (Gregorian). Returns pillars, Day Master, Ten Gods, hidden stems, element tally, luck pillars and the conventions used (true solar time, Zi-hour rule, solar-term boundaries). The year pillar changes at 立春 and the month pillar at each 节 by comparing the birth instant (converted to UTC+8) with the 节 instant, so a birth abroad switches at the same moment as in China; day and hour pillars use apparent solar time at the birthplace. When the birth is within two hours of a 节, chart.jieBoundary names it and gives the year/month pillars on the other side. Free.
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": {
"year": "<year>",
"month": "<month>",
"day": "<day>"
},
"name": "bazi_chart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tz | No | IANA time zone of the birthplace, e.g. Asia/Shanghai, America/Los_Angeles. Preferred over tz_hours: historical summer time is applied (the mainland observed it 1986–1991, Hong Kong and Taiwan in many earlier years), so a clock time read off a birth certificate in summer time gives the right hour pillar | |
| day | Yes | ||
| hour | No | 0-23 local clock hour; omit if unknown | |
| year | Yes | ||
| month | Yes | ||
| gender | No | ||
| minute | No | ||
| zi_rule | No | 子时 convention: 1 = a birth after 23:00 counts as the next day; 2 (default) = same day | |
| tz_hours | No | fixed UTC offset of the birthplace in hours, e.g. 8 (no summer time); used only when tz is absent | |
| longitude | No | birthplace longitude in degrees east, e.g. 103.82 for Singapore |