Skip to main content
Glama

My Star Letter: charts and compatibility

BaZi four pillars

get_bazi_chart
Read-onlyIdempotent

Calculate a Chinese BaZi chart: the year, month, day and hour pillars (heavenly stems and earthly branches with Chinese characters and pinyin), the Day Master, the five elements count, the year animal, with approved plain meanings and a link to the free BaZi page. Use when someone asks "my BaZi", "four pillars of destiny", "my Day Master", "what element am I" or "my Chinese zodiac element". Month and year change at exact solar terms (Li Chun, not January 1), found with an ephemeris. birth_time is optional: without it the chart has three pillars and the result says so.

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

Input Schema

NameRequiredDescriptionDefault
latitudeNoBirthplace latitude, if the city is not found. Optional.
longitudeNoBirthplace longitude (east positive), with latitude. Optional.
time_zoneNoIANA time zone of the birthplace, e.g. America/Chicago. Work it out from the birthplace. Needed with a birth_time unless birth_place is in our list.
birth_dateYesBirth date, YYYY-MM-DD.
birth_timeNoLocal birth time, 24-hour HH:MM. Leave out if unknown.
birth_placeNoBirthplace as city, region, country, e.g. Austin, Texas, United States. Gives coordinates (and the time zone if time_zone is left out).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already establish that this is a safe, read-only, idempotent, closed-world calculation. The description adds meaningful behavioral context beyond that: month and year boundaries follow exact solar terms (Li Chun, not January 1) found via an ephemeris, and omitting birth_time yields a three-pillar chart with the result explicitly saying so.

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?

The description is front-loaded with the core calculation and stays under roughly 90 words, with every clause contributing either output scope, trigger examples, or the solar-term/birth_time caveat. It is a single dense paragraph rather than a structured list, which slightly reduces scanability but does not waste words.

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 description must explain return values, and it does: pillars with Chinese characters and pinyin, Day Master, five-element count, year animal, approved plain meanings, and a supporting link. It also handles the main edge case of a missing birth_time; only minor operational details such as geocoding failure behavior are left to the schema.

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 description coverage is 100%, so the parameter definitions already carry the baseline meaning. The description adds real interpretive value beyond the schema by explaining the consequence of omitting birth_time—the chart has only three pillars—and by clarifying that date boundaries are solar-term based rather than calendar-year based.

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 opens with a specific verb and resource: 'Calculate a Chinese BaZi chart,' then enumerates the exact outputs (year/month/day/hour pillars, Day Master, five elements count, year animal, plain meanings, link). It is highly clear, but it does not explicitly distinguish itself from the sibling get_saju_chart, which is another four-pillars system; an agent must infer the Chinese-vs-Korean distinction from 'BaZi' alone.

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?

It gives concrete trigger phrases—'my BaZi,' 'four pillars of destiny,' 'my Day Master,' 'what element am I,' 'my Chinese zodiac element'—so an agent knows when this tool is appropriate. It stops short of stating when not to use it or naming an alternative such as get_saju_chart for Korean Saju readings.

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