Skip to main content
Glama

I Ching MCP Server by RoxyAPI

Lookup hexagram by line pattern

get_iching_hexagrams_lookup
Read-only

Find an I-Ching hexagram by its binary line pattern. Provide 6 digits (0 or 1) representing broken (yin) and solid (yang) lines from bottom to top. Use this for custom divination interfaces where users input their own line configurations, or to find hexagrams matching specific trigram combinations. Example: "111111" returns Hexagram 1 (The Creative), "000000" returns Hexagram 2 (The Receptive).

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
linesYesSix-digit binary pattern (0=yin/broken, 1=yang/solid) from bottom to top.
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.

TDQS

A4.5/5.0
Behavior4/5

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

The annotations already indicate readOnlyHint=true and destructiveHint=false, so the safety profile is clear. The description adds valuable details about line ordering, the yin/yang mapping, and illustrative examples that explain the behavioral contract: '111111' maps to Hexagram 1 and '000000' maps to Hexagram2. It does not discuss invalid-input behavior or the exact return shape, but annotations reduce the need for that.

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?

The description is front-loaded with the principal purpose and then quickly grounds it with parameters and examples. Every sentence earns its place, with no repetitive filler or obvious redundancy relative to the schema annotations.

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?

Given its simple read-only scope, supported by readOnlyHint and a 100% schema-covered parameter set, the description bing enough to let an agent use the tool correctly. It communicates the main input format, line order, and a representative expected result, which is sufficient for this lookup-style tool.

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?

The schema has a 100% description coverage, so param descriptions exist. The tool description adds extra but practical meaning by defining the parameter values in terms of yin/yang, stressing bottom-to-top order, and giving examples that clarify what specific inputs produce. It does not adding meaningfully to `lang` and `compact`, but the schema sufficiently covers those.

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 states a specific action ('Find'), a specific resource ('I-CHing hexagram'), and a precise input ('binary line pattern'). It also differentiates from sibling tools by framing this as a line-pattern lookup used in custom divination interfaces, while the random and cast siblings clearly serve different purposes.

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 explicitly states when to use the tool: 'Use this for custom divination interfaces where users input their own line configurations, or to find hexagrams matching specific trigram combinations.' It does not name the alternative sibling tools or explicitly say when not to use this tool, which keeps it at a strong 4 rather than a 5.

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.

TDQS

A4/5.0
Disambiguation3/5

Most tools are clearly distinct: listing hexagrams, lookup by number, lookup by binary pattern, and trigram resources serve different purposes. However, get_iching_cast and post_iching_daily_cast both describe essentially the same casting operation with only the daily seed difference, and get_iching_hexagrams_random overlaps conceptually with post_iching_daily. The descriptions help, but an agent could easily select the wrong casting or random-reading tool.

Naming Consistency4/5

All tools use snake_case and share the iching_ domain prefix, creating a predictable family. The main inconsistency is mixing get_ and post_ prefixes for very similar operations, while get_iching_hexagrams_lookup/number/random are also varied noun suffixes rather than a strict verb_noun pattern.

Tool Count5/5

With 9 tools, the server is well-scoped for an I-Ching reference and divination toolset. Each tool contributes either a lookup, listing, casting, or daily oracle function without unnecessary bloat.

Completeness5/5

The surface covers all 64 hexagrams, all 8 trigrams, detailed hexagram lookup by both King Wen number and binary line pattern, random readings, traditional casting, and seeded daily variants. There is no significant missing operation needed for the stated divination and oracle use cases.

Resources