Skip to main content
Glama

AstroWay Astrology API (full catalogue)

Four Pillars (full)

astroway_bazi_four_pillars
Read-onlyIdempotent

All four pillars: year, month, day, hour. Day pillar uses the canonical 60-jiazi cycle (anchor 1990-01-01 = Bing-Yin). Pass time to compute the hour pillar; day and hour roll at 23:00 local, year and month at the exact Lichun and 節 instants.

[Group: BaZi (Four Pillars)] [Endpoint: POST /v1/bazi/four-pillars] [Required: date] [Cost: 10 credits (Tier 1)]

Input 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.
languageNo
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

NameRequiredDescriptionDefault
notesNo
dayPillarNo
solarYearNo
disclaimerNo
hourPillarNo
yearPillarNo
monthPillarNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/finite-world, so the safety profile is covered. The description adds real behavioral depth beyond that: the 60-jiazi anchor (1990-01-01 = Bing-Yin) and the exact boundary rules — day/hour rolling at 23:00 local, year/month at Lichun and 節 instants — which are the edge cases that actually change results. It does not contradict the annotations.

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 dense sentences that front-load output scope, then methodology, then boundary behavior; the metadata footer is compact. No filler, though the astronomical caveats make the second sentence long.

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?

An output schema exists, so return values need not be described, and annotations cover safety. For a single-date computation tool the description supplies the key semantics (input shape, pillar scope, boundary rules). The one residual gap is that '23:00 local' is not tied explicitly to the timezone/timezoneOffset parameters.

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 57% (time, date, and language have no schema descriptions), so the description carries part of the load: it clarifies that `time` drives the hour pillar and that day/hour boundaries are 23:00 local. It adds nothing for `language` and only partially ties the 23:00 boundary to the timezone/timezoneOffset parameters.

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 concrete output ('All four pillars: year, month, day, hour') for a named resource, and the phrase 'All four pillars' implicitly contrasts with the sibling single-pillar tools (bazi_year_pillar, bazi_month_pillar, bazi_hour_pillar). An agent can distinguish it from the per-pillar siblings without opening the schema.

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?

'Pass `time` to compute the hour pillar' is a genuine conditional usage hint. However there is no explicit when-to-use statement versus alternatives such as astroway_bazi_chart or the individual pillar endpoints, and no stated exclusions. Usage is implied rather than 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