Skip to main content
Glama

cast_ziwei_chart

Generate a deterministic Ziwei Dou Shu 12-palace astrolabe with True Solar Time boundary validation, four transformations, decadal cycles, and a stable fact registry.

Instructions

Cast a deterministic Ziwei Dou Shu (紫微斗数) 12-palace astrolabe via iztro with explicit True Solar Time cross-shichen boundary validation, natal transformations (四化), decadal cycles (大限), and stable fact_registry.

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": {
      "date": "<date>",
      "gender": "<gender>"
    },
    "name": "cast_ziwei_chart"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNoBirth city for True Solar Time boundary validation
dateYesBirth date in YYYY-MM-DD format
timeNoBirth local clock time in HH:MM (24-hour)
genderYesGender
calendarNoCalendar systemsolar
longitudeNoBirth longitude in degrees
time_indexNoShichen index 0 (早子) .. 12 (晚子); optional if time is given
time_zone_idNoIANA timezone ID (default Asia/Shanghai)
is_leap_monthNoWhether lunar month is a leap month
true_solar_timeNoApply True Solar Time when longitude is available

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations present, the description must carry the full burden, and it does disclose meaningful behavior: determinism, True Solar Time cross-shichen boundary validation, natal transformations (四化), decadal cycles (大限), and a 'stable fact_registry'. It still omits whether the call has side effects, how invalid or partial inputs (e.g., missing time) are handled, and what the response contains, which is a real gap for a 10-parameter tool with zero annotation coverage.

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?

A single front-loaded sentence with the verb and resource first, followed by the differentiating behavioral traits. Every clause (determinism, boundary validation, 四化, 大限, fact_registry) contributes distinct information and nothing is padded.

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

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex domain tool with 10 parameters, no annotations, and no output schema, the description explains what is computed but not the shape of the returned astrolabe or fact_registry, nor how errors or ambiguous time inputs are resolved. An agent could invoke it correctly but cannot anticipate its output or failure modes from this text alone.

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 defines all 10 parameters and enums, giving a baseline of 3. The description adds genuine semantic context by tying the shichen boundary validation to the time/time_index indexing and True Solar Time behavior, but it adds no meaning for city, longitude, calendar, or is_leap_month beyond what the schema states.

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 concrete verb ('Cast') and resource ('deterministic Ziwei Dou Shu 12-palace astrolabe via iztro'), which is specific enough to distinguish it from the sibling cast_bazi_chart by domain. It stops short of explicitly naming the alternative, so it lands at clear-but-not-differentiating rather than a 5.

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 when-to-use versus when-not guidance, no mention of prerequisites, and no routing to siblings such as cast_bazi_chart or cross_verify_charts. The only signal is the implied 'call this when you need a ziwei chart', which an agent must infer.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.