Skip to main content
Glama

Get Hexagram

get_hexagram
Read-onlyIdempotent

One hexagram by King Wen number (1-64). Optional include level: summary, core (default), lines, full. Sibling tools cover the other cases: get_hexagrams for several numbers at once, get_all_hexagrams for the entire set, search_hexagrams to find hexagrams by text, and get_reading_context for a changing-line reading. Data © IChing.Rocks — attribution is a condition of the license terms: https://iching.rocks/mcp-terms.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesHexagram number, 1-64 (King Wen).
includeNoDetail level, each nesting the previous: summary = identity, essence, url; core (default) = adds trigrams, judgment, image; lines = adds the six line texts; full = adds symbolic meaning and final comment.core

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNo
urlNo
nameNo
imageNo
linesNo
binaryNo
pinyinNo
sourceNo
essenceNo
hex_fontNo
judgmentNo
trad_chineseNo
final_commentNo
trigram_aboveNo
trigram_belowNo
symbolic_meaningNo

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, covering the safety profile. The description adds the important behavioral condition that data requires attribution ('Data © IChing.Rocks — attribution is a condition of the license terms'), which is not captured in annotations. It also clarifies the nesting semantics of include levels, though that is largely in the schema.

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?

Four short sentences, each earning its place: purpose, parameter options, sibling alternatives, and license notice. The most decision-relevant information is front-loaded, with no redundancy 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?

For a simple read tool with two parameters and an output schema, the description fully covers what the tool does, detailed include behavior, sibling selection, and legal constraints. The output schema covers return values, so further description is unnecessary.

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%, with both id and include fully documented including default and meaning of each level. The description repeats the values (summary, core, lines, full) without adding new syntax or format details beyond the schema, so the baseline 3 applies.

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 opens with 'One hexagram by King Wen number (1-64)', clearly stating a specific verb (get) and resource (hexagram) with its key parameter. It explicitly differentiates from siblings by contrasting with get_hexagrams (several), get_all_hexagrams (entire set), and search_hexagrams, making the singular scope unambiguous.

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?

The description explicitly names sibling tools and their use cases: 'get_hexagrams for several numbers at once, get_all_hexagrams for the entire set, search_hexagrams to find hexagrams by text, and get_reading_context for a changing-line reading.' This tells the agent exactly when to prefer this tool over alternatives, and the include parameter options define usage depth.

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/5.0
Disambiguation5/5

Each tool serves a distinct purpose: single vs batch vs bulk retrieval, reading context, trigrams, sequences, search, and server info. No overlap or ambiguity.

Naming Consistency5/5

All tools follow a consistent verb_noun snake_case pattern (get_, list_, search_), making the tool set predictable and easy to navigate.

Tool Count5/5

10 tools is well-scoped for a domain-specific reference server. Each tool covers a necessary operation without bloat or deficiency.

Completeness4/5

The tool surface covers retrieval, listing, search, reading context, trigrams, and sequences. Minor gaps like a random hexagram tool are non-essential for a deterministic reference dataset.

Resources