Skip to main content
Glama

Ask Yi

Read a cast

read_lines
Read-onlyIdempotent

Read a hexagram the user cast themselves. Takes six line values from the bottom up and returns the primary hexagram, changing lines and resulting hexagram with their texts.

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": {
      "lines": "<lines>"
    },
    "name": "read_lines"
  }
}

Input Schema

NameRequiredDescriptionDefault
linesYesSix line values, each 6, 7, 8 or 9, from the bottom line up: a list such as [7, 8, 9, 9, 8, 7] or a string such as "789987".
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

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, closed-world, non-destructive, so the safety profile is covered. The description adds genuine value by disclosing the return payload (primary hexagram, changing lines, resulting hexagram with texts) and establishing that the input is interpretation-only with no casting performed.

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?

Two sentences, no filler: the first establishes what is read and whose cast it is, the second enumerates inputs and outputs. Front-loaded and appropriately sized for a two-parameter tool.

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?

With no output schema, the description carries the return-value burden well by naming the three result components. Minor gap: nothing addresses what happens with malformed or out-of-range line values, though the schema constrains the accepted values.

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 fully documented in the schema, including the 6/7/8/9 values, bottom-up order, and the question field's non-persistence. The description restates 'six line values from the bottom up' without adding syntax or validation detail beyond the schema, so 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?

Specific verb+resource ('Read a hexagram') plus a precise scope qualifier: the cast is one 'the user cast themselves', which separates it from cast_hexagram (generate lines) and get_hexagram (lookup). The second sentence states exactly what comes back — primary hexagram, changing lines, resulting hexagram with texts.

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?

The condition for use is clearly embedded: the user already has six line values from their own cast, and this tool just interprets them. What's missing is an explicit counter-case — nothing says to use cast_hexagram when the user has no line values yet, leaving the agent to infer the split.

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