Skip to main content
Glama

AstroWay Astrology API (full catalogue)

Four Transformations (四化)

astroway_ziwei_four_transformations
Read-onlyIdempotent

The four stars activated by the birth year stem: 化禄 fortune, 化权 authority, 化科 repute, 化忌 obstruction. The one part of Zi Wei computable without star placement. Seven stems are agreed across traditions; for the three that are not (戊 庚 壬) every school reading ships in schoolVariants, and school switches the headline answer.

[Group: Zi Wei Dou Shu (Purple Star)] [Cost: 10 credits (Tier 1)]

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateYes
timeNo
fieldsNoCompact mode: comma-separated dotted paths to keep, relative to `data`, e.g. "planets.name,planets.longitude,houses.cusp". Omit for the whole response.
schoolNo
timezoneNoIANA zone name such as Europe/Kyiv, or auto to look the zone up from latitude and longitude. The server takes the offset that zone kept at this local date and time, summer time included, and uses it in place of timezoneOffset. A clock time that happened twice takes the first occurrence; one skipped when clocks went forward takes the offset from before the change. Abbreviations such as EST are refused. Before 1970 the tz database is not reliable for every place, so send timezoneOffset when the local clock is known.
precisionNoCompact mode: round fractional numbers to this many decimals. Longitudes carry 14 by default; 2 is finer than any chart is drawn.
timezoneOffsetNoIgnored when timezone is sent.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
notesNo
schoolNo
disputedNo
yearStemNo
solarYearNo
schoolVariantsNo
transformationsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, so the safety burden is lifted. The description adds substantive non-obvious behavior: tradition-dependent outputs for three stems with all school readings shipped in schoolVariants, plus the 10-credit cost. Auth and rate-limit details are absent, but nothing material is hidden.

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 what is computed, then the tradition nuance and the school switch; every sentence carries information. The trailing [Group]/[Cost] tags are structured metadata rather than prose, so they don't dilute, though the second sentence's 'computable without star placement' clause is loosely placed.

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 an output schema present, return values need not be explained, and annotations cover safety. For a 7-param tool the description covers purpose, tradition variance, and the key enum, leaving only minor gaps around the required birth date and the compass of the other params, which the schema largely handles.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is moderate (57%): fields, timezone, precision, and timezoneOffset are already documented, while date, time, and school are not. The description compensates meaningfully for the undocumented `school` enum by explaining that it selects the headline answer and that variant readings appear in schoolVariants, adding real semantics beyond the bare enum.

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 computation (the four stars 化禄/化权/化科/化忌 activated by the birth-year stem) with domain-accurate detail, and adds the crucial scoping fact that this is the one part of Zi Wei computable without star placement. An agent can distinguish it from ziwei_chart, ziwei_main_stars, and the palace tools without opening any schema.

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 clear contextual guidance on when the school parameter matters: seven stems agree across traditions, three (戊庚壬) do not, and `school` switches the headline answer. It does not, however, explicitly route the agent relative to sibling tools or state prerequisites for the required date input.

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