Skip to main content
Glama

AstroWay Astrology API (full catalogue)

Hexagram Compatibility

astroway_iching_compatibility
Read-onlyIdempotent

Compares two hexagrams: matching and differing lines, named relations (identical, complement, inverse, nuclear, shared or swapped trigrams), five-phase relations of the lower and of the upper trigrams, and a 0-100 score whose formula is stated in the response (a convention of this API, not a classical measure).

[Group: I Ching (Standalone)] [Endpoint: POST /v1/iching/compatibility] [Required: hexagramA, hexagramB] [Cost: 10 credits (Tier 1)]

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": {
      "hexagramA": "<hexagramA>",
      "hexagramB": "<hexagramB>"
    },
    "name": "astroway_iching_compatibility"
  }
}

Input Schema

NameRequiredDescriptionDefault
fieldsNoComma-separated paths inside `data` to keep, e.g. "planets.name,houses.cusp".
hexagramAYesKing Wen number of the first hexagram.
hexagramBYesKing Wen number of the second hexagram.
precisionNoRound numbers to this many decimals.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, so the safety profile is covered. The description adds genuinely useful behavior beyond that: the cost (10 credits, Tier 1), the POST endpoint, that the score formula is stated in the response, and the important caveat that the 0-100 score is an API convention rather than a classical I Ching measure.

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 core sentence is front-loaded with the verb and resource, then the enumerated result categories follow in a single dense but readable sentence. The bracketed metadata lines (group, endpoint, required, cost) are compact and each carries actionable information; nothing is redundant.

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 does the right work by enumerating the returned comparison components, and it supplies cost, transport, and required parameters. It is nearly complete for a two-parameter read tool; minor gaps are error behavior for invalid combination inputs and the shape/units of detailed relation fields.

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%, including ranges (1-64) and meaning of hexagramA/hexagramB, fields, and precision. The description restates that two hexagrams are required but adds no new meaning for `fields` or `precision`, so the baseline of 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 a specific verb and resource ("Compares two hexagrams") and then enumerates exactly what the comparison yields: matching/differing lines, named relations (identical, complement, inverse, nuclear, shared or swapped trigrams), five-phase relations per trigram, and a 0-100 score. This level of specificity also differentiates it from single-hexagram siblings such as astroway_iching_reading or astroway_iching_trigram_analysis.

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 implied rather than stated: the agent can infer this is the tool to call when comparing two King Wen hexagrams, and the [Required: hexagramA, hexagramB] line plus the [Cost] line help frame the call. However, there is no explicit when-to-use/when-not guidance and no named alternative for related needs (e.g., comparing people via other systems).

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