Skip to main content
Glama

Cast a BaZi chart

cast_bazi_chart
Read-onlyIdempotent

Cast a BaZi (Four Pillars, 八字) chart from a birth date, local clock time and IANA time zone. Returns each pillar's stem, branch, elements, ten god, hidden stems, na yin, twelve life stages, void branches and symbolic stars; the 胎元, 命宮 and 身宮; the 節 instants either side of the birth; and ten luck pillars. Computed by Kaucim's calendar engine, so the same birth always returns the same chart. Use it instead of deriving pillars yourself. Leave time out when unknown: the hour pillar is then omitted and any other pillar that could change is listed.

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

Input Schema

NameRequiredDescriptionDefault
birthYes
localeNoLanguage of the text summary and labels: zh-Hant (Traditional Chinese, default) or en. Machine fields carry both.zh-Hant

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive), and the description still adds real substance: deterministic engine behavior ("the same birth always returns the same chart") and the degraded-result behavior when time is omitted, where the hour pillar drops and changeable pillars are listed. It does not mention rate limits or cost, but for a pure computation those are minor.

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?

Front-loaded with the purpose, then the return inventory, then the usage rules. The long enumeration of returned fields is dense but justified because there is no output schema. Slight over-listing of arcane terms (胎元, 命宮, 身宮, na yin) costs it a point.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 takes on the full burden of describing return values and does so completely, including the important caveat that omitted time yields a partial but flagged result. Nothing an agent needs to call it correctly or interpret the response is missing.

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 roughly 50% but the nested birth schema itself carries rich per-field descriptions, which sets the baseline at 3. The description adds meaning only for the time/no-time branch; it says nothing beyond the schema about late_zi, calendar, use_true_solar_time, hemisphere, or timezone format.

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?

States a specific verb and resource ("Cast a BaZi (Four Pillars, 八字) chart") plus the exact inputs it derives from, and adds the negative framing "Use it instead of deriving pillars yourself," which separates it from an agent's own improvised calculations and from the strength/chart siblings.

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?

Gives explicit input-level guidance ("Leave time out when unknown: the hour pillar is then omitted") and a clear directive not to self-derive. It stops short of naming when to prefer cast_ziwei_chart or get_bazi_strength, so the alternative-selection guidance is implied rather than stated.

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.