Skip to main content
Glama

Calculate Bazi Chart / 八字排盤

calculate_bazi_chart
Read-onlyIdempotent

Use this when the user wants a Four Pillars birth chart and has explicitly supplied the birth date, local time, latitude, longitude, and historical UTC offset. Applies True Solar Time correction. Do not use this to infer missing birth details, daylight-saving rules, or personalized guidance for a reading date. Use only with the subject’s permission. / 當使用者要建立四柱八字命盤,並已明確提供出生日期、當地時間、緯度、經度與當時 UTC 時差時使用;計算會校正真太陽時。請勿用來推測缺少的出生資料、夏令時間規則,或指定日期的個人化指引。僅在獲得當事人同意時使用出生資料。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
localeNoResponse display preference; structured technical values include both languages / 回應語言偏好;結構化術語同時包含中英文en
latitudeYesBirth latitude in decimal degrees / 出生地緯度(十進位度數)
timezoneYesUTC offset in hours at the birth location and date / 出生地與出生日期的 UTC 小時時差
longitudeYesBirth longitude in decimal degrees; used for True Solar Time / 出生地經度,用於真太陽時校正
birth_dateYesBirth date in YYYY-MM-DD format / YYYY-MM-DD 格式的出生日期
birth_timeNoLocal birth time in 24-hour HH:mm format / 24 小時制的出生時間 HH:mm12:00

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYes
toolYes
localeYes
disclaimerYes
generated_atYes
canonical_urlYes
deterministicYes
schema_versionYes

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint, so the description's job is lighter. It adds valuable context by stating it applies True Solar Time correction and requires the subject's permission, which goes beyond the annotation-provided profile.

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 well-structured: first sentence states the primary use case, second sentence lists exclusions (plus a permission note). It is somewhat long due to bilingual repetition, but every clause contributes directly to correct invocation, making it appropriately concise.

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?

Given that an output schema exists and parameter descriptions cover the inputs, the description sufficiently covers usage conditions, required data, and behavioral notes. It lacks explicit mention of output format, but that is the output schema's responsibility. It is complete enough for an agent to call correctly.

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?

With 100% schema coverage, the baseline is 3. The description adds semantic nuance by referring to the 'historical UTC offset,' clarifying that the timezone parameter is for the birth date, not the current one. This is a meaningful addition beyond the schema's simple offset description.

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 states a specific verb-resource pairing: it calculates a Four Pillars birth chart given explicit birth data. It distinguishes itself by explicitly excluding inference of missing details or personalized guidance, which differentiates it from sibling tools like get_daily_bazi_guidance.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

It provides explicit when-to-use ('when the user wants a Four Pillars birth chart and has explicitly supplied...') and when-not-to-use ('Do not use this to infer missing birth details, daylight-saving rules, or personalized guidance') conditions, effectively routing the agent to the correct tool. The additional consent requirement adds a practical usage constraint.

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.

TDQS

A4.4/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose: calculate_bazi_chart is for static birth charts, get_daily_almanac is date-only calendar information, and get_daily_bazi_guidance is personalized daily interaction. Descriptions explicitly state when not to use each tool, eliminating ambiguity.

Naming Consistency4/5

All tool names use snake_case and follow a get/calculate + noun pattern. The two daily-oriented tools share the get_daily_ prefix, while calculate_bazi_chart uses a different verb, but the naming is still predictable and readable.

Tool Count5/5

Three tools is well-scoped for this domain: one for chart calculation, one for daily almanac lookup, and one for personalized daily guidance. Each tool earns its place with no redundant or filler tools.

Completeness4/5

The set covers the core workflows: generating a birth chart, retrieving date-only almanac data, and getting personalized daily guidance with complete birth inputs. Minor gaps such as compatibility analysis or life-cycle period tools exist, but the primary stated purpose is fully covered.

Resources