Skip to main content
Glama

ZiWeiHome — Zi Wei Dou Shu Chart Calculator

Calculate Zi Wei Dou Shu decadal, yearly, monthly, and daily luck

calculate_ziwei_horoscope
Read-onlyIdempotent

Compute Zi Wei Dou Shu time-layer overlays — Decadal (大限), Yearly (流年), Monthly (流月), and Daily (流日) luck palaces, heavenly stems, earthly branches, and Four Transformations (四化) — for a natal chart on a target date (defaults to today in UTC+8).

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_horoscope"
  }
}

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.
targetDateNoOptional Gregorian solar target date in YYYY-MM-DD format (1900-01-01 to 2100-12-31), e.g. '2026-11-27'. Defaults to today (Asia/Taipei).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, non-destructive, closed-world behavior, so the description need not restate safety. It adds genuine context beyond them: the computation is anchored to a natal chart, the default target date is today, and it enumerates the returned components (palaces, stems, branches, Four Transformations), which matters because there is no output schema.

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?

A single sentence that front-loads the verb and the four time layers before the output components and the date default. It is dense with parenthetical bilingual terms but nothing is redundant or wasted.

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's enumeration of returned elements is the right compensating detail, and the eight parameters are fully documented in the schema. The main remaining gap is the relationship to the sibling chart-calculation tool, which the description never clarifies.

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 description coverage is 100%, so the schema already documents every parameter, including timeIndex ranges, lunar leap handling, and the birthTime/timeIndex either-or. The description only adds the defaulting behavior of targetDate, which is a small increment over the structured data; 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 names a specific verb (compute) and a specific resource set: Decadal, Yearly, Monthly and Daily luck palaces, heavenly stems, earthly branches, and Four Transformations for a natal chart on a target date. It is unambiguous about what the tool produces, but it never mentions the sibling calculate_ziwei_chart, so an agent cannot tell from the text alone whether this also builds the base chart or only the time-layer overlays.

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: the mention of a target date that 'defaults to today' signals this is the tool for time-layer analysis on a given day, but there is no explicit when-to-use versus when-not-to-use guidance and no reference to calculate_ziwei_chart as the alternative for a static natal chart.

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