Skip to main content
Glama

BaZi chart

bazi_chart
Read-onlyIdempotent

Compute a BaZi four-pillars chart from birth data (Gregorian). Returns pillars, Day Master, Ten Gods, hidden stems, element tally, luck pillars and the conventions used (true solar time, Zi-hour rule, solar-term boundaries). When the birth is within two hours of a solar-term boundary (节), chart.jieBoundary names it and gives the year/month pillars on the other side. Free.

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": {
      "year": "<year>",
      "month": "<month>",
      "day": "<day>"
    },
    "name": "bazi_chart"
  }
}

Input Schema

NameRequiredDescriptionDefault
tzNoIANA time zone of the birthplace, e.g. Asia/Shanghai, America/Los_Angeles. Preferred over tz_hours: historical summer time is applied (the mainland observed it 1986–1991, Hong Kong and Taiwan in many earlier years), so a clock time read off a birth certificate in summer time gives the right hour pillar
dayYes
hourNo0-23 local clock hour; omit if unknown
yearYes
monthYes
genderNo
minuteNo
zi_ruleNo子时 convention: 1 = a birth after 23:00 counts as the next day; 2 (default) = same day
tz_hoursNofixed UTC offset of the birthplace in hours, e.g. 8 (no summer time); used only when tz is absent
longitudeNobirthplace longitude in degrees east, e.g. 121.47 for Shanghai

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / longitude / description
      Previous value: -"birthplace longitude in degrees east, e.g. 103.82 for Singapore"New value: +"birthplace longitude in degrees east, e.g. 121.47 for Shanghai"
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds real context beyond them: it discloses which conventions the engine applies (true solar time, Zi-hour rule, solar-term boundaries) and the important edge case that within two hours of a 节 boundary the response carries jieBoundary with the alternate year/month pillars. It stops short of describing error behavior for invalid dates or how luck pillars depend on gender.

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?

Three tight sentences, front-loaded with the core operation and its return set, followed by the boundary caveat. The trailing 'Free.' is a cost signal rather than tool semantics, but it is one word and does not obscure anything.

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 compensates well by enumerating the returned fields and the boundary-warning field. For a 10-parameter computational tool the remaining gaps are modest: the role of gender in luck pillars and the handling of unknown hour (which the schema says may be omitted) are not explained in terms of output consequences.

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 coverage is 50% across 10 parameters; tz, tz_hours, zi_rule, hour and longitude are already documented in the schema. The description adds the meaningful clarification that the input date is Gregorian and that the Zi-hour and solar-term conventions shape the output, but it says nothing about gender or minute, which are undocumented in both places, and does not signal that gender drives the luck-pillar sequence.

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 and resource ('Compute a BaZi four-pillars chart from birth data') and enumerates the returned artifacts: pillars, Day Master, Ten Gods, hidden stems, element tally, luck pillars. It does not name or contrast with the obvious sibling ziwei_chart or auspicious_dates, so an agent must infer the boundary from domain knowledge rather than from the text.

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 only implied: an agent can infer 'call this when you have a Gregorian birth date and want a BaZi chart.' There is no statement of when to prefer this over ziwei_chart or auspicious_dates, and no prerequisites (e.g. that gender is needed for luck-pillar direction) are called out in the description.

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