Skip to main content
Glama
OpenFate Bazi MCP

OpenFate Bazi MCP

Official
by openfate-ai

Read a Bazi Relationship Chapter

read_bazi_relationship
Read-onlyIdempotent

Generates a deterministic Traditional Chinese Bazi relationship chapter from natal positions, with chart, rule ID/version, and evidence pointers; unknown birth hour returns an unavailable chapter.

Instructions

Produce a deterministic Traditional Chinese relationship chapter with the chart, rule ID, rule version and evidence pointers. Uses only natal positions. An unknown birth hour returns an explicitly unavailable chapter.

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": {
      "year": "<year>",
      "month": "<month>",
      "day": "<day>",
      "gender": "<gender>"
    },
    "name": "read_bazi_relationship"
  }
}

Input Schema

NameRequiredDescriptionDefault
dayYesBirth day, 1-31.
hourNoBirth hour in local civil time, 0-23. Omit when birth time is unknown.
yearYesBirth year. Use the lunar year when calendarType is lunar.
monthYesBirth month, 1-12.
genderYesBirth gender used for Da Yun direction.
minuteNoBirth minute in local civil time.
secondNoBirth second in local civil time.
timezoneNoUTC offset in hours for the birth clock time, such as 8 for China or -5 for US Eastern Standard Time.
dstOffsetNoDaylight saving offset in hours to remove from civil clock time. Use 1 for one-hour DST.
longitudeNoBirthplace longitude in decimal degrees. Enables true solar time correction.
timezoneIdNoOptional IANA timezone ID, such as Asia/Shanghai or America/New_York.
isLeapMonthNoWhether the lunar input month is a leap month. Used only when calendarType is lunar.
calendarTypeNoInput calendar type.solar
dayBoundaryModeNoDay-change rule. ZI_HOUR_23 means 23:00 starts the next day pillar.ZI_HOUR_23
enableTrueSolarTimeNoApply true solar time when longitude and timezone data are available.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, closed-world behavior. The description adds useful behavioral context beyond that: deterministic output, use of only natal positions, and the explicit fallback when the birth hour is unknown.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is three compact sentences with no wasted wording. It front-loads the core action and follows with scope and edge-case behavior.

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?

For a 15-parameter tool with no output schema, the description gives key return components and an important edge case. It is largely complete for invocation, though the exact scope of a 'relationship chapter' from a single natal chart remains somewhat implicit.

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 100%, so the parameter meanings are already fully documented. The description adds the consequence of an omitted birth hour, but does not otherwise explain parameter semantics beyond what the schema provides.

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 uses a specific verb and resource: produce a deterministic Traditional Chinese relationship chapter. It also names the output artifacts (chart, rule ID, rule version, evidence pointers). It does not explicitly differentiate itself from siblings such as read_bazi_corpus_chapter or calculate_bazi_chart.

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?

There is no explicit when-to-use guidance or named alternative. 'Uses only natal positions' implies a boundary, but the description does not tell the agent when to choose this tool over related chart-calculation or corpus-reading tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.