Skip to main content
Glama

Liki — Professional AI Astrologer

bazhai_layout

Read-onlyIdempotent

八宅门主灶配合:评估命卦与门/主/灶卦的游年九星、方向与吉凶。门/主/灶卦必须来自建筑方位或用户确认事实,本工具不反推方位。已由 bazhai_chart 得到命卦后调用;输出是八宅学派确定性参考判断,不是施工或安全建议;玄空飞星用 xuankong 工具。

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": {
      "ming_gua": "<ming_gua>",
      "door_gua": "<door_gua>",
      "master_gua": "<master_gua>",
      "stove_gua": "<stove_gua>"
    },
    "name": "bazhai_layout"
  }
}

Input Schema

NameRequiredDescriptionDefault
door_guaYes门卦。
ming_guaYes命卦。
stove_guaYes灶卦。
master_guaYes主卧卦。

Output Schema

NameRequiredDescriptionDefault
doorYes门位判断。
groupYes东四命或西四命。
stoveYes灶位判断。
masterYes主卧判断。
ming_guaYes命卦。

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed16 schema fields changed
    • addedOutput schema / $defs / Object_ed897767d7210de2
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "direction": {
      +      "$ref": "#/$defs/Enum_1bbaa6d8524570cb",
      +      "description": "方位。"
      +    },
      +    "group": {
      +      "$ref": "#/$defs/Enum_b85e3df3fa527d23",
      +      "description": "东四卦或西四卦。"
      +    },
      +    "gua_name": {
      +      "$ref": "#/$defs/Enum_91fe5b138825bbf3",
      +      "description": "卦名。"
      +    },
      +    "match": {
      +      "$ref": "#/$defs/Enum_59015bc8901784b5",
      +      "description": "与命卦同组吉,异组凶。"
      +    },
      +    "rating": {
      +      "$ref": "#/$defs/Enum_bd4f53a20f160acb",
      +      "description": "吉凶等级。"
      +    },
      +    "wuxing": {
      +      "$ref": "#/$defs/Enum_c97a3d8aae122726",
      +      "description": "卦五行。"
      +    },
      +    "youxing": {
      +      "$ref": "#/$defs/Enum_f0fd11a3b18b1783",
      +      "description": "游年九星。"
      +    }
      +  },
      +  "required": [
      +    "direction",
      +    "gua_name",
      +    "wuxing",
      +    "youxing",
      +    "rating",
      +    "group",
      +    "match"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / door / $ref
      Added value: +"#/$defs/Object_ed897767d7210de2"
    • removedOutput schema / properties / door / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / door / properties
      Removed value: -{
      -  "direction": {
      -    "$ref": "#/$defs/Enum_1bbaa6d8524570cb",
      -    "description": "方位。"
      -  },
      -  "group": {
      -    "$ref": "#/$defs/Enum_b85e3df3fa527d23",
      -    "description": "东四卦或西四卦。"
      -  },
      -  "gua_name": {
      -    "$ref": "#/$defs/Enum_91fe5b138825bbf3",
      -    "description": "卦名。"
      -  },
      -  "match": {
      -    "$ref": "#/$defs/Enum_59015bc8901784b5",
      -    "description": "与命卦同组吉,异组凶。"
      -  },
      -  "rating": {
      -    "$ref": "#/$defs/Enum_bd4f53a20f160acb",
      -    "description": "吉凶等级。"
      -  },
      -  "wuxing": {
      -    "$ref": "#/$defs/Enum_c97a3d8aae122726",
      -    "description": "卦五行。"
      -  },
      -  "youxing": {
      -    "$ref": "#/$defs/Enum_f0fd11a3b18b1783",
      -    "description": "游年九星。"
      -  }
      -}
    • removedOutput schema / properties / door / required
      Removed value: -[
      -  "direction",
      -  "gua_name",
      -  "wuxing",
      -  "youxing",
      -  "rating",
      -  "group",
      -  "match"
      -]
    • removedOutput schema / properties / door / type
      Removed value: -"object"
    • addedOutput schema / properties / master / $ref
      Added value: +"#/$defs/Object_ed897767d7210de2"
    • removedOutput schema / properties / master / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / master / properties
      Removed value: -{
      -  "direction": {
      -    "$ref": "#/$defs/Enum_1bbaa6d8524570cb",
      -    "description": "方位。"
      -  },
      -  "group": {
      -    "$ref": "#/$defs/Enum_b85e3df3fa527d23",
      -    "description": "东四卦或西四卦。"
      -  },
      -  "gua_name": {
      -    "$ref": "#/$defs/Enum_91fe5b138825bbf3",
      -    "description": "卦名。"
      -  },
      -  "match": {
      -    "$ref": "#/$defs/Enum_59015bc8901784b5",
      -    "description": "与命卦同组吉,异组凶。"
      -  },
      -  "rating": {
      -    "$ref": "#/$defs/Enum_bd4f53a20f160acb",
      -    "description": "吉凶等级。"
      -  },
      -  "wuxing": {
      -    "$ref": "#/$defs/Enum_c97a3d8aae122726",
      -    "description": "卦五行。"
      -  },
      -  "youxing": {
      -    "$ref": "#/$defs/Enum_f0fd11a3b18b1783",
      -    "description": "游年九星。"
      -  }
      -}
    • removedOutput schema / properties / master / required
      Removed value: -[
      -  "direction",
      -  "gua_name",
      -  "wuxing",
      -  "youxing",
      -  "rating",
      -  "group",
      -  "match"
      -]
    • removedOutput schema / properties / master / type
      Removed value: -"object"
    • addedOutput schema / properties / stove / $ref
      Added value: +"#/$defs/Object_ed897767d7210de2"
    • removedOutput schema / properties / stove / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / stove / properties
      Removed value: -{
      -  "direction": {
      -    "$ref": "#/$defs/Enum_1bbaa6d8524570cb",
      -    "description": "方位。"
      -  },
      -  "group": {
      -    "$ref": "#/$defs/Enum_b85e3df3fa527d23",
      -    "description": "东四卦或西四卦。"
      -  },
      -  "gua_name": {
      -    "$ref": "#/$defs/Enum_91fe5b138825bbf3",
      -    "description": "卦名。"
      -  },
      -  "match": {
      -    "$ref": "#/$defs/Enum_59015bc8901784b5",
      -    "description": "与命卦同组吉,异组凶。"
      -  },
      -  "rating": {
      -    "$ref": "#/$defs/Enum_bd4f53a20f160acb",
      -    "description": "吉凶等级。"
      -  },
      -  "wuxing": {
      -    "$ref": "#/$defs/Enum_c97a3d8aae122726",
      -    "description": "卦五行。"
      -  },
      -  "youxing": {
      -    "$ref": "#/$defs/Enum_f0fd11a3b18b1783",
      -    "description": "游年九星。"
      -  }
      -}
    • removedOutput schema / properties / stove / required
      Removed value: -[
      -  "direction",
      -  "gua_name",
      -  "wuxing",
      -  "youxing",
      -  "rating",
      -  "group",
      -  "match"
      -]
    • removedOutput schema / properties / stove / type
      Removed value: -"object"
  2. Changed80 schema fields changed
    • addedInput schema / $defs
      Added value: +{
      +  "Enum_91fe5b138825bbf3": {
      +    "enum": [
      +      "坎",
      +      "坤",
      +      "震",
      +      "巽",
      +      "乾",
      +      "兑",
      +      "艮",
      +      "离"
      +    ],
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / door_gua / $ref
      Added value: +"#/$defs/Enum_91fe5b138825bbf3"
    • removedInput schema / properties / door_gua / enum
      Removed value: -[
      -  "坎",
      -  "坤",
      -  "震",
      -  "巽",
      -  "乾",
      -  "兑",
      -  "艮",
      -  "离"
      -]
    • removedInput schema / properties / door_gua / type
      Removed value: -"string"
    • addedInput schema / properties / master_gua / $ref
      Added value: +"#/$defs/Enum_91fe5b138825bbf3"
    • removedInput schema / properties / master_gua / enum
      Removed value: -[
      -  "坎",
      -  "坤",
      -  "震",
      -  "巽",
      -  "乾",
      -  "兑",
      -  "艮",
      -  "离"
      -]
    • removedInput schema / properties / master_gua / type
      Removed value: -"string"
    • addedInput schema / properties / ming_gua / $ref
      Added value: +"#/$defs/Enum_91fe5b138825bbf3"
    • removedInput schema / properties / ming_gua / enum
      Removed value: -[
      -  "坎",
      -  "坤",
      -  "震",
      -  "巽",
      -  "乾",
      -  "兑",
      -  "艮",
      -  "离"
      -]
    • removedInput schema / properties / ming_gua / type
      Removed value: -"string"
    • addedInput schema / properties / stove_gua / $ref
      Added value: +"#/$defs/Enum_91fe5b138825bbf3"
    • removedInput schema / properties / stove_gua / enum
      Removed value: -[
      -  "坎",
      -  "坤",
      -  "震",
      -  "巽",
      -  "乾",
      -  "兑",
      -  "艮",
      -  "离"
      -]
    • removedInput schema / properties / stove_gua / type
      Removed value: -"string"
    • addedOutput schema / $defs
      Added value: +{
      +  "Enum_1bbaa6d8524570cb": {
      +    "enum": [
      +      "北",
      +      "东北",
      +      "东",
      +      "东南",
      +      "南",
      +      "西南",
      +      "西",
      +      "西北"
      +    ],
      +    "type": "string"
      +  },
      +  "Enum_59015bc8901784b5": {
      +    "enum": [
      +      "吉",
      +      "凶"
      +    ],
      +    "type": "string"
      +  },
      +  "Enum_91fe5b138825bbf3": {
      +    "enum": [
      +      "坎",
      +      "坤",
      +      "震",
      +      "巽",
      +      "乾",
      +      "兑",
      +      "艮",
      +      "离"
      +    ],
      +    "type": "string"
      +  },
      +  "Enum_b85e3df3fa527d23": {
      +    "enum": [
      +      "东四卦",
      +      "西四卦"
      +    ],
      +    "type": "string"
      +  },
      +  "Enum_bd4f53a20f160acb": {
      +    "enum": [
      +      "大吉",
      +      "吉",
      +      "平",
      +      "凶",
      +      "大凶"
      +    ],
      +    "type": "string"
      +  },
      +  "Enum_c97a3d8aae122726": {
      +    "enum": [
      +      "水",
      +      "土",
      +      "木",
      +      "金",
      +      "火"
      +    ],
      +    "type": "string"
      +  },
      +  "Enum_f0fd11a3b18b1783": {
      +    "enum": [
      +      "生气",
      +      "天医",
      +      "延年",
      +      "伏位",
      +      "祸害",
      +      "五鬼",
      +      "六煞",
      +      "绝命"
      +    ],
      +    "type": "string"
      +  }
      +}
    • addedOutput schema / properties / door / properties / direction / $ref
      Added value: +"#/$defs/Enum_1bbaa6d8524570cb"
    • removedOutput schema / properties / door / properties / direction / enum
      Removed value: -[
      -  "北",
      -  "东北",
      -  "东",
      -  "东南",
      -  "南",
      -  "西南",
      -  "西",
      -  "西北"
      -]
    • removedOutput schema / properties / door / properties / direction / type
      Removed value: -"string"
    • addedOutput schema / properties / door / properties / group / $ref
      Added value: +"#/$defs/Enum_b85e3df3fa527d23"
    • removedOutput schema / properties / door / properties / group / enum
      Removed value: -[
      -  "东四卦",
      -  "西四卦"
      -]
    • removedOutput schema / properties / door / properties / group / type
      Removed value: -"string"
    • addedOutput schema / properties / door / properties / gua_name / $ref
      Added value: +"#/$defs/Enum_91fe5b138825bbf3"
    • removedOutput schema / properties / door / properties / gua_name / enum
      Removed value: -[
      -  "坎",
      -  "坤",
      -  "震",
      -  "巽",
      -  "乾",
      -  "兑",
      -  "艮",
      -  "离"
      -]
    • removedOutput schema / properties / door / properties / gua_name / type
      Removed value: -"string"
    • addedOutput schema / properties / door / properties / match / $ref
      Added value: +"#/$defs/Enum_59015bc8901784b5"
    • removedOutput schema / properties / door / properties / match / enum
      Removed value: -[
      -  "吉",
      -  "凶"
      -]
    • removedOutput schema / properties / door / properties / match / type
      Removed value: -"string"
    • addedOutput schema / properties / door / properties / rating / $ref
      Added value: +"#/$defs/Enum_bd4f53a20f160acb"
    • removedOutput schema / properties / door / properties / rating / enum
      Removed value: -[
      -  "大吉",
      -  "吉",
      -  "平",
      -  "凶",
      -  "大凶"
      -]
    • removedOutput schema / properties / door / properties / rating / type
      Removed value: -"string"
    • addedOutput schema / properties / door / properties / wuxing / $ref
      Added value: +"#/$defs/Enum_c97a3d8aae122726"
    • removedOutput schema / properties / door / properties / wuxing / enum
      Removed value: -[
      -  "水",
      -  "土",
      -  "木",
      -  "金",
      -  "火"
      -]
    • removedOutput schema / properties / door / properties / wuxing / type
      Removed value: -"string"
    • addedOutput schema / properties / door / properties / youxing / $ref
      Added value: +"#/$defs/Enum_f0fd11a3b18b1783"
    • removedOutput schema / properties / door / properties / youxing / enum
      Removed value: -[
      -  "生气",
      -  "天医",
      -  "延年",
      -  "伏位",
      -  "祸害",
      -  "五鬼",
      -  "六煞",
      -  "绝命"
      -]
    • removedOutput schema / properties / door / properties / youxing / type
      Removed value: -"string"
    • addedOutput schema / properties / master / properties / direction / $ref
      Added value: +"#/$defs/Enum_1bbaa6d8524570cb"
    • removedOutput schema / properties / master / properties / direction / enum
      Removed value: -[
      -  "北",
      -  "东北",
      -  "东",
      -  "东南",
      -  "南",
      -  "西南",
      -  "西",
      -  "西北"
      -]
    • removedOutput schema / properties / master / properties / direction / type
      Removed value: -"string"
    • addedOutput schema / properties / master / properties / group / $ref
      Added value: +"#/$defs/Enum_b85e3df3fa527d23"
    • removedOutput schema / properties / master / properties / group / enum
      Removed value: -[
      -  "东四卦",
      -  "西四卦"
      -]
    • removedOutput schema / properties / master / properties / group / type
      Removed value: -"string"
    • addedOutput schema / properties / master / properties / gua_name / $ref
      Added value: +"#/$defs/Enum_91fe5b138825bbf3"
    • removedOutput schema / properties / master / properties / gua_name / enum
      Removed value: -[
      -  "坎",
      -  "坤",
      -  "震",
      -  "巽",
      -  "乾",
      -  "兑",
      -  "艮",
      -  "离"
      -]
    • removedOutput schema / properties / master / properties / gua_name / type
      Removed value: -"string"
    • addedOutput schema / properties / master / properties / match / $ref
      Added value: +"#/$defs/Enum_59015bc8901784b5"
    • removedOutput schema / properties / master / properties / match / enum
      Removed value: -[
      -  "吉",
      -  "凶"
      -]
    • removedOutput schema / properties / master / properties / match / type
      Removed value: -"string"
    • addedOutput schema / properties / master / properties / rating / $ref
      Added value: +"#/$defs/Enum_bd4f53a20f160acb"
    • removedOutput schema / properties / master / properties / rating / enum
      Removed value: -[
      -  "大吉",
      -  "吉",
      -  "平",
      -  "凶",
      -  "大凶"
      -]
    • removedOutput schema / properties / master / properties / rating / type
      Removed value: -"string"
    • addedOutput schema / properties / master / properties / wuxing / $ref
      Added value: +"#/$defs/Enum_c97a3d8aae122726"
    • removedOutput schema / properties / master / properties / wuxing / enum
      Removed value: -[
      -  "水",
      -  "土",
      -  "木",
      -  "金",
      -  "火"
      -]
    • removedOutput schema / properties / master / properties / wuxing / type
      Removed value: -"string"
    • addedOutput schema / properties / master / properties / youxing / $ref
      Added value: +"#/$defs/Enum_f0fd11a3b18b1783"
    • removedOutput schema / properties / master / properties / youxing / enum
      Removed value: -[
      -  "生气",
      -  "天医",
      -  "延年",
      -  "伏位",
      -  "祸害",
      -  "五鬼",
      -  "六煞",
      -  "绝命"
      -]
    • removedOutput schema / properties / master / properties / youxing / type
      Removed value: -"string"
    • addedOutput schema / properties / ming_gua / $ref
      Added value: +"#/$defs/Enum_91fe5b138825bbf3"
    • removedOutput schema / properties / ming_gua / enum
      Removed value: -[
      -  "坎",
      -  "坤",
      -  "震",
      -  "巽",
      -  "乾",
      -  "兑",
      -  "艮",
      -  "离"
      -]
    • removedOutput schema / properties / ming_gua / type
      Removed value: -"string"
    • addedOutput schema / properties / stove / properties / direction / $ref
      Added value: +"#/$defs/Enum_1bbaa6d8524570cb"
    • removedOutput schema / properties / stove / properties / direction / enum
      Removed value: -[
      -  "北",
      -  "东北",
      -  "东",
      -  "东南",
      -  "南",
      -  "西南",
      -  "西",
      -  "西北"
      -]
    • removedOutput schema / properties / stove / properties / direction / type
      Removed value: -"string"
    • addedOutput schema / properties / stove / properties / group / $ref
      Added value: +"#/$defs/Enum_b85e3df3fa527d23"
    • removedOutput schema / properties / stove / properties / group / enum
      Removed value: -[
      -  "东四卦",
      -  "西四卦"
      -]
    • removedOutput schema / properties / stove / properties / group / type
      Removed value: -"string"
    • addedOutput schema / properties / stove / properties / gua_name / $ref
      Added value: +"#/$defs/Enum_91fe5b138825bbf3"
    • removedOutput schema / properties / stove / properties / gua_name / enum
      Removed value: -[
      -  "坎",
      -  "坤",
      -  "震",
      -  "巽",
      -  "乾",
      -  "兑",
      -  "艮",
      -  "离"
      -]
    • removedOutput schema / properties / stove / properties / gua_name / type
      Removed value: -"string"
    • addedOutput schema / properties / stove / properties / match / $ref
      Added value: +"#/$defs/Enum_59015bc8901784b5"
    • removedOutput schema / properties / stove / properties / match / enum
      Removed value: -[
      -  "吉",
      -  "凶"
      -]
    • removedOutput schema / properties / stove / properties / match / type
      Removed value: -"string"
    • addedOutput schema / properties / stove / properties / rating / $ref
      Added value: +"#/$defs/Enum_bd4f53a20f160acb"
    • removedOutput schema / properties / stove / properties / rating / enum
      Removed value: -[
      -  "大吉",
      -  "吉",
      -  "平",
      -  "凶",
      -  "大凶"
      -]
    • removedOutput schema / properties / stove / properties / rating / type
      Removed value: -"string"
    • addedOutput schema / properties / stove / properties / wuxing / $ref
      Added value: +"#/$defs/Enum_c97a3d8aae122726"
    • removedOutput schema / properties / stove / properties / wuxing / enum
      Removed value: -[
      -  "水",
      -  "土",
      -  "木",
      -  "金",
      -  "火"
      -]
    • removedOutput schema / properties / stove / properties / wuxing / type
      Removed value: -"string"
    • addedOutput schema / properties / stove / properties / youxing / $ref
      Added value: +"#/$defs/Enum_f0fd11a3b18b1783"
    • removedOutput schema / properties / stove / properties / youxing / enum
      Removed value: -[
      -  "生气",
      -  "天医",
      -  "延年",
      -  "伏位",
      -  "祸害",
      -  "五鬼",
      -  "六煞",
      -  "绝命"
      -]
    • removedOutput schema / properties / stove / properties / youxing / type
      Removed value: -"string"
  3. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already flag readOnlyHint and idempotentHint, so the safety profile is covered; the description adds that this tool refuses to infer orientations and that output is a deterministic 八宅-school reference judgment, not construction or safety advice. That framing beyond annotations is valuable, though nothing is said about behavior with inconsistent or invalid gua combinations.

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?

Dense but front-loaded: purpose first, then input provenance constraint, then prerequisite and alternatives. No sentence is redundant, and each clause carries a distinct operational or interpretive instruction.

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?

With an output schema present, return values need no explanation, and the description covers purpose, prerequisites, input provenance, and interpretive limits. Only edge-case handling (mismatched or invalid gua) is left unaddressed, which is a minor gap for a four-required-parameter tool.

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?

Schema coverage is 100% and each of the four gua parameters carries a short label, so the schema does the heavy lifting. The description still adds real meaning by specifying the provenance requirement for those gua values (building orientation or user-confirmed fact), which the schema does not state.

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?

States a specific verb and resource — evaluating the 游年九星, direction, and auspiciousness for a 命卦 combined with 门/主/灶 gua. It also distinguishes itself from siblings by naming bazhai_chart as the prerequisite and directing 玄空飞星 users to the xuankong tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit preconditions are given ('已由 bazhai_chart 得到命卦后调用'), along with a hard constraint that the door/master/stove gua must come from building orientation or user-confirmed facts and are not reverse-derived. It also names the alternative school tool (xuankong) for a different analysis, so the agent has both a when-to-use and a when-to-use-something-else.

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