Skip to main content
Glama

Cast I Ching

cast_i_ching
Read-onlyIdempotent

Cast an I Ching hexagram using the traditional three-coin method (default) or the classical yarrow-stalk method, per James Legge's 1899 translation. Generates six line values (6/7/8/9) with the method's real probabilities (coins: 1/8, 3/8, 3/8, 1/8 for 6/7/8/9; yarrow: 1/16, 5/16, 7/16, 3/16), builds the primary hexagram, lists any changing lines with their texts, and derives the resulting hexagram (null when nothing changes). Pass seed back to replay the exact same cast. The hexagram and line texts are traditional meanings for the calling agent to interpret in light of its own question, this tool does not answer the question itself.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "seed": "pipeworx-iching-smoke-1",
      "method": "coins",
      "question": "Should we ship the chance-pack family?"
    },
    "name": "cast_i_ching"
  }
}

Input Schema

NameRequiredDescriptionDefault
seedNoOptional seed for a reproducible cast. Omit for real randomness; the seed used is always returned so the cast can be replayed.
methodNoDivination method. "coins" (default): three-coin toss, six times. "yarrow": classical yarrow-stalk division, with different (narrower) probabilities.
questionNoOptional question being asked of the oracle. Echoed back verbatim in the result; never interpreted by this tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Goes well past the annotations by disclosing the actual outcome distributions for each method (coins 1/8, 3/8, 3/8, 1/8; yarrow 1/16, 5/16, 7/16, 3/16), the shape of the returned result including changing lines and a null resulting hexagram when nothing changes, and seed-based replayability. This is consistent with readOnlyHint, idempotentHint and openWorldHint (randomness) and clarifies what the caller must supply, namely interpretation.

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 action and method choice, then behavior, then caller responsibilities; no filler sentences. The inline probability parenthetical is dense but each figure carries information an agent may need when explaining results, so it earns its space despite the visual weight.

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 no output schema present, the description still describes the return payload fully: six line values in 6/7/8/9 form, the primary hexagram, changing lines with texts, and the derived hexagram or null. All three optional parameters are covered and the interpretive boundary is made explicit, leaving nothing material to guess.

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%, so the schema already documents seed, method, and question, making 3 the baseline. The description adds real meaning beyond it by attaching the underlying probability model to each method value and clarifying that seed is always returned for replay, though it does not add format examples or constraints for the free-text question.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Cast an I Ching hexagram') and immediately enumerates the two supported methods with their mechanics. The distinction from the sibling get_hexagram is left implicit rather than named, so an agent must infer that this tool generates a cast while the sibling presumably looks up existing hexagram text.

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?

Gives clear operating context: default method is coins, seed replays a cast, and the tool explicitly does not interpret the result for the caller. It does not route the agent to any alternative tool or state when not to cast, so it falls short of an explicit when/when-not/alternatives statement.

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.