Skip to main content
Glama

lookup_hexagram

Return the full classical sources for a hexagram by its number (1–64): judgment (卦辞), image (大象), Tuan commentary, Zhu Xi 周易本义, Yang Tian Cai modern explanation, Yarrow's separately labelled Chinese reading aid, and historical anecdote — with available Chinese and English source material.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
localeNoboth
numberYesHexagram number 1-64 in King Wen sequence.
compactNoIf true, omit authorities (long classical commentary). Returns only structural fields.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

No annotations are provided, so the description carries the burden. It discloses the detailed contents of the response (judgment, image, Tuan commentary, etc.) and notes 'available' source material, indicating conditional presence. It does not mention error handling, but for a read-only lookup, this is reasonably transparent.

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 a single, front-loaded sentence that starts with the action and resource. It lists many components in a structured way, making it dense but efficient. It could be slightly more concise by trimming the list, but it is not overly verbose.

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 tool with no output schema, the description provides a thorough list of return fields and mentions language coverage, giving a clear sense of what to expect. It does not detail behavior around the compact parameter, but the schema covers that. Overall, it is sufficiently complete for a lookup tool.

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 descriptions cover 67% of parameters (number and compact), while locale lacks a description. The description hints at language options via 'Chinese and English source material' but does not explicitly explain the locale parameter. It adds some context beyond the schema but does not fully compensate for the uncovered parameter.

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 clearly states the tool returns the full classical sources for a hexagram by number, enumerating specific components like judgment, image, and commentaries. This distinguishes it from sibling tools like cast_hexagram and divine, which involve casting or divination.

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?

The description implies usage for looking up a hexagram's classical material by number, but it does not explicitly state when to use this tool versus alternatives like lookup_yilin or cast_hexagram. No exclusions or alternative guidance is provided, leaving the context somewhat implied.

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.