Skip to main content
Glama

ZiWeiHome — Zi Wei Dou Shu Chart Calculator

Calculate Zi Wei Dou Shu natal chart

calculate_ziwei_chart
Read-onlyIdempotent

Compute a complete Zi Wei Dou Shu (紫微斗數) natal chart from birth date, birth time or shichen index, and gender. Returns Ming Palace (命宮), Body Palace (身宮), Five Elements Bureau (五行局), Soul/Body Masters, BaZi pillars, Ming Palace San Fang Si Zheng (三方四正), all 12 palaces with stars/brightness/Four Transformations (四化), and all 12 Decadal Luck periods (十年大限).

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": {
      "birthDate": "<birthDate>",
      "gender": "<gender>"
    },
    "name": "calculate_ziwei_chart"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityIdNoOptional birthplace city slug (e.g. 'taipei', 'hongkong', 'beijing', 'shanghai', 'tokyo', 'seoul', 'singapore', 'newyork', 'losangeles', 'london') to apply historical timezone/DST and longitude true-solar-time adjustment when birthTime is provided.
genderYesBirth gender ('male' or 'female'), used to determine clockwise/counterclockwise Decadal Luck (大限) order.
calendarNoOptional calendar system for birthDate: 'solar' (Gregorian, default) or 'lunar' (Chinese lunar calendar).solar
birthDateYesBirth date in YYYY-MM-DD format (1900-01-01 to 2100-12-31), e.g. '1992-08-15'. Interpreted as Gregorian solar date unless calendar is 'lunar'.
birthTimeNo24-hour local birth time in HH:mm format (00:00 to 23:59), e.g. '14:30'. Provide either birthTime or timeIndex.
lunarLeapNoOptional leap-month flag when calendar is 'lunar'. Must be false or omitted when calendar is 'solar'.
timeIndexNoTraditional Chinese shichen (時辰) index 0-12 (0=早子時 00:00-00:59, 1=丑時, 2=寅時, 3=卯時, 4=辰時, 5=巳時, 6=午時, 7=未時, 8=申時, 9=酉時, 10=戌時, 11=亥時, 12=晚子時 23:00-23:59). Provide either timeIndex or birthTime.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is fully covered and the description needn't repeat it. The description adds real value by disclosing the shape of the output (palaces, stars, Four Transformations, Decadal Luck), which no output schema provides. It omits any caveats about calculation assumptions, failure modes, or whether results are cached/deterministic across timezone settings.

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?

Two sentences, front-loaded with the action and inputs, followed by a dense return-value inventory. The long enumeration of chart components is justified because there is no output schema, though the parenthetical bilingual glosses make it heavier than strictly necessary.

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 carries the return-value burden and does so thoroughly, and annotations cover the safety/mutation profile. The remaining gap is guidance on how this differs from the horoscope sibling and on error or edge conditions (lunar leap months, timezone requirement for true solar time), which keeps it from a 5.

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 100% and every parameter is documented in-schema, including the timeIndex shichen mapping and the cityId true-solar-time effect. The description only restates the inputs at a high level and adds no meaning beyond the schema, so the baseline 3 applies.

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 ('Compute a complete Zi Wei Dou Shu natal chart') and enumerates the inputs and the chart components produced, so an agent knows exactly what comes back. It does not differentiate itself from the sibling calculate_ziwei_horoscope, leaving the agent to infer that this tool is the natal-chart step versus a transit/period step.

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

Usage Guidelines2/5

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

There is no statement of when to use this tool, when not to, or which sibling to pick for a different chart type. The only conditional guidance ('birth time or shichen index') lives in the schema, not the description, so usage is left entirely to inference from the name.

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