Skip to main content
Glama

I Ching MCP Server by RoxyAPI

Cast an I-Ching reading - Hexagram divination API

get_iching_cast
Read-only

Generate an authentic I-Ching reading using the traditional three-coin casting method. Each of the six lines is determined by virtually tossing three coins, producing values 6-9 where 6 (old yin) and 9 (old yang) are changing lines. Returns the primary hexagram with full interpretation, the line values showing which lines are changing, and if any lines change, the resulting hexagram that the primary transforms into. Optionally provide a seed for reproducible castings. Perfect for divination apps, oracle features, and decision-making tools.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
langNoResponse language (BCP 47). Supported: en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Defaults to en. Coverage varies by domain, and a field with no translation in the requested language returns English.en
seedNoOptional seed for reproducible castings. Same seed = same casting every time. Pass any unique identifier (userId, session token, question hash). Omit for random casting.
compactNoSet true for the same data in a compact shape: arrays of same-shaped objects arrive columnar as {"__cols":[names],"__rows":[[values]]}. Lossless, typically 40 to 52 percent fewer tokens.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
seedNo
linesYes
hexagramNo
resultingHexagramNo
changingLinePositionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "changingLinePositions": {
      +      "items": {
      +        "type": "number"
      +      },
      +      "type": "array"
      +    },
      +    "hexagram": {
      +      "allOf": [
      +        {
      +          "properties": {
      +            "binary": {
      +              "type": "string"
      +            },
      +            "changingLines": {
      +              "items": {
      +                "properties": {
      +                  "meaning": {
      +                    "type": "string"
      +                  },
      +                  "position": {
      +                    "type": "number"
      +                  },
      +                  "text": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "position",
      +                  "text"
      +                ],
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "chinese": {
      +              "type": "string"
      +            },
      +            "english": {
      +              "type": "string"
      +            },
      +            "image": {
      +              "type": "string"
      +            },
      +            "interpretation": {
      +              "properties": {
      +                "advice": {
      +                  "type": "string"
      +                },
      +                "career": {
      +                  "type": "string"
      +                },
      +                "decision": {
      +                  "type": "string"
      +                },
      +                "general": {
      +                  "type": "string"
      +                },
      +                "love": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "general",
      +                "love",
      +                "career",
      +                "decision",
      +                "advice"
      +              ],
      +              "type": "object"
      +            },
      +            "judgment": {
      +              "type": "string"
      +            },
      +            "lowerTrigram": {
      +              "type": "string"
      +            },
      +            "number": {
      +              "type": "number"
      +            },
      +            "pinyin": {
      +              "type": "string"
      +            },
      +            "symbol": {
      +              "type": "string"
      +            },
      +            "upperTrigram": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "number",
      +            "symbol",
      +            "chinese",
      +            "english",
      +            "pinyin",
      +            "binary",
      +            "upperTrigram",
      +            "lowerTrigram",
      +            "judgment",
      +            "image",
      +            "interpretation",
      +            "changingLines"
      +          ],
      +          "type": "object"
      +        },
      +        {}
      +      ]
      +    },
      +    "lines": {
      +      "items": {
      +        "type": "number"
      +      },
      +      "type": "array"
      +    },
      +    "resultingHexagram": {
      +      "allOf": [
      +        {
      +          "properties": {
      +            "binary": {
      +              "type": "string"
      +            },
      +            "changingLines": {
      +              "items": {
      +                "properties": {
      +                  "meaning": {
      +                    "type": "string"
      +                  },
      +                  "position": {
      +                    "type": "number"
      +                  },
      +                  "text": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "position",
      +                  "text"
      +                ],
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "chinese": {
      +              "type": "string"
      +            },
      +            "english": {
      +              "type": "string"
      +            },
      +            "image": {
      +              "type": "string"
      +            },
      +            "interpretation": {
      +              "properties": {
      +                "advice": {
      +                  "type": "string"
      +                },
      +                "career": {
      +                  "type": "string"
      +                },
      +                "decision": {
      +                  "type": "string"
      +                },
      +                "general": {
      +                  "type": "string"
      +                },
      +                "love": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "general",
      +                "love",
      +                "career",
      +                "decision",
      +                "advice"
      +              ],
      +              "type": "object"
      +            },
      +            "judgment": {
      +              "type": "string"
      +            },
      +            "lowerTrigram": {
      +              "type": "string"
      +            },
      +            "number": {
      +              "type": "number"
      +            },
      +            "pinyin": {
      +              "type": "string"
      +            },
      +            "symbol": {
      +              "type": "string"
      +            },
      +            "upperTrigram": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "number",
      +            "symbol",
      +            "chinese",
      +            "english",
      +            "pinyin",
      +            "binary",
      +            "upperTrigram",
      +            "lowerTrigram",
      +            "judgment",
      +            "image",
      +            "interpretation",
      +            "changingLines"
      +          ],
      +          "type": "object"
      +        },
      +        {}
      +      ]
      +    },
      +    "seed": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "lines",
      +    "changingLinePositions"
      +  ],
      +  "type": "object"
      +}
  2. Changed2 schema fields changed
    • changedInput schema / properties / lang / description
      Previous value: -"Response language (ISO 639-1). Supported: en, tr, de, es, hi, pt, fr, ru. Defaults to en. Languages without translations yet return English."New value: +"Response language (BCP 47). Supported: en, tr, de, es, hi, pt, fr, ru, zh-Hans, zh-Hant. Defaults to en. Coverage varies by domain, and a field with no translation in the requested language returns English."
    • changedInput schema / properties / lang / enum
      Previous value: -[
      -  "en",
      -  "tr",
      -  "de",
      -  "es",
      -  "hi",
      -  "pt",
      -  "fr",
      -  "ru"
      -]New value: +[
      +  "en",
      +  "tr",
      +  "de",
      +  "es",
      +  "hi",
      +  "pt",
      +  "fr",
      +  "ru",
      +  "zh-Hans",
      +  "zh-Hant"
      +]
  3. Changed2 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {}
      +]
    • changedInput schema / properties / compact / description
      Previous value: -"Set true to receive the exact same data in a token-optimized shape that is cheaper for you to read: whitespace is stripped and every array of same-shaped objects is encoded columnar as {\"__cols\":[field names],\"__rows\":[[values]]}, so each field name is sent once instead of once per row. Fully lossless (no field or value is dropped or changed) and typically 40 to 52 percent fewer tokens on large results. Prefer true whenever token or inference cost matters. Default false returns standard indented JSON."New value: +"Set true for the same data in a compact shape: arrays of same-shaped objects arrive columnar as {\"__cols\":[names],\"__rows\":[[values]]}. Lossless, typically 40 to 52 percent fewer tokens."
  4. Changed1 schema field changed
    • changedInput schema / properties / compact / description
      Previous value: -"Return the same data in a token-optimized compact shape (minified, with same-shaped arrays encoded columnar) to reduce LLM token cost. Lossless: no fields are dropped. Default false."New value: +"Set true to receive the exact same data in a token-optimized shape that is cheaper for you to read: whitespace is stripped and every array of same-shaped objects is encoded columnar as {\"__cols\":[field names],\"__rows\":[[values]]}, so each field name is sent once instead of once per row. Fully lossless (no field or value is dropped or changed) and typically 40 to 52 percent fewer tokens on large results. Prefer true whenever token or inference cost matters. Default false returns standard indented JSON."
  5. Changed1 schema field changed
    • addedInput schema / properties / compact
      Added value: +{
      +  "default": false,
      +  "description": "Return the same data in a token-optimized compact shape (minified, with same-shaped arrays encoded columnar) to reduce LLM token cost. Lossless: no fields are dropped. Default false.",
      +  "type": "boolean"
      +}
  6. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already mark this as read-only and non-destructive. The description adds meaningful behavioral context: virtual three-coin tossing, line values 6-9, changing-line mechanics, transformation into a resulting hexagram, and reproducible castings via an optional seed. This goes well beyond the annotations without contradicting them.

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?

The description is three well-organized sentences that front-load the core purpose and casting method, then cover outputs and optional seed behavior. The final sentence about use cases is slightly generic but not wasteful, keeping the description appropriately sized.

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?

Given the output schema and annotations, the description covers the essential behavior, return semantics, and the optional seed. It does not mention language or compact options, but those are fully documented in the schema, so the overall context is sufficiently complete.

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 coverage is 100%, so the schema fully documents lang, seed, and compact. The description only touches on the seed ('Optionally provide a seed for reproducible castings'), which adds little beyond the schema's already explicit 'Same seed = same casting every time.' Baseline 3 is appropriate.

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 and resource: 'Generate an authentic I-Ching reading using the traditional three-coin casting method.' It also explains what the output contains and differentiates this casting tool from sibling hexagram/trigram lookup tools by emphasizing full reading generation with changing lines.

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

Usage Guidelines4/5

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

It provides clear context for when to use the tool: 'Perfect for divination apps, oracle features, and decision-making tools.' It does not explicitly name alternative siblings or state when not to use it, but the intended use case is evident from the casting-focused description.

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