Calculate Zi Wei Dou Shu natal chart
calculate_ziwei_chartCompute a complete Zi Wei Dou Shu (紫微斗數) natal chart from birth date, birth time or shichen index, and gender. Returns Ming Palace (命宮), Body Palace (身宮), Five Elements Bureau (五行局), Soul/Body Masters, BaZi pillars, Ming Palace San Fang Si Zheng (三方四正), all 12 palaces with stars/brightness/Four Transformations (四化), and all 12 Decadal Luck periods (十年大限).
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_ziwei_chart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cityId | No | Optional birthplace city slug (e.g. 'taipei', 'hongkong', 'beijing', 'shanghai', 'tokyo', 'seoul', 'singapore', 'newyork', 'losangeles', 'london') to apply historical timezone/DST and longitude true-solar-time adjustment when birthTime is provided. | |
| gender | Yes | Birth gender ('male' or 'female'), used to determine clockwise/counterclockwise Decadal Luck (大限) order. | |
| calendar | No | Optional calendar system for birthDate: 'solar' (Gregorian, default) or 'lunar' (Chinese lunar calendar). | solar |
| birthDate | Yes | Birth date in YYYY-MM-DD format (1900-01-01 to 2100-12-31), e.g. '1992-08-15'. Interpreted as Gregorian solar date unless calendar is 'lunar'. | |
| birthTime | No | 24-hour local birth time in HH:mm format (00:00 to 23:59), e.g. '14:30'. Provide either birthTime or timeIndex. | |
| lunarLeap | No | Optional leap-month flag when calendar is 'lunar'. Must be false or omitted when calendar is 'solar'. | |
| timeIndex | No | Traditional Chinese shichen (時辰) index 0-12 (0=早子時 00:00-00:59, 1=丑時, 2=寅時, 3=卯時, 4=辰時, 5=巳時, 6=午時, 7=未時, 8=申時, 9=酉時, 10=戌時, 11=亥時, 12=晚子時 23:00-23:59). Provide either timeIndex or birthTime. |