Skip to main content
Glama

cast_bazi_chart

Generate deterministic BaZi (Four Pillars) charts with True Solar Time correction, shichen boundary checks, ShenSha lookups, branch interactions, and DaYun cycles for birth-chart analysis.

Instructions

Cast a deterministic BaZi (Four Pillars of Destiny / 八字排盘) chart with True Solar Time correction, cross-shichen boundary detection, core ShenSha lookups, branch interactions (presence-only), DaYun cycles, and a stable fact_registry + SHA-256 hash.

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": {
      "date": "<date>",
      "gender": "<gender>"
    },
    "name": "cast_bazi_chart"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNoBirth city name (e.g. 北京, 成都, 乌鲁木齐, Taipei, Singapore, New York)
dateYesBirth date in YYYY-MM-DD format
timeNoBirth local clock time in HH:MM (24-hour)12:00
genderYesGender for DaYun direction
calendarNoCalendar systemsolar
timezoneNoUTC offset in hours (default 8 for Asia/Shanghai)
longitudeNoBirth longitude in degrees (-180..180); overrides city lookup
day_boundaryNoDay-pillar boundary convention23:00
is_leap_monthNoWhether lunar month is a leap month
true_solar_timeNoApply True Solar Time correction

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations and no output schema, the description carries the full burden and does disclose useful traits: determinism, True Solar Time correction, shichen boundary handling, 'presence-only' branch interactions (a real limitation), and a stable fact_registry + SHA-256 hash implying reproducible output. However, it never states side-effect profile, what the returned chart actually contains, or how invalid dates/cities are handled.

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

Conciseness4/5

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

A single front-loaded sentence with a clear verb opening and no filler; every clause names a capability. It is dense with domain jargon in a comma list, which slightly hurts scannability but is not padding.

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 ten-parameter tool with no output schema, the description should signal what a caller receives; 'fact_registry + SHA-256 hash' hints at it but the chart payload (pillars, DaYun, ShenSha) is only named as inputs-features. Combined with zero usage routing and no error behavior, it is adequate but leaves real gaps.

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 all ten parameters are already documented in the schema, establishing a baseline of 3. The description adds only indirect meaning, mapping 'True Solar Time correction' to true_solar_time and 'cross-shichen boundary detection' to day_boundary, without explaining defaults or interactions (e.g. longitude overriding city).

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?

States a specific verb ('Cast') plus a precise resource ('BaZi (Four Pillars of Destiny / 八字排盘) chart'), and the enumerated features make the deliverable concrete. It is distinguishable from cast_ziwei_chart by naming the astrological system explicitly, though it never names the sibling.

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?

The description contains no when-to-use or when-not-to-use guidance and never points to an alternative such as cast_ziwei_chart or cross_verify_charts. An agent must infer from the name alone that this is the entry point for BaZi chart generation.

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