Skip to main content
Glama

Zi Wei Dou Shu chart

ziwei_chart
Read-onlyIdempotent

Compute a Zi Wei Dou Shu (紫微斗数) chart: twelve palaces with major/minor stars, brightness and birth-year transformations (四化), five-element bureau, soul/body stars. Uses the same 子时 convention as bazi_chart. Needs the birth hour. Free.

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": {
      "year": "<year>",
      "month": "<month>",
      "day": "<day>",
      "hour": "<hour>"
    },
    "name": "ziwei_chart"
  }
}

Input Schema

NameRequiredDescriptionDefault
tzNoIANA time zone of the birthplace, e.g. Asia/Shanghai, America/Los_Angeles. Preferred over tz_hours: historical summer time is applied (the mainland observed it 1986–1991, Hong Kong and Taiwan in many earlier years), so a clock time read off a birth certificate in summer time gives the right hour pillar
dayYes
hourYes0-23 local clock hour; omit if unknown
yearYes
monthYes
genderNo
minuteNo
zi_ruleNo子时 convention: 1 = a birth after 23:00 counts as the next day; 2 (default) = same day
tz_hoursNofixed UTC offset of the birthplace in hours, e.g. 8 (no summer time); used only when tz is absent
longitudeNobirthplace longitude in degrees east, e.g. 121.47 for Shanghai

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / longitude / description
      Previous value: -"birthplace longitude in degrees east, e.g. 103.82 for Singapore"New value: +"birthplace longitude in degrees east, e.g. 121.47 for Shanghai"
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already establish readOnly/idempotent/non-destructive/closed-world, so the bar is lower. The description adds two genuinely useful behavioral facts beyond them: the shared 子时 convention (and its default) and that the call is free, but it says nothing about determinism, whether a missing hour degrades or fails the chart, or why gender matters.

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?

Three short sentences, front-loaded with what is computed, then the convention dependency, then the hard requirement and cost. Every clause carries information; nothing is filler.

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 usefully enumerates the chart's contents, which is the right use of that space, and it flags the hour requirement and time-zone convention. Gaps remain around the optional parameters (gender, longitude, minute) whose effects an agent cannot infer, but overall it is complete enough to call the tool correctly.

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 50%, and the description compensates only partially: it clarifies that hour is required and that zi_rule follows the bazi_chart 子时 convention (with a default), which adds real meaning over the enum values. It is silent on gender, longitude, tz_hours and minute, leaving several parameters to the schema alone.

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?

"Compute a Zi Wei Dou Shu chart" is a specific verb+resource, and the description enumerates concrete outputs (twelve palaces, major/minor stars, brightness, 四化, five-element bureau, soul/body stars). It situates itself relative to bazi_chart only for the 子时 convention, not by stating the distinction in purpose, so it stops just short of full sibling differentiation.

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 implied: you call it when you have a birth date/hour and want a ZWDS chart, and it warns "Needs the birth hour." There is no explicit when-not, no statement of how it differs in use from bazi_chart or daily_card, and no prerequisites (e.g. whether gender is optional but recommended) are spelled out.

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