Skip to main content
Glama

AstroWay Astrology API (full catalogue)

Generate BaZi Report (PDF or HTML)

astroway_reports_bazi

The /bazi/chart reading as an A4 PDF (default), HTML or Markdown: the four pillars with stems, branches, animals, ten gods, hidden stems, na yin and the twelve stages; the day master with its classical image; the five elements counted three ways; the strength verdict with favourable elements and its stated thresholds; the symbolic stars; the branch interactions; and the ten-year luck pillars when gender is given. Takes the /bazi/chart birth input (date, time, timezoneOffset or timezone, longitude with trueSolarTime, dayBoundary), plus name and city for the cover. No AI.

[Group: Reports] [Endpoint: POST /v1/reports/bazi] [Required: date] [Cost: 5,000 credits (Tier 7)] ⚠️ Premium — ~50% of free monthly budget. Confirm with user before invoking.

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>"
    },
    "name": "astroway_reports_bazi"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNoPrinted on the cover; the chart is read from date, time, zone and longitude.
dateYes
nameNoPrinted on the cover.
timeNo
fieldsNoComma-separated paths inside `data` to keep, e.g. "planets.name,houses.cusp".
formatNo`pdf` (default) stores a PDF and answers with its `url`. `html` returns one self-contained `text/html` document, `markdown` returns `text/markdown` with the same sections and tables; neither is stored. Same price in every format.
genderNo
languageNo
timezoneNoIANA zone (Europe/Kyiv) or "auto" from latitude/longitude; replaces timezoneOffset. Before 1970 prefer timezoneOffset.
longitudeNo
precisionNoRound numbers to this many decimals.
whitelabelNo
dayBoundaryNo
stageSchoolNo
trueSolarTimeNo
timezoneOffsetNoIgnored when timezone is sent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations declare non-read-only, open-world, non-idempotent, non-destructive, so the safety bar is partly covered. The description adds real behavior beyond that: PDF is stored and returned as a URL while HTML/Markdown are returned inline and not stored, same price in every format, and the premium 5,000-credit cost requiring user confirmation. It does not discuss failure modes or what happens on invalid birth data, but the storage/pricing disclosures are substantive.

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?

The output artifact and format default are front-loaded, followed by a dense but scannable enumeration of report sections and then the input contract. Every clause carries information, though the mid-sentence content list is long enough to be heavy on first read.

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 16-parameter, no-output-schema, premium-cost report tool, the definition covers the primary invocation path, format/storage behavior, and the cost gate well. It is incomplete on five parameters (fields, precision, language, stageSchool, whitelabel) that materially change the output, which an agent would have to infer from the schema alone.

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?

With only 44% schema description coverage across 16 parameters, the description must compensate, and it does for the core path: it lists date, time, timezoneOffset/timezone, longitude with trueSolarTime, and dayBoundary as the birth input, plus name/city as cover-only, and explains that gender unlocks the ten-year luck pillars — meaning the schema does not convey. It leaves fields, precision, language, stageSchool, and the large whitelabel object unexplained.

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 specific verb and resource — rendering the /bazi/chart reading as an A4 PDF/HTML/Markdown report — and enumerates the report's contents (four pillars, day master, elements, strength verdict, luck pillars). It is unambiguous about what the tool produces. It stops short of naming a sibling (e.g. astroway_reports_chinese_year) to contrast against, so the differentiation is implicit.

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 context is implied rather than stated: 'when `gender` is given' triggers luck pillars, `pdf` is the default, and 'No AI' distinguishes it from the narrative siblings. The cost warning with 'Confirm with user before invoking' is genuine operational guidance. However, there is no explicit when-to-use/when-not-to-use or named alternative among the many reports_* siblings.

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