Calculate Four Pillars of Destiny (四柱推命 / BaZi) chart
calculate_four_pillarsCompute a Japanese Four Pillars of Destiny (Shichu Suimei / BaZi) natal chart from Gregorian birth date, gender, and optional birth time and birthplace coordinates. Returns Year/Month/Day/Hour pillars, Heavenly Stems & Earthly Branches (天干・地支), Ten Gods (通変星), Twelve Life Stages (十二運星), Hidden Stems (蔵干), Five Elements distribution (五行), Tenchusatsu void branches (空亡・天中殺), Luck Pillars (大運), Chart Strength (旺衰), Inner Structure (格局), Pillar Relations, and Special Stars (神殺).
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": {
"birthDate": "<birthDate>",
"gender": "<gender>"
},
"name": "calculate_four_pillars"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gender | Yes | Gender ('male' or 'female'), required to determine forward/reverse Luck Pillar (大運) direction. | |
| timezone | No | Optional IANA timezone for true solar time correction (must be provided together with 'longitude'), e.g. 'Asia/Tokyo' or 'America/New_York'. Defaults to Japan Standard Time (Asia/Tokyo, 135°E) when both are omitted. | |
| birthDate | Yes | Gregorian birth date in YYYY-MM-DD format (1900-01-01 to 2100-12-31), e.g. '1990-05-15'. | |
| birthTime | No | Optional 24-hour local birth time in HH:mm format, e.g. '14:30'. Omit if unknown to compute the Three Pillars (三柱). | |
| longitude | No | Optional birthplace longitude in decimal degrees (-180 to 180, east positive, e.g. 139.6917 for Tokyo). Must be provided together with 'timezone' and 'birthTime'. | |
| lateRatRule | No | Rule for 23:00-23:59 births: 'split' (夜子時, default: same-day Day Pillar, next-day Hour Stem), 'same' (same day for both), or 'nextDay' (next day for both). | split |
| equationOfTime | No | Whether to include the Equation of Time in true solar time correction when birthplace timezone/longitude are supplied. Defaults to true. |