Skip to main content
Glama

calculate_bazi_chart

Calculate a deterministic Chinese BaZi Four Pillars birth chart with exact 24 Solar Terms, optional True Solar Time, and Zi-Hour rules for accurate destiny analysis.

Instructions

Calculate a deterministic Chinese BaZi (Four Pillars of Destiny) birth chart with exact astronomical 24 Solar Terms, optional True Solar Time, Early/Late Zi-Hour switch, Hidden Stems, Ten Gods, NaYin, and 8 Decadal Luck Pillars.

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

Input Schema

NameRequiredDescriptionDefault
genderNoGender for Decadal Luck directionfemale
birthDateYesGregorian birth date YYYY-MM-DD
birthTimeNoLocal 24h time HH:MM12:00
longitudeNoOptional birth city longitude (e.g. 121.56 for Taipei, -74.0 for NYC) for True Solar Time
ziHourModeNoZi-Hour (23:00-00:00) day boundary schoolearly_split
tzOffsetHoursNoOptional standard timezone offset in hours (e.g. 8, -5) required when longitude is set

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/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 the useful trait that the calculation is 'deterministic' and is anchored to exact astronomical Solar Terms rather than approximate tables. However, it says nothing about side effects (or lack thereof), whether results are cached, or what the response contains, so for an unannotated computational tool this is only partially sufficient.

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 that puts the verb and resource first and then grades the optional features. It is dense but every clause names a real computed artifact; the only mild cost is that the feature list runs long without paragraph breaks.

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 six-parameter tool with no annotations and no output schema, the description should describe the shape of the returned chart (how pillars, hidden stems, and luck pillars are organized). It names the artifacts but not their return structure, leaving the agent without a model of the output.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds domain meaning on top: it ties longitude to 'True Solar Time' and ziHourMode to the 'Early/Late Zi-Hour' day-boundary school, and flags both as optional switches. That clarifies why those parameters exist, though exact formats and the gender-driven luck direction remain in the schema.

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

Purpose5/5

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

States a specific verb ('Calculate') and a specific resource ('Chinese BaZi (Four Pillars of Destiny) birth chart'), then enumerates the computed artifacts (24 Solar Terms, Hidden Stems, Ten Gods, NaYin, Decadal Luck Pillars). This clearly distinguishes it from siblings like calculate_bazi_compatibility (two-person comparison) and calculate_ziwei_astrolabe (a different system).

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 explains what is computed but never says when to pick this tool over the sibling alternatives (compatibility, ziwei astrolabe) or when not to. It gives no prerequisites, no input requirements beyond the schema, and no exclusions; the agent must infer usage purely from the name and feature list.

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