Skip to main content
Glama
OpenFate Bazi MCP

OpenFate Bazi MCP

Official
by openfate-ai

Detect Bazi Interactions

detect_bazi_interactions
Read-onlyIdempotent

Detect Earthly Branch interactions in Bazi natal, annual, and Da Yun pillars. Returns every matching pillar position and repeated branch for all relationship types without weighting or transformation.

Instructions

Detect raw Earthly Branch relationship occurrences for a natal chart and optional annual and Da Yun branches. Preserves every matching pillar position, including repeated branches. Covers clashes, six-combinations, the eight central-branch half-trines (COMBINATION_HALF), full trines, directionals, punishments, destructions, and harms. Results establish relationship presence, not weights, cancellation, or automatic transformation; targetElement is an affinity, not transformed energy.

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": {
      "yearBranch": "<yearBranch>",
      "monthBranch": "<monthBranch>",
      "dayBranch": "<dayBranch>"
    },
    "name": "detect_bazi_interactions"
  }
}

Input Schema

NameRequiredDescriptionDefault
dayBranchYesNatal day branch.
hourBranchNoNatal hour branch. Omit when birth time is unknown.
yearBranchYesNatal year branch.
dayunBranchNoOptional Da Yun branch. Preserved as the dayun pillar role, independently of the annual and natal branches.
monthBranchYesNatal month branch.
annualBranchNoOptional annual or target branch. Preserved as the annual pillar role, independently of repeated natal branches.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.5.0
    • removedInput schema / properties / annualBranch / $ref
      Removed value: -"#/properties/hourBranch"
    • addedInput schema / properties / annualBranch / enum
      Added value: +[
      +  "子",
      +  "丑",
      +  "寅",
      +  "卯",
      +  "辰",
      +  "巳",
      +  "午",
      +  "未",
      +  "申",
      +  "酉",
      +  "戌",
      +  "亥"
      +]
    • addedInput schema / properties / annualBranch / type
      Added value: +"string"
    • removedInput schema / properties / dayunBranch / $ref
      Removed value: -"#/properties/hourBranch"
    • addedInput schema / properties / dayunBranch / enum
      Added value: +[
      +  "子",
      +  "丑",
      +  "寅",
      +  "卯",
      +  "辰",
      +  "巳",
      +  "午",
      +  "未",
      +  "申",
      +  "酉",
      +  "戌",
      +  "亥"
      +]
    • addedInput schema / properties / dayunBranch / type
      Added value: +"string"
  2. Changed2 schema fields changedv0.3.1
    • changedInput schema / properties / annualBranch / description
      Previous value: -"Optional annual or target branch for dynamic interaction detection."New value: +"Optional annual or target branch. Preserved as the annual pillar role, independently of repeated natal branches."
    • addedInput schema / properties / dayunBranch
      Added value: +{
      +  "$ref": "#/properties/hourBranch",
      +  "description": "Optional Da Yun branch. Preserved as the dayun pillar role, independently of the annual and natal branches."
      +}
  3. First observedv0.1.0

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, closed-world behavior, so the safety profile is covered. Beyond that, the description adds real behavioral context: every matching pillar position is preserved, repeated branches are retained rather than deduplicated, and outputs represent presence only — not weighting, cancellation, or transformation — with targetElement framed as affinity rather than transformed energy.

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?

Three sentences, front-loaded with the core action, then the preservation guarantee, then the enumerated scope and the interpretative caveat. The enumeration is long but functionally necessary to bound coverage; mild density of domain jargon is the only cost.

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?

This is a pure read-only computation with no output schema, so the description must carry return-value semantics — and it does, explaining that results express relationship presence, retain all pillar positions, and treat targetElement as affinity. What is missing is the concrete shape of the returned results (per-match fields, ordering), which an agent would need since no output schema exists.

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% and every parameter is a documented enum with its pillar role explained (including omission of hourBranch when birth time is unknown), so the schema already carries parameter meaning. The description reinforces optionality of annual/dayun branches and the preservation of pillar roles, but adds little syntax or semantic detail the schema lacks — the baseline 3 applies.

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?

The description names a specific verb ('Detect') and a precisely bounded resource ('raw Earthly Branch relationship occurrences') and scopes it to a natal chart plus optional annual/Da Yun branches. It then enumerates the exact relationship classes covered (clashes, six-combinations, half-trine COMBINATION_HALF, full trines, directionals, punishments, destructions, harms), which lets an agent distinguish this computational detector from corpus-reading siblings like read_bazi_relationship.

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 is implied rather than stated: the description makes clear this is the tool for enumerating raw branch relationships and explicitly narrows scope ('establishes relationship presence, not weights, cancellation, or automatic transformation'), which functions as a partial when-not statement. However, no alternative tool is named and there is no explicit 'use this when…' routing guidance against siblings.

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