Skip to main content
Glama

Shichu Suimei Keisan — Four Pillars of Destiny (BaZi) Calculator

Calculate Four Pillars of Destiny (四柱推命 / BaZi) chart

calculate_four_pillars
Read-onlyIdempotent

Compute a Japanese Four Pillars of Destiny (Shichu Suimei / BaZi) natal chart from Gregorian birth date, gender, and optional birth time and birthplace coordinates. Returns Year/Month/Day/Hour pillars, Heavenly Stems & Earthly Branches (天干・地支), Ten Gods (通変星), Twelve Life Stages (十二運星), Hidden Stems (蔵干), Five Elements distribution (五行), Tenchusatsu void branches (空亡・天中殺), Luck Pillars (大運), Chart Strength (旺衰), Inner Structure (格局), Pillar Relations, and Special Stars (神殺).

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

Input Schema

NameRequiredDescriptionDefault
genderYesGender ('male' or 'female'), required to determine forward/reverse Luck Pillar (大運) direction.
timezoneNoOptional IANA timezone for true solar time correction (must be provided together with 'longitude'), e.g. 'Asia/Tokyo' or 'America/New_York'. Defaults to Japan Standard Time (Asia/Tokyo, 135°E) when both are omitted.
birthDateYesGregorian birth date in YYYY-MM-DD format (1900-01-01 to 2100-12-31), e.g. '1990-05-15'.
birthTimeNoOptional 24-hour local birth time in HH:mm format, e.g. '14:30'. Omit if unknown to compute the Three Pillars (三柱).
longitudeNoOptional birthplace longitude in decimal degrees (-180 to 180, east positive, e.g. 139.6917 for Tokyo). Must be provided together with 'timezone' and 'birthTime'.
lateRatRuleNoRule for 23:00-23:59 births: 'split' (夜子時, default: same-day Day Pillar, next-day Hour Stem), 'same' (same day for both), or 'nextDay' (next day for both).split
equationOfTimeNoWhether to include the Equation of Time in true solar time correction when birthplace timezone/longitude are supplied. Defaults to true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds genuinely new behavioral context: it discloses that omitted timezone/longitude fall back to JST (135°E) and that omitting birthTime degrades the result to Three Pillars, which tells the agent how output completeness depends on input completeness. It stops short of describing error behavior or precision caveats.

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?

Two sentences, front-loaded with the verb and resource, followed by an output inventory. The long enumeration of return fields is dense but each item carries information in the absence of an output schema; only minor tightening is possible.

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?

There is no output schema, so the enumerated return list (pillars, stems/branches, Ten Gods, Luck Pillars, strength, structure, special stars) is essential and supplied. Inputs, defaults and the Three-Pillars degradation path are covered; only error/validation behavior and any computational caveats are left unstated.

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 is already documented with formats, ranges, enums and pairing constraints. The description only restates the input set ('Gregorian birth date, gender, and optional birth time and birthplace coordinates') without adding format or interaction detail beyond the schema, so baseline 3 applies.

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?

Opens with a specific verb ('Compute') and a precisely named resource ('Japanese Four Pillars of Destiny (Shichu Suimei / BaZi) natal chart'), then enumerates the exact artifacts produced. An agent can immediately tell this is a natal-chart generator, distinct from a compatibility/relationship tool like 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 Guidelines3/5

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

Usage is implied rather than stated: it names the required inputs (birth date, gender) and the optional ones, but never says when to pick this over calculate_compatibility or what to do when birth data is ambiguous. The only conditional guidance is embedded in parameter defaults (e.g., omitting birthTime yields Three Pillars), which is helpful but not a when-to-use rule.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources