Skip to main content
Glama

AstroWay Astrology API (full catalogue)

Hour Pillar

astroway_bazi_hour_pillar
Read-onlyIdempotent

Hour pillar via 五鼠遁 (Five-Rats-Escape) day-stem → hour-stem table. The Zi hour opens the day at 23:00 local time.

[Group: BaZi (Four Pillars)] [Endpoint: POST /v1/bazi/hour-pillar] [Required: date, time] [Cost: 10 credits (Tier 1)]

Input Schema

NameRequiredDescriptionDefault
dateYes
timeYes
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
dateNo
timeNo
cstHourNo
dayPillarNo
localHourNo
disclaimerNo
hourPillarNo
methodologyNo
timezoneOffsetNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description still adds genuinely behavioral content beyond that: the explicit day-boundary convention that the Zi hour opens the day at 23:00 local time, which changes computed results at the day edge. It stops short of error behavior or what happens with ambiguous/skipped local times.

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 tight sentences front-loading the method and the boundary rule, followed by a compact bracketed metadata block. The 'Required: date, time' line duplicates the schema's required array, which is the only real waste; group, endpoint and credit cost are non-redundant and useful.

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?

With 7 parameters, an output schema and full annotations, the main remaining gap is orienting the agent on time input: an hour pillar is only well defined once the local-hour convention and the timezone/timezoneOffset choice are resolved, and the description only alludes to 'local time' without saying which parameter governs it. Return values need not be explained since an output schema exists. Adequate but not complete for a time-sensitive calculation tool.

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 57%, in the middle band. The description only echoes the required list ('Required: date, time'), which the schema already encodes, and adds nothing about how timezone or timezoneOffset interact with the hour boundary — arguably the most consequential semantic for an hour-pillar tool. The richer timezone, timezoneOffset, fields and precision semantics are all carried by the schema, so a baseline 3 is appropriate.

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?

States a specific computation and its algorithm: the hour pillar derived via the 五鼠遁 (Five-Rats-Escape) day-stem → hour-stem table, plus the Zi-hour day boundary rule. That is far more specific than the bare name 'Hour Pillar'. It never names or contrasts the obvious siblings (astroway_bazi_year_pillar, astroway_bazi_month_pillar, astroway_bazi_four_pillars), so sibling differentiation is left to inference.

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?

No when-to-use guidance at all. The description does not say to prefer this over astroway_bazi_four_pillars when all four pillars are wanted, nor when a standalone hour pillar is appropriate, nor what date/time combination is meaningful. The only procedural hints are the metadata lines (endpoint, required params, cost), which are call mechanics rather than usage guidance.

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