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)]

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_bazi_four_pillars"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYes
timeNo
fieldsNoComma-separated paths inside `data` to keep, e.g. "planets.name,houses.cusp".
languageNo
timezoneNoIANA zone (Europe/Kyiv) or "auto" from latitude/longitude; replaces timezoneOffset. Before 1970 prefer timezoneOffset.
precisionNoRound numbers to this many decimals.
timezoneOffsetNoIgnored when timezone is sent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • changedInput schema / properties / fields / description
      Previous value: -"Compact mode: comma-separated dotted paths to keep, relative to `data`, e.g. \"planets.name,planets.longitude,houses.cusp\". Omit for the whole response."New value: +"Comma-separated paths inside `data` to keep, e.g. \"planets.name,houses.cusp\"."
    • changedInput schema / properties / precision / description
      Previous value: -"Compact mode: round fractional numbers to this many decimals. Longitudes carry 14 by default; 2 is finer than any chart is drawn."New value: +"Round numbers to this many decimals."
    • changedInput schema / properties / timezone / description
      Previous value: -"IANA 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."New value: +"IANA zone (Europe/Kyiv) or \"auto\" from latitude/longitude; replaces timezoneOffset. Before 1970 prefer timezoneOffset."
    • changedOutput schema / (root)
      Previous value: -{
      -  "$schema": "http://json-schema.org/draft-07/schema#",
      -  "additionalProperties": {},
      -  "properties": {
      -    "dayPillar": {
      -      "anyOf": [
      -        {
      -          "additionalProperties": {},
      -          "properties": {
      -            "animal": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "branch": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "branchElement": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "pillar": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "stem": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "stemElement": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "yin": {
      -              "type": [
      -                "boolean",
      -                "null"
      -              ]
      -            }
      -          },
      -          "type": "object"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ]
      -    },
      -    "disclaimer": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "hourPillar": {
      -      "anyOf": [
      -        {
      -          "additionalProperties": {},
      -          "properties": {
      -            "animal": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "branch": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "branchElement": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "pillar": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "stem": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "stemElement": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "yin": {
      -              "type": [
      -                "boolean",
      -                "null"
      -              ]
      -            }
      -          },
      -          "type": "object"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ]
      -    },
      -    "monthPillar": {
      -      "anyOf": [
      -        {
      -          "additionalProperties": {},
      -          "properties": {
      -            "animal": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "branch": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "branchElement": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "pillar": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "stem": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "stemElement": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            }
      -          },
      -          "type": "object"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ]
      -    },
      -    "notes": {
      -      "anyOf": [
      -        {
      -          "items": {
      -            "anyOf": [
      -              {},
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "type": "array"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ]
      -    },
      -    "solarYear": {
      -      "type": [
      -        "number",
      -        "null"
      -      ]
      -    },
      -    "yearPillar": {
      -      "anyOf": [
      -        {
      -          "additionalProperties": {},
      -          "properties": {
      -            "animal": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "branch": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "branchElement": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "pillar": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "stem": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "stemElement": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            }
      -          },
      -          "type": "object"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ]
      -    }
      -  },
      -  "type": "object"
      -}New value: +null
  2. Changed8 schema fields changed
    • changedOutput schema / properties / dayPillar / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {},
      -    "properties": {
      -      "animal": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "branch": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "branchElement": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "pillar": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "stem": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "stemElement": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "yin": {
      -        "anyOf": [
      -          {
      -            "type": "boolean"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "animal": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "branch": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "branchElement": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "pillar": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "stem": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "stemElement": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "yin": {
      +        "type": [
      +          "boolean",
      +          "null"
      +        ]
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / disclaimer / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / disclaimer / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / hourPillar / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {},
      -    "properties": {
      -      "animal": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "branch": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "branchElement": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "pillar": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "stem": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "stemElement": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "yin": {
      -        "anyOf": [
      -          {
      -            "type": "boolean"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "animal": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "branch": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "branchElement": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "pillar": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "stem": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "stemElement": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "yin": {
      +        "type": [
      +          "boolean",
      +          "null"
      +        ]
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / monthPillar / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {},
      -    "properties": {
      -      "animal": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "branch": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "branchElement": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "pillar": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "stem": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "stemElement": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "animal": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "branch": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "branchElement": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "pillar": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "stem": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "stemElement": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / solarYear / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / solarYear / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • changedOutput schema / properties / yearPillar / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {},
      -    "properties": {
      -      "animal": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "branch": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "branchElement": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "pillar": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "stem": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "stemElement": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "animal": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "branch": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "branchElement": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "pillar": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "stem": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "stemElement": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  3. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), so the description earns credit for adding domain behavior instead: the 60-jiazi anchor (1990-01-01 = Bing-Yin), the 23:00 local roll for day/hour, and Lichun/節 instant boundaries for year/month. The 10-credit cost is also disclosed, though the returned data shape is not described.

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?

Sentences are dense and front-loaded: deliverable first, then the algorithm anchor, then the conditional/roll semantics. The bracketed metadata block (group, endpoint, required, cost) is boilerplate but compactly useful; 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?

With no output schema, the description carries the burden of describing what comes back, and it says nothing about the response shape (pillars, stems/branches, jiazi strings) or about `fields` filtering. It is complete on computation rules but incomplete on result semantics for a 7-parameter 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%, and the description meaningfully explains one key parameter: `time` activates hour-pillar computation. However, it never explains how `timezone`/`timezoneOffset` interact with the stated 23:00-local roll or the Lichun boundaries, which is the single most consequential ambiguity for correct invocation. `fields`, `language`, and `precision` rely entirely on the schema.

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 concrete deliverable: all four pillars (year, month, day, hour) in one call, with the day-pillar algorithm named. The 'all four' framing implicitly distinguishes it from the single-pillar siblings (astroway_bazi_hour_pillar, astroway_bazi_month_pillar, etc.), but no sibling is named explicitly as an alternative.

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?

The conditional 'Pass `time` to compute the hour pillar' is a real usage rule, and the required-parameter line clarifies `date` is mandatory. There is no explicit when-to-use/when-not guidance versus the individual pillar endpoints or astroway_bazi_chart, so the choice is left implicit.

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