Skip to main content
Glama

Liki — Professional AI Astrologer

ziwei_chart

Read-onlyIdempotent

紫微斗数排本命盘并返回确定性宫位事实。subject 可由用户明确事实组装,也可取自用户确认后的 subject_candidates 候选;时间模糊或多候选时先归一化并确认。需要十二宫主星、亮度、四化、杂曜、长生博士十二神、小限或大限时调用。两人合盘用 ziwei_bond,流盘用 ziwei_liupan,八字紫微断语合参用 natal_query。

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": {
      "subject": "<subject>"
    },
    "name": "ziwei_chart"
  }
}

Input Schema

NameRequiredDescriptionDefault
subjectYes已归一化的出生主体。

Output Schema

NameRequiredDescriptionDefault
ge_juNo紫微格局候选。
ju_shuYes局数机器码。
da_xianYes十年大限序列。
shi_zhiYes时支。
kou_jingYes排盘口径。
ming_zhuNo命主。
nian_ganYes年干。
nian_zhiNo年支。
shen_zhuNo身主。
kong_gongNo空宫借星;只表达宫位关系,星曜由 jie_gong 宫承载。
lunar_dayNo排盘农历日。
birth_yearYes出生公历年。
ju_shu_nameYes局数名。
lunar_monthNo排盘调整农历月。
shi_er_gongYes十二宫;从命宫起顺布。
birth_is_leapNo出生农历月是否闰月。
birth_lunar_monthNo出生原始农历月。
san_fang_si_zhengYes命宫三方四正的宫位关系;星曜由所引宫位承载。

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed33 schema fields changed
    • addedOutput schema / $defs
      Added value: +{
      +  "Enum_0a9661daa68f09b8": {
      +    "enum": [
      +      "仆役",
      +      "兄弟",
      +      "命宫",
      +      "夫妻",
      +      "子女",
      +      "官禄",
      +      "父母",
      +      "田宅",
      +      "疾厄",
      +      "福德",
      +      "财帛",
      +      "迁移"
      +    ],
      +    "type": "string"
      +  },
      +  "Enum_3568b80210617254": {
      +    "enum": [
      +      "甲",
      +      "乙",
      +      "丙",
      +      "丁",
      +      "戊",
      +      "己",
      +      "庚",
      +      "辛",
      +      "壬",
      +      "癸"
      +    ],
      +    "type": "string"
      +  },
      +  "Enum_c8bf5d32ca0ac601": {
      +    "enum": [
      +      "子",
      +      "丑",
      +      "寅",
      +      "卯",
      +      "辰",
      +      "巳",
      +      "午",
      +      "未",
      +      "申",
      +      "酉",
      +      "戌",
      +      "亥"
      +    ],
      +    "type": "string"
      +  }
      +}
    • addedOutput schema / properties / da_xian / items / properties / ming_gong / $ref
      Added value: +"#/$defs/Enum_0a9661daa68f09b8"
    • removedOutput schema / properties / da_xian / items / properties / ming_gong / enum
      Removed value: -[
      -  "仆役",
      -  "兄弟",
      -  "命宫",
      -  "夫妻",
      -  "子女",
      -  "官禄",
      -  "父母",
      -  "田宅",
      -  "疾厄",
      -  "福德",
      -  "财帛",
      -  "迁移"
      -]
    • removedOutput schema / properties / da_xian / items / properties / ming_gong / type
      Removed value: -"string"
    • addedOutput schema / properties / kong_gong / items / properties / jie_gong / $ref
      Added value: +"#/$defs/Enum_0a9661daa68f09b8"
    • removedOutput schema / properties / kong_gong / items / properties / jie_gong / enum
      Removed value: -[
      -  "仆役",
      -  "兄弟",
      -  "命宫",
      -  "夫妻",
      -  "子女",
      -  "官禄",
      -  "父母",
      -  "田宅",
      -  "疾厄",
      -  "福德",
      -  "财帛",
      -  "迁移"
      -]
    • removedOutput schema / properties / kong_gong / items / properties / jie_gong / type
      Removed value: -"string"
    • addedOutput schema / properties / kong_gong / items / properties / kong_gong / $ref
      Added value: +"#/$defs/Enum_0a9661daa68f09b8"
    • removedOutput schema / properties / kong_gong / items / properties / kong_gong / enum
      Removed value: -[
      -  "仆役",
      -  "兄弟",
      -  "命宫",
      -  "夫妻",
      -  "子女",
      -  "官禄",
      -  "父母",
      -  "田宅",
      -  "疾厄",
      -  "福德",
      -  "财帛",
      -  "迁移"
      -]
    • removedOutput schema / properties / kong_gong / items / properties / kong_gong / type
      Removed value: -"string"
    • addedOutput schema / properties / nian_gan / $ref
      Added value: +"#/$defs/Enum_3568b80210617254"
    • removedOutput schema / properties / nian_gan / enum
      Removed value: -[
      -  "甲",
      -  "乙",
      -  "丙",
      -  "丁",
      -  "戊",
      -  "己",
      -  "庚",
      -  "辛",
      -  "壬",
      -  "癸"
      -]
    • removedOutput schema / properties / nian_gan / type
      Removed value: -"string"
    • addedOutput schema / properties / nian_zhi / $ref
      Added value: +"#/$defs/Enum_c8bf5d32ca0ac601"
    • removedOutput schema / properties / nian_zhi / enum
      Removed value: -[
      -  "子",
      -  "丑",
      -  "寅",
      -  "卯",
      -  "辰",
      -  "巳",
      -  "午",
      -  "未",
      -  "申",
      -  "酉",
      -  "戌",
      -  "亥"
      -]
    • removedOutput schema / properties / nian_zhi / type
      Removed value: -"string"
    • addedOutput schema / properties / san_fang_si_zheng / properties / ming_gong / items / $ref
      Added value: +"#/$defs/Enum_0a9661daa68f09b8"
    • removedOutput schema / properties / san_fang_si_zheng / properties / ming_gong / items / enum
      Removed value: -[
      -  "仆役",
      -  "兄弟",
      -  "命宫",
      -  "夫妻",
      -  "子女",
      -  "官禄",
      -  "父母",
      -  "田宅",
      -  "疾厄",
      -  "福德",
      -  "财帛",
      -  "迁移"
      -]
    • removedOutput schema / properties / san_fang_si_zheng / properties / ming_gong / items / type
      Removed value: -"string"
    • addedOutput schema / properties / shi_er_gong / items / properties / gan / $ref
      Added value: +"#/$defs/Enum_3568b80210617254"
    • removedOutput schema / properties / shi_er_gong / items / properties / gan / enum
      Removed value: -[
      -  "甲",
      -  "乙",
      -  "丙",
      -  "丁",
      -  "戊",
      -  "己",
      -  "庚",
      -  "辛",
      -  "壬",
      -  "癸"
      -]
    • removedOutput schema / properties / shi_er_gong / items / properties / gan / type
      Removed value: -"string"
    • addedOutput schema / properties / shi_er_gong / items / properties / ming / $ref
      Added value: +"#/$defs/Enum_0a9661daa68f09b8"
    • removedOutput schema / properties / shi_er_gong / items / properties / ming / enum
      Removed value: -[
      -  "仆役",
      -  "兄弟",
      -  "命宫",
      -  "夫妻",
      -  "子女",
      -  "官禄",
      -  "父母",
      -  "田宅",
      -  "疾厄",
      -  "福德",
      -  "财帛",
      -  "迁移"
      -]
    • removedOutput schema / properties / shi_er_gong / items / properties / ming / type
      Removed value: -"string"
    • removedOutput schema / properties / shi_er_gong / items / properties / xing_yao / items / properties / si_hua / anyOf
      Removed value: -[
      -  {
      -    "type": "null"
      -  },
      -  {
      -    "enum": [
      -      "忌",
      -      "权",
      -      "禄",
      -      "科"
      -    ],
      -    "type": "string"
      -  }
      -]
    • addedOutput schema / properties / shi_er_gong / items / properties / xing_yao / items / properties / si_hua / enum
      Added value: +[
      +  "忌",
      +  "权",
      +  "禄",
      +  "科"
      +]
    • addedOutput schema / properties / shi_er_gong / items / properties / zhi / $ref
      Added value: +"#/$defs/Enum_c8bf5d32ca0ac601"
    • removedOutput schema / properties / shi_er_gong / items / properties / zhi / enum
      Removed value: -[
      -  "子",
      -  "丑",
      -  "寅",
      -  "卯",
      -  "辰",
      -  "巳",
      -  "午",
      -  "未",
      -  "申",
      -  "酉",
      -  "戌",
      -  "亥"
      -]
    • removedOutput schema / properties / shi_er_gong / items / properties / zhi / type
      Removed value: -"string"
    • addedOutput schema / properties / shi_zhi / $ref
      Added value: +"#/$defs/Enum_c8bf5d32ca0ac601"
    • removedOutput schema / properties / shi_zhi / enum
      Removed value: -[
      -  "子",
      -  "丑",
      -  "寅",
      -  "卯",
      -  "辰",
      -  "巳",
      -  "午",
      -  "未",
      -  "申",
      -  "酉",
      -  "戌",
      -  "亥"
      -]
    • removedOutput schema / properties / shi_zhi / type
      Removed value: -"string"
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and idempotentHint, so the description's claim of '确定性' results is a useful corroboration rather than new information. It does add real behavioral context beyond annotations: the subject must never be fabricated and must be normalized and confirmed before calling. It does not discuss failure modes or what happens on out-of-range input, which keeps it below a 5.

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?

Front-loaded with the verb and result, then the subject sourcing rule, then the call trigger, then the sibling disambiguations. The long enumeration of star categories and deity sets is dense but each item earns its place as a call trigger. Slightly heavy for a single description but no filler sentences.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be explained, and the description still signals that output is deterministic palace facts. With a single nested required parameter, 100% schema coverage, and clear routing to the three relevant siblings, an agent has everything needed to invoke this correctly.

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% with nested field descriptions, so the baseline is 3. The description goes further by explaining where the subject values legitimately come from (user-stated facts or confirmed subject_candidates) and by mandating normalization and confirmation when the time is ambiguous, which is procedural meaning the schema does not encode.

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 (紫微斗数排本命盘) plus what it returns (确定性宫位事实), then names the sibling tools it is not: ziwei_bond for composite charts, ziwei_liupan for transit charts, natal_query for combined Bazi-Ziwei readings. An agent can route between these without opening any schema.

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?

Gives an explicit call trigger (when the user needs 十二宫主星, 亮度, 四化, 杂曜, 长生博士十二神, 小限 or 大限) and explicit alternatives with their selecting conditions. It also describes the prerequisite workflow: assemble subject from stated facts or from user-confirmed subject_candidates, and normalize/confirm when the time is fuzzy or candidates are multiple.

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