Skip to main content
Glama
alexsu1212

freebazi-mcp

Compute a Bazi (Four Pillars) chart

compute_bazi_chart

Compute a complete Chinese Bazi chart from birth date, time, and place, applying True Solar Time and daylight-saving corrections to deliver Four Pillars, Ten Gods, and luck pillars for destiny analysis.

Instructions

Compute a full Chinese Bazi (八字, Four Pillars of Destiny) chart from a birth date, time, and place. Returns the four pillars, Day Master, Ten Gods, Hidden Stems, Five Elements, Na Yin, Growth Stages, Shen Sha, branch relations, Luck Pillars, and the current year, computed with True Solar Time and historical daylight-saving handling. Provide a birth city (use search_cities to resolve it) for accurate true solar time, or pass longitude and utcOffset directly.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dayYesBirth day 1-31
cityNoBirth city name, e.g. 'Taipei' or 'New York'. Resolved to longitude and IANA time zone for true solar time. Use search_cities first if unsure.
hourNoBirth hour 0-23 (local clock time as recorded)
yearYesBirth year, e.g. 1990
monthYesBirth month 1-12
genderYesNeeded for the luck-pillar direction
minuteNoBirth minute 0-59
dayRuleNoWhen a new day begins: 23:00 Zi hour (default) or midnightzi23
yearRuleNoYear boundary: Li Chun (default) or Lunar New Yearlichun
longitudeNoBirth longitude in degrees East (negative = West). Use instead of city.
utcOffsetNoUTC offset in hours (e.g. 8 for China). Use with longitude when no city is given.
timeUnknownNoTrue if the birth time is unknown; the hour pillar is then tentative
trueSolarTimeNoApply true-solar-time correction (recommended)
Install Server

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure, and it delivers: it specifies True Solar Time correction, historical daylight-saving handling, and the tentativeness of the hour pillar when birth time is unknown via the schema. It also makes clear that gender is needed for luck-pillar direction. This is a rich, honest account of how the computation behaves.

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?

The description is three focused sentences: the first states the core purpose and outputs, the second explains computation specifics, and the third gives coordinate/city guidance. It is front-loaded with the tool's primary function and every sentence contributes meaningful information without redundancy.

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?

For a tool with 13 parameters, no annotations, and no output schema, the description is strong: it names the full set of return fields and explains the key computational approach. It does not describe the exact structure of the return object or what happens when neither city nor longitude/utcOffset is supplied, but the input schema covers the parameter rules and the listed outputs are broad enough for an agent to understand the result.

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 baseline is 3, and the description goes beyond it by explaining the relationship between city and longitude/utcOffset and linking these to true-solar-time accuracy. It adds cross-parameter context that the schema alone does not fully convey, though much of the parameter detail is already present in the schema descriptions.

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?

The description names a specific action ('Compute a full Chinese Bazi chart'), identifies the required inputs (birth date, time, place), and enumerates the detailed output components. It clearly distinguishes this tool from its sibling search_cities, which is only referenced as a helper for resolving city names, not as an alternative computation path.

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?

The description gives actionable usage guidance: use search_cities to resolve a birth city for accurate true solar time, or pass longitude and utcOffset directly. It does not explicitly state when not to use the tool, but there is no competing sibling tool, so the context is clear enough for an agent to select and invoke it correctly.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/alexsu1212/freebazi-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server