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. Changed1 schema field changed
    • changedOutput schema / properties / shi_er_gong / items / properties / xing_yao / items / properties / si_hua / enum
      Previous value: -[
      -  "忌",
      -  "权",
      -  "禄",
      -  "科"
      -]New value: +[
      +  null,
      +  "忌",
      +  "权",
      +  "禄",
      +  "科"
      +]
  2. 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"
  3. First observed

TDQS

A4.7/5.0
Behavior4/5

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

The annotations already declare readOnlyHint and idempotentHint, and the definition corroborates determinism (确定性宫位事实) rather than adding safety detail; the added value is the confirmation prerequisite and the admissible provenance of the subject value. It does not restate return fields, which is appropriate because an output schema exists, but it says nothing about performance or the fixed-offset/no-DST constraint that the schema carries.

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?

It is front-loaded with purpose, then subject provenance, then the trigger list, then sibling disambiguation. Every clause carries information an agent needs, with no repetition of sentence structure or filler.

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?

With one required nested parameter, full schema coverage, annotations, and an output schema, the remaining burden on the description is provenance, preconditions, and routing – all of which are covered. Nothing an agent needs in order to call this correctly is missing.

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 the nested subject object is fully described, so the baseline would be 3. The definition still adds real meaning beyond the schema by explaining where subject values may come from (user-stated facts or user-confirmed subject_candidates) and requiring normalization and confirmation for ambiguous inputs, which the schema cannot express.

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 definition states an explicit verb and resource (紫微斗数排本命盘) and immediately narrows the output (返回确定性宫位事实), so an agent knows this is a deterministic natal-chart computation rather than an interpretive reading. It is clearly distinguishable from siblings such as ziwei_bond and ziwei_liupan without opening either 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?

It names the exact trigger conditions (需要十二宫主星、亮度、四化、杂曜、长生博士十二神、小限或大限时调用) and routes three concrete alternatives by name: 合盘→ziwei_bond, 流盘→ziwei_liupan, 断语合参→natal_query. It also states the prerequisite that ambiguous times or multiple candidates must be normalized and confirmed first.

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