Skip to main content
Glama

Ask Yi

Cast a hexagram

cast_hexagram
Read-only

Cast an I Ching hexagram with three coins or yarrow stalks and return the primary hexagram, any changing lines and the resulting hexagram, with their texts in Chinese and English.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "cast_hexagram"
  }
}

Input Schema

NameRequiredDescriptionDefault
methodNocoins (three coins, the default) or yarrow (yarrow stalks)coins
questionNoThe user's question, if they gave one. Used only to fill in the full_reading_url link; never stored.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, non-destructive, non-idempotent and closed-world, so the safety profile is covered. The description adds real value the annotations cannot: it enumerates what comes back (primary hexagram, changing lines, resulting hexagram, Chinese and English texts), which matters because there is no output schema. It stops short of saying the draw is randomized per call, which would have fully justified the non-idempotent hint.

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?

A single sentence with the action first and the return contents second; nothing is redundant and no filler is present.

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?

For a two-optional-parameter, read-only tool with no output schema, the description carries the necessary burden by explaining the returned components. The only gap is that it does not mention the full_reading_url link that the question parameter feeds into, which an agent might otherwise not anticipate.

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 description coverage is 100%, so both parameters are already documented, including the coins/yarrow enum and the transient use of the question. The description echoes the two methods but adds no syntax or behavioral detail about them, so the baseline 3 is appropriate.

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 (cast) and resource (an I Ching hexagram) plus the exact output shape: primary hexagram, changing lines, resulting hexagram, bilingual texts. That distinguishes it from get_hexagram/list_hexagrams/read_lines, which by name alone suggest retrieval rather than a fresh cast, though the description never names those siblings explicitly.

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

Usage Guidelines3/5

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

Usage is only implied: 'cast' signals a divination draw as opposed to looking up an existing hexagram, which is a reasonable inference against the sibling names. There is no explicit when-to-use statement, no mention of when to prefer lookup tools, and no note that each call produces a new random result.

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