OpenFate Bazi MCP
v0.5.0OpenFate Bazi MCP with True Solar Time, Four Pillars, Da Yun, and branch interactions.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
calculate_bazi_chart Calculate Bazi Chart
Calculate a deterministic OpenFate Bazi/Four Pillars chart with True Solar Time correction, Day Master, DAYUN_SECOND_V2 onset receipts, Da Yun cycles, and branch interactions. Pass an exact birth time plus timezone or timezoneId for a calculated V2 onset; otherwise inspect the explicit unavailable/fallback receipt.
| Parameter | Type | Description |
|---|---|---|
day * | integer | Birth day, 1-31. |
gender * | string | Birth gender used for Da Yun direction. |
month * | integer | Birth month, 1-12. |
year * | integer | Birth year. Use the lunar year when calendarType is lunar. |
calendarType | string | Input calendar type. |
dayBoundaryMode | string | Day-change rule. ZI_HOUR_23 means 23:00 starts the next day pillar. |
dstOffset | number | Daylight saving offset in hours to remove from civil clock time. Use 1 for one-hour DST. |
enableTrueSolarTime | boolean | Apply true solar time when longitude and timezone data are available. |
hour | integer | Birth hour in local civil time, 0-23. Omit when birth time is unknown. |
isLeapMonth | boolean | Whether the lunar input month is a leap month. Used only when calendarType is lunar. |
longitude | number | Birthplace longitude in decimal degrees. Enables true solar time correction. |
minute | integer | Birth minute in local civil time. |
second | integer | Birth second in local civil time. |
timezone | number | UTC offset in hours for the birth clock time, such as 8 for China or -5 for US Eastern Standard Time. |
timezoneId | string | Optional IANA timezone ID, such as Asia/Shanghai or America/New_York. |
read_bazi_relationship Read a Bazi Relationship Chapter
Produce a deterministic Traditional Chinese relationship chapter with the chart, rule ID, rule version and evidence pointers. Uses only natal positions. An unknown birth hour returns an explicitly unavailable chapter.
| Parameter | Type | Description |
|---|---|---|
day * | integer | Birth day, 1-31. |
gender * | string | Birth gender used for Da Yun direction. |
month * | integer | Birth month, 1-12. |
year * | integer | Birth year. Use the lunar year when calendarType is lunar. |
calendarType | string | Input calendar type. |
dayBoundaryMode | string | Day-change rule. ZI_HOUR_23 means 23:00 starts the next day pillar. |
dstOffset | number | Daylight saving offset in hours to remove from civil clock time. Use 1 for one-hour DST. |
enableTrueSolarTime | boolean | Apply true solar time when longitude and timezone data are available. |
hour | integer | Birth hour in local civil time, 0-23. Omit when birth time is unknown. |
isLeapMonth | boolean | Whether the lunar input month is a leap month. Used only when calendarType is lunar. |
longitude | number | Birthplace longitude in decimal degrees. Enables true solar time correction. |
minute | integer | Birth minute in local civil time. |
second | integer | Birth second in local civil time. |
timezone | number | UTC offset in hours for the birth clock time, such as 8 for China or -5 for US Eastern Standard Time. |
timezoneId | string | Optional IANA timezone ID, such as Asia/Shanghai or America/New_York. |
read_bazi_corpus_chapter Read a Published Corpus Chapter
Read one of the 13 Traditional Chinese chapters for a public sample ID in corpus v2.1.0. Use two calls to compare hours. Chapter parts cite paths relative to data.chart.
| Parameter | Type | Description |
|---|---|---|
sampleId * | string | Canonical sample ID, e.g. 1991-10-18T08:30:00+08:00/female. Even hours at :30, UTC+8, from 1900-01-01 to 2026-11-22. |
topic * | string | Chapter key, e.g. work, money or love. |
detect_bazi_interactions Detect Bazi Interactions
Detect raw Earthly Branch relationship occurrences for a natal chart and optional annual and Da Yun branches. Preserves every matching pillar position, including repeated branches. Covers clashes, six-combinations, the eight central-branch half-trines (COMBINATION_HALF), full trines, directionals, punishments, destructions, and harms. Results establish relationship presence, not weights, cancellation, or automatic transformation; targetElement is an affinity, not transformed energy.
| Parameter | Type | Description |
|---|---|---|
dayBranch * | string | Natal day branch. |
monthBranch * | string | Natal month branch. |
yearBranch * | string | Natal year branch. |
annualBranch | string | Optional annual or target branch. Preserved as the annual pillar role, independently of repeated natal branches. |
dayunBranch | string | Optional Da Yun branch. Preserved as the dayun pillar role, independently of the annual and natal branches. |
hourBranch | string | Natal hour branch. Omit when birth time is unknown. |
calculate_true_solar_time Calculate True Solar Time
Calculate OpenFate True Solar Time from civil birth time, longitude, timezone, and optional DST offset. Use this when explaining why the hour pillar may differ from ordinary clock-time tools.
| Parameter | Type | Description |
|---|---|---|
day * | integer | |
hour * | integer | |
longitude * | number | Birthplace longitude in decimal degrees. |
month * | integer | |
year * | integer | |
dstOffset | number | Daylight saving offset in hours. |
minute | integer | |
timezone | number | UTC offset in hours for the clock time. |
timezoneId | string | IANA timezone ID, such as Asia/Shanghai. |
reverse_bazi_to_solar_times Reverse Bazi To Solar Times
Find possible Gregorian datetimes that produce a given four-pillar Bazi string. This is useful when a user only has a Bazi chart or screenshot. This lookup uses clock-time pillars without location-based true solar correction.
| Parameter | Type | Description |
|---|---|---|
bazi * | string | Four pillars separated by spaces, for example: 戊寅 己未 己卯 辛未. |
dayBoundaryMode | string | Day-change rule used during lookup. |
endYear | integer | End year for brute-force lookup. Defaults to the current year. |
limit | integer | Maximum number of matching datetimes to return. |
startYear | integer | Start year for brute-force lookup. |
get_openfate_bazi_policy Get OpenFate Bazi Policy
Return OpenFate calculation policy and LLM guidance for Bazi chart calls.
get_openfate_bazi_resources Get OpenFate Bazi Resources
Return canonical OpenFate URLs for charting, readings, compatibility, wealth, true solar time, and AI crawler metadata.