Skip to main content
Glama
White Whale Bazi & Liuyao Engine

White Whale Bazi & Liuyao Engine

calculate_true_solar_bazi

Calculates minute-precision Four Pillars (Bazi) charts using True Solar Time, longitude, Equation of Time, and China DST corrections; returns calibrated pillar diffs and classical canon matches.

Instructions

Calculate deterministic True Solar Time (Equation of Time + longitude + 1986-1991 PRC DST rollback), minute-precision 24 Solar Terms Four Pillars (Bazi) chart, uncalibrated vs calibrated pillar diff, matched Di Tian Sui (滴天髓) & Qiong Tong Bao Jian (穷通宝鉴) public-domain canons, and anti-hedging output constraints.

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>",
      "birth_time": "<birth_time>"
    },
    "name": "calculate_true_solar_bazi"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNoBirth city name in Chinese or English (360+ Chinese cities & 35+ global cities built-in).北京
genderNoGender ('male' for 乾造, 'female' for 坤造), used for clockwise/counter-clockwise 10-year luck cycles.male
zi_modeNoZi-hour day rollover rule: '23:00' advances day pillar at 23:00; '00:00' keeps current day pillar during 23:00-23:59 (late Zi).23:00
latitudeNoOptional custom latitude (-90..90).
longitudeNoOptional custom longitude (-180..180, East positive) overriding city lookup.
birth_dateYesGregorian birth date in YYYY-MM-DD format (e.g. '1988-07-15').
birth_timeYesWall-clock birth time in HH:MM or HH:MM:SS format (e.g. '00:30'). Unknown birth time is rejected.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden, and it does disclose meaningful behavioral traits: determinism, minute precision, the 1986-1991 PRC DST rollback, and 'anti-hedging output constraints' that hint at how results are framed. It stops short of describing the output structure or error behavior, keeping it from a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single run-on sentence with heavy nested parentheticals and acronym stacking, which hurts front-loading and readability. Most tokens relate to real functionality, but the density and lack of sentence breaks make it harder to parse than necessary.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex 7-parameter tool with no output schema and no annotations, the description covers the computational scope well but leaves gaps: it never explains the returned output structure, error cases, or how the canonical texts are surfaced. It is adequate but not complete for the tool's complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents the seven parameters (city, gender, zi_mode, latitude, longitude, birth_date, birth_time) thoroughly. The description adds no parameter-level guidance beyond referencing EoT/longitude mechanics, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb (Calculate) and a precise, richly-scoped resource: True Solar Time computation, a 24 Solar Terms Four Pillars (Bazi) chart, calibrated-vs-uncalibrated diff, and canon matching. It is very clear what the tool does. It does not differentiate itself from the sibling cast_liuyao_hexagram, so it falls short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use guidance, no conditions for selecting this tool over the sibling, and no stated prerequisites or exclusions. The domain is inferable but the description gives no routing signals, so an agent is left to infer everything about applicability.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools