Skip to main content
Glama

calculate_bazi_chart

Read-onlyIdempotent

Compute exact BaZi Four Pillars, Day Master, and Five Elements from birth data using astronomical solar terms, historical DST, and optional True Solar Time calibration instead of guessing.

Instructions

Deterministically compute exact BaZi (Four Pillars of Destiny / 四柱推命 / 八字) stems, branches, Day Master, and Five Elements using astronomical 24 solar-term transitions, IANA historical DST rollback, and optional birthplace True Solar Time calibration. Always use this instead of guessing 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": {
      "birthDateTime": "<birthDateTime>"
    },
    "name": "calculate_bazi_chart"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNoOptional birthplace city name in English, Japanese, or Chinese (e.g., "Tokyo", "東京", "Taipei", "台北市", "Osaka", "New York").
timeZoneNoOptional explicit IANA time zone (e.g., "Asia/Tokyo", "Asia/Taipei"). Overrides city lookup.
longitudeNoOptional birthplace longitude in decimal degrees (East positive, e.g., 139.6917 for Tokyo, 121.5654 for Taipei).
birthDateTimeYesLocal civil birth date and time in "YYYY-MM-DD HH:mm" (or "YYYY-MM-DD" if hour is unknown). Range: 1895-2100.
useTrueSolarTimeNoApply True Solar Time correction (longitude + NOAA equation of time). Default: true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint=false, so the safety profile is covered. The description still adds real behavioral context beyond them: results are deterministic, the computation uses astronomical 24 solar-term transitions and IANA historical DST rollback, and True Solar Time calibration may shift the outcome. It does not describe failure behavior for out-of-range or ambiguous inputs, so it stops short of 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.

Conciseness5/5

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

Two sentences, no filler. The capability and precision claim come first, the methodological basis second, and the usage directive last, which is an effective front-loaded structure.

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

Completeness4/5

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

With no output schema, the description correctly enumerates what is returned (stems, branches, Day Master, Five Elements), which is the key missing piece it needed to supply. For a five-parameter, single-required-parameter computation tool this is nearly complete; only the response format and ambiguity handling (unknown birth hour) are left implicit.

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 every parameter already carries its own explanation, and the baseline of 3 applies. The description reinforces the purpose of the true-solar-time and birthplace inputs conceptually but adds no format, precedence detail, or defaults beyond what the schema states explicitly.

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 gives a specific verb (compute) and resource (BaZi / Four Pillars chart) and enumerates the concrete outputs: stems, branches, Day Master, and Five Elements. It also names the non-English aliases (四柱推命/八字), which helps matching. It does not explicitly differentiate itself from the sibling tools audit_llm_bazi_answer or check_solar_term_boundary, which keeps it from 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 Guidelines4/5

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

"Always use this instead of guessing pillars" gives a clear use directive and steers the agent away from model-side derivation. There is no explicit when-not guidance (e.g., when to prefer check_solar_term_boundary for edge-of-term cases, or the audit tool for validating a supplied answer), so the routing context is clear but incomplete.

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