Calculate BaZi chart
calculate_bazi_chartCalculates a BaZi (Four Pillars of Destiny, 八字, 四柱推命, Saju) chart from a birth date, time and place with the InsightBaZi engine, and shows it as a chart card. Use it when the user asks for a BaZi chart, or for their Four Pillars, Day Master, Ten Gods, element balance or 10-year luck pillars to be worked out from a birth date. It applies true solar time from the birthplace longitude and historical daylight-saving rules, changes the Day Pillar at 23:00, the year at Lichun and months at solar terms. The chart card is the user-facing result. After a chart-only request, briefly confirm it is ready; do not duplicate its chart, tables or element breakdown. Interpret the structured result only if requested, or provide a text chart if explicitly requested.
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": {
"birth_date": "<birth_date>",
"timezone": "<timezone>"
},
"name": "calculate_bazi_chart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gender | No | Needed only for the 10-year luck pillars, whose direction depends on it. | |
| language | No | Language for chart labels. Use the closest match to the user's language; use en when none matches. | en |
| timezone | Yes | IANA time zone of the birthplace, for example Asia/Bangkok or America/New_York. | |
| longitude | No | Longitude of the birth city in decimal degrees, east positive, used only for the true-solar-time correction. Give the city's longitude when the birth city is known; never the user's current location. | |
| birth_date | Yes | Birth date in the Gregorian calendar, YYYY-MM-DD. | |
| birth_time | No | Clock time on the birth record, 24-hour HH:MM, exactly as recorded (do not adjust for daylight saving). Omit when the user does not know it. | |
| birthplace | No | Birth city as the user gave it, shown on the card. This is the place of birth, never the user's current location. |