Skip to main content
Glama

yarrow

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, Contivo Oracle's separately labelled Chinese reading aid, and historical anecdote — with available Chinese and English source material.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "number": "<number>"
    },
    "name": "lookup_hexagram"
  }
}

Input 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.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose output composition, including that the Chinese reading aid is 'separately labelled' (a non-classical source) and that source material is only returned where 'available', implying possible gaps. It says nothing about response size, ordering, or failure behavior for invalid input — notable since the full commentary set is presumably large.

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?

A single dense sentence, front-loaded with the verb and the lookup key, followed by the enumeration of returned sections. Slightly list-heavy but every clause names a distinct returned source, so little is wasted.

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?

No output schema exists, yet the description effectively serves as one by enumerating the returned sections, which is the main thing an agent needs. The residual gaps — behavior on an out-of-range number and the meaning of the locale enum — are modest for a read-only three-parameter lookup.

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 coverage is 67% and both described params (number, compact) already carry schema text. The description reinforces the 1–64 range and hints at the locale parameter via 'available Chinese and English source material', but never explains the en/zh/both options or the compact flag's tradeoff beyond what the schema states.

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?

A specific verb ('Return') plus a precisely scoped resource ('full classical sources for a hexagram by its number (1–64)'), with an enumeration of the exact sections returned (judgment, image, Tuan, Zhu Xi, Yang Tian Cai, Contivo reading aid, anecdote). The phrase 'by its number' implicitly separates it from cast_hexagram, which generates rather than looks up, but no sibling is named.

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: an agent infers it should call this when it already has a hexagram number in hand. There is no explicit statement of when to prefer this over cast_hexagram or two_lenses, and no prerequisites or exclusions are given.

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.