Skip to main content
Glama
OpenFate Bazi MCP

OpenFate Bazi MCP

Official
by openfate-ai

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Use these tools for deterministic Bazi/Four Pillars calculations. Do not manually calculate pillars or Da Yun onset with the language model. Ask for longitude and timezone data when precise true solar time or DAYUN_SECOND_V2 timing matters, and check the Da Yun timing receipt before presenting an exact onset.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
calculate_bazi_chartA

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.

read_bazi_relationshipA

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.

read_bazi_corpus_chapterB

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.

detect_bazi_interactionsA

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.

calculate_true_solar_timeB

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.

reverse_bazi_to_solar_timesA

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.

get_openfate_bazi_policyA

Return OpenFate calculation policy and LLM guidance for Bazi chart calls.

get_openfate_bazi_resourcesA

Return canonical OpenFate URLs for charting, readings, compatibility, wealth, true solar time, and AI crawler metadata.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.9/5.0

Scored across 8 tools

Disambiguation4/5

Most tools have clearly distinct purposes: chart calculation, true solar time, branch interactions, reverse lookup, and metadata lookups do not overlap. The main risk is between read_bazi_relationship and read_bazi_corpus_chapter, since both 'read' interpretive chapters and an agent may not immediately know whether relationship content comes from the dedicated tool or the corpus. get_openfate_bazi_policy versus get_openfate_bazi_resources is a smaller potential confusion point, but descriptions distinguish policy guidance from canonical URLs.

Naming Consistency5/5

All eight names use snake_case with a leading verb (calculate_, read_, detect_, get_, reverse_) followed by a domain noun. The bazi/true_solar_time qualifiers are used predictably to scope names, and even the one asymmetric name, reverse_bazi_to_solar_times, fits the verb-first pattern.

Tool Count5/5

Eight tools is well within the recommended range and each one maps to a distinct capability: core calculation, time correction, interaction detection, reverse lookup, chapter reading, and two metadata helpers. Nothing appears redundant or merely padding the surface.

Completeness4/5

Core charting lifecycle is well covered: calculate, correct time, detect interactions, reverse-solve pillars, plus interpretive reading and policy/resource lookups. Gaps exist in the reading direction: compatibility/synastry and wealth readings appear only as URLs returned by get_openfate_bazi_resources, with no callable tool for them, and there is no explicit annual/transit reading tool beyond the Da Yun data in the chart.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues