An astrology MCP server for AI agents

Vedaksha exposes a Model Context Protocol surface of 17 tools covering natal charts, dashas, vargas, shadbala, transits, muhurta, ashtakavarga, gochara and graph emit. The catalog below is the one the introspection mirror serves at vedaksha.net/api/mcp, which mirrors the canonical schema snapshot in the source repository (drift-tested in CI). To run these tools, self-host the engine or build from source.

17 tools · also served at vedaksha.net/api/mcp · canonical snapshot tools/mcp-tools.json

Stdio setup

Connect your MCP client

Use this configuration from the engine's v11.0.0 README in a stdio MCP client. Docker runs the server locally.

{
  "mcpServers": {
    "vedaksha": {
      "command": "docker",
      "args": ["run", "--rm", "-i", "ghcr.io/arthiqlabs/vedaksha-mcp-server", "--stdio"]
    }
  }
}

Without Docker, install with cargo install vedaksha-mcp or pip install vedaksha, then set command to vedaksha-mcp with no arguments.

Discover

List every tool with one request.

The introspection mirror needs no authentication. One request returns every tool with its parameters and description.

curl -sS -X POST https://vedaksha.net/api/mcp \
  -H 'content-type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | jq

tools/call

Calls run where you host the engine.

Vedaksha is a BUSL-1.1 engine. The introspection mirror documents the surface; to call these tools, self-host the engine or build from source. All four package paths below are built from one Rust codebase.

cargo install vedaksha-mcp Rust binary: the native MCP server with all tools.

pip install vedaksha Python package running the real engine via WebAssembly (wasmtime); library, CLI, MCP server (stdio + HTTP), and an optional FastAPI REST projection. Any OS, Python ≥ 3.11, no Rust toolchain.

npm i vedaksha-wasm WASM build for browser and edge, with no data files.

ghcr.io/arthiqlabs/vedaksha-mcp-server pre-built Docker image of the MCP server, linux/amd64 + linux/arm64.

Self-hosted HTTP mode requires auth as of v4.0.0: every POST must carry Authorization: Bearer with the token from VEDAKSHA_MCP_TOKEN. The server refuses to start without a token unless --insecure-no-auth is passed; /health and the informational GET stay open. stdio mode is unchanged.

Build from source · BUSL-1.1 commercial-use terms · KundaliMCP is a product built on Vedaksha. Its features and release schedule are documented separately.

Catalog

17 tools.

Invoke a tool by name through MCP tools/call. Expand its parameter list. Required parameters are unmarked; optional parameters have a trailing ?.

compute_natal_chart

Compute a natal astrological chart for a given time and location. Returns JSON with each body's longitude, latitude, speed, sign, house, dignity and retrograde flag, the house cusps with ascendant and MC, the aspects, and the ayanamsha applied. Pass a sidereal ayanamsha for a Vedic chart (kundali); the default is tropical. To get a property graph, pass this output to emit_graph.

5 parameters ▾
ayanamsha?stringSidereal zodiac system. Eleven systems, each derived forward from a primary source and none tuned to match another implementation. The chart's true_ayanamsha_value output field reports the TRUE ayanamsha (mean plus nutation in longitude) already applied — nutation is included, do not add it yourself. Pass Tropical for no rotation. Systems: IndianOfficial = Indian Astronomical Ephemeris 2022, AYANAMSA section: 23 deg 51 min 25.53 sec at J2000.0, propagated by P03 general precession | FaganBradley = Fagan & Firebrace, Primer of Sidereal Astrology: synetic vernal point 335 deg 57 min 28.64 sec at B1950.0, ayanamsha = 360 deg minus SVP | Krishnamurti = Krishnamurti Padhdhati Vol-I: 22 deg 22 min 00 sec on the 1st of Chitra 1900, propagated at KSK's stated 50.2388475 arcsec/yr | Raman = Raman, A Manual of Hindu Astrology (1935), Ch. III Art. 49 | SuryaSiddhanta = Surya Siddhanta Ch. 3 vv. 9-12 | Yukteshwar = Yukteswar, The Holy Science (1894) | RevatiPaksha [star] = Revati at the sidereal initial point, the majority reading against Surya Siddhanta Ch. 8's own 359 deg 50 min, zeta Piscium per Hipparcos | PushyaPaksha [star] = Narasimha Rao, Introducing Pushya-paksha Ayanamsa | TrueChitra [star] = Self-describing condition; Spica per Hipparcos | ChandraHari [star] = Chandra Hari, Indian J. History of Science 33(4), 1998 | GalacticCenter0Sag [star] = Self-describing condition; Sgr A* per Gordon, de Witt & Jacobs (2023), AJ 165, 49.
house_system?stringHouse system: Placidus, Koch, Equal, WholeSign, etc.
julian_daynumberJulian Day number in UT1 (Universal Time) — not TT, not TDB. The engine converts to TT internally for the dynamical terms (planetary positions, nutation, obliquity) and evaluates the Earth-rotation term — sidereal time, and hence the ascendant, the MC and all twelve house cusps — at this UT1 value directly. Supplying a TDB Julian Day rotates every cusp by 0.289° (17.3') at today's ΔT ≈ 69 s.
latitudenumberGeographic latitude in degrees [-90, +90]
longitudenumberGeographic longitude in degrees [-180, +180], east positive
Output schema
{
  "properties": {
    "aspects": {
      "items": {
        "properties": {
          "applying": {
            "description": "True when the aspect is closing rather than separating.",
            "type": "boolean"
          },
          "body1": {
            "description": "Index of the first body in the planets array.",
            "type": "integer"
          },
          "body2": {
            "description": "Index of the second body.",
            "type": "integer"
          },
          "orb": {
            "description": "Orb in degrees.",
            "type": "number"
          },
          "strength": {
            "description": "Normalised strength in [0, 1], 1 at exact.",
            "type": "number"
          },
          "type": {
            "description": "Aspect name.",
            "type": "string"
          }
        },
        "required": [
          "body1",
          "body2",
          "type",
          "orb"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "config_summary": {
      "description": "One-line record of the ephemeris, house system and ayanamsha used.",
      "type": "string"
    },
    "houses": {
      "properties": {
        "asc": {
          "description": "Ascendant longitude in degrees.",
          "type": "number"
        },
        "cusps": {
          "description": "Twelve cusp longitudes.",
          "items": {
            "description": "Cusp longitude in degrees.",
            "type": "number"
          },
          "type": "array"
        },
        "mc": {
          "description": "Midheaven longitude in degrees.",
          "type": "number"
        },
        "polar_fallback": {
          "description": "True when the requested system was undefined at this latitude and a fallback was used.",
          "type": "boolean"
        },
        "system": {
          "description": "House system used.",
          "type": "string"
        }
      },
      "required": [
        "system",
        "asc",
        "mc",
        "cusps"
      ],
      "type": "object"
    },
    "julian_day": {
      "description": "The Julian Day the chart was cast for, echoed back.",
      "type": "number"
    },
    "planets": {
      "description": "One entry per computed body.",
      "items": {
        "properties": {
          "dignity": {
            "description": "Dignity in the occupied sign, e.g. Exalted, Own, Debilitated, Neutral.",
            "type": "string"
          },
          "distance": {
            "description": "Distance from the observer in AU.",
            "type": "number"
          },
          "house": {
            "description": "Bhava occupied, 1-12.",
            "type": "integer"
          },
          "latitude": {
            "description": "Ecliptic latitude in degrees.",
            "type": "number"
          },
          "longitude": {
            "description": "Sidereal longitude in degrees [0, 360).",
            "type": "number"
          },
          "name": {
            "description": "Graha name.",
            "type": "string"
          },
          "retrograde": {
            "description": "True when speed is negative.",
            "type": "boolean"
          },
          "sign": {
            "description": "Rashi name.",
            "type": "string"
          },
          "sign_index": {
            "description": "Rashi index, 0=Aries … 11=Pisces.",
            "type": "integer"
          },
          "speed": {
            "description": "Daily motion in degrees per day, negative when retrograde.",
            "type": "number"
          }
        },
        "required": [
          "name",
          "longitude",
          "sign_index",
          "house"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "true_ayanamsha_value": {
      "description": "True ayanamsha (mean plus nutation in longitude) applied, in degrees. Zero for a tropical chart.",
      "type": "number"
    }
  },
  "required": [
    "julian_day",
    "planets",
    "houses",
    "aspects"
  ],
  "type": "object"
}

compute_dasha

Compute Vedic dasha (planetary period) sequences. Supports eight classical systems: Vimshottari, Ashtottari, Yogini (Moon-longitude based, require `moon_longitude`); Chara, Narayana (sign based, require BOTH `lagna_sign` AND `graha_signs`, since each sign's period length is counted to the sign its lord occupies in this chart); Sthira, NiryanaShoola (`niryana_shoola` is accepted too) and Maheshwara (Jaimini rashi dashas, require `lagna_sign` AND `graha_longitudes`, since the atmakaraka and the tie-breaks of the strength tests read degrees). `graha_signs` takes the eight `sign_index` values compute_natal_chart already returns, `graha_longitudes` the eight sidereal longitudes; Ketu is derived from Rahu and must not be supplied. Yogini takes `rounds` (1 to 10 whole 36-year rounds) or `until` (a horizon Julian Day); Chara takes `antardashas` (twelve per period, BPHS 51.5-51.9). Sthira, NiryanaShoola and Maheshwara use the defaults of the vedic crate's dasha functions (see their module docs) and always carry their antardashas. Sthira and Maheshwara start from the Brahma graha; a chart whose marks leave none returns `no_brahma: true` with a message, not an error. Returns a JSON dasha tree with start/end Julian Days. For Vimshottari, Ashtottari and Yogini the first maha opens at birth with `initial_balance` of its length, but its sub-periods keep their full shares from the maha's notional start before birth: those with end_jd <= birth_jd ended before birth, and the one running at birth starts at or before it.

11 parameters ▾
antardashas?booleanChara only: when true each of the twelve periods carries its twelve antardashas in `antar` (BPHS 51.5-51.9: the stronger of the dasha rashi and its seventh starts, by modality, a twelfth of the period each). Defaults to false. Sthira, NiryanaShoola and Maheshwara always carry theirs.
birth_jdnumberBirth Julian Day used as the dasha epoch, in UT1 (Universal Time) — not TT, not TDB, i.e. the same scale as compute_natal_chart's julian_day. This epoch is only added to, never converted: every returned start_jd/end_jd is on the same UT1 scale as the input.
graha_longitudes?objectSidereal longitudes in degrees [0, 360) of the seven classical grahas plus Rahu, as compute_natal_chart serves them (Rahu from its MeanNode). Required, with lagna_sign, for Sthira, NiryanaShoola and Maheshwara, whose Brahma graha, atmakaraka and strength tie-breaks read degrees within the sign. Ketu is not a field: it is derived 180 degrees from Rahu. Do not also pass graha_signs for these systems.
graha_signs?objectNatal sign positions of the seven classical grahas plus Rahu, 0-11 each (0 = Aries), as served by compute_natal_chart's sign_index. Required for Chara, Narayana, whose period lengths are chart-dependent — each sign's duration is the count from that sign to the sign its lord actually occupies. Sign indices are used rather than longitudes: they chain directly from compute_natal_chart's sign_index with no conversion, carry no tropical-vs-sidereal ambiguity, and avoid the boundary question of a planet at exactly 30.0 degrees. Ketu is not a field: it is derived as (rahu + 6) mod 12, since the two lunar nodes are always exactly opposite.
karaka_scheme?stringWhich chara karakas name the atmakaraka for Sthira and Maheshwara: "7" (Sun to Saturn) or "8" (adds Rahu), as compute_karakas takes it. Applies to those two systems only.
lagna_sign?integerLagna (ascendant) sign 0–11 (0 = Aries). Required for Chara, Narayana, Sthira, NiryanaShoola, Maheshwara. This is the same 0-indexed convention compute_natal_chart, compute_bhavas and compute_vargas all serve as `sign_index`, so an ascendant read from any of them passes straight through. Through v8.1.0 this one parameter was 1-indexed while every other tool was 0-indexed; that mismatch is resolved here.
levels?integerNumber of nested dasha levels (1–5). Ignored by the sign-based systems (Chara, Narayana, Sthira, NiryanaShoola, Maheshwara).
moon_longitude?numberNatal Moon sidereal longitude in degrees [0, 360). Required for Vimshottari, Ashtottari, Yogini.
rounds?integerYogini only: how many whole 36-year rounds of the cycle to produce. Round 1 is the round from birth, whose first maha is the birth yogini's unelapsed share; each later round runs all eight yoginis whole. Every maha and sub-period carries its `round`. Defaults to 1. Exclusive with `until`. One response carries at most 50,000 periods: ten rounds at four levels, one at five.
system?stringDasha system selector
until?numberYogini only: a horizon as a Julian Day (UT1). Whole rounds are produced until the tree reaches it, at least one and at most the maximum of `rounds`; compare the last maha's end_jd with it to see whether it was cut. Exclusive with `rounds`.
Output schema
{
  "description": "Envelope depends on `system`; see the four variants below. Every period carries start_jd/end_jd on the same UT1 scale as birth_jd.",
  "oneOf": [
    {
      "properties": {
        "initial_balance": {
          "type": "number"
        },
        "maha_dashas": {
          "items": {
            "type": "object"
          },
          "type": "array"
        },
        "moon_nakshatra": {
          "type": "string"
        }
      },
      "required": [
        "moon_nakshatra",
        "initial_balance",
        "maha_dashas"
      ],
      "title": "Vimshottari",
      "type": "object"
    },
    {
      "properties": {
        "initial_balance": {
          "type": "number"
        },
        "moon_nakshatra": {
          "type": "string"
        },
        "periods": {
          "items": {
            "type": "object"
          },
          "type": "array"
        },
        "starting_lord": {
          "type": "string"
        }
      },
      "required": [
        "moon_nakshatra",
        "starting_lord",
        "initial_balance",
        "periods"
      ],
      "title": "Ashtottari",
      "type": "object"
    },
    {
      "properties": {
        "initial_balance": {
          "type": "number"
        },
        "maha_periods": {
          "items": {
            "type": "object"
          },
          "type": "array"
        },
        "moon_nakshatra": {
          "type": "string"
        },
        "starting_yogini_index": {
          "type": "integer"
        }
      },
      "required": [
        "moon_nakshatra",
        "starting_yogini_index",
        "initial_balance",
        "maha_periods"
      ],
      "title": "Yogini",
      "type": "object"
    },
    {
      "description": "Sign-based systems. Twelve single-level periods, one per rashi, in dasha order. No nakshatra or balance: these systems are anchored on the lagna and the grahas' natal signs, not the Moon. With `antardashas` true, Chara's periods also carry `antar`.",
      "properties": {
        "lagna_sign": {
          "description": "Lagna the sequence starts from, 0-11 (0 = Aries).",
          "type": "integer"
        },
        "periods": {
          "items": {
            "properties": {
              "antar": {
                "description": "Chara with `antardashas` true only: the twelve antardashas, tiling the period.",
                "items": {
                  "type": "object"
                },
                "type": "array"
              },
              "duration_years": {
                "description": "Counted from this sign to the sign its lord occupies in THIS chart, so it varies between charts.",
                "type": "number"
              },
              "end_jd": {
                "type": "number"
              },
              "sign_index": {
                "type": "integer"
              },
              "sign_name": {
                "type": "string"
              },
              "start_jd": {
                "type": "number"
              }
            },
            "required": [
              "sign_index",
              "sign_name",
              "start_jd",
              "end_jd",
              "duration_years"
            ],
            "type": "object"
          },
          "type": "array"
        }
      },
      "required": [
        "lagna_sign",
        "periods"
      ],
      "title": "Chara / Narayana",
      "type": "object"
    },
    {
      "description": "Twelve periods of 7, 8 or 9 years by modality from the Brahma graha's rashi, each with twelve antardashas. When the chart has no Brahma graha, `no_brahma` is true, `message` says so, and `anchor_sign`, `brahma` and `direction` are null and `periods` is empty: the text names no other start.",
      "properties": {
        "anchor_sign": {
          "type": [
            "integer",
            "null"
          ]
        },
        "brahma": {
          "type": [
            "string",
            "null"
          ]
        },
        "direction": {
          "type": [
            "string",
            "null"
          ]
        },
        "message": {
          "type": "string"
        },
        "no_brahma": {
          "type": "boolean"
        },
        "periods": {
          "items": {
            "type": "object"
          },
          "type": "array"
        }
      },
      "required": [
        "no_brahma",
        "anchor_sign",
        "brahma",
        "direction",
        "periods"
      ],
      "title": "Sthira",
      "type": "object"
    },
    {
      "description": "Twelve periods of 7, 8 or 9 years in trikona groups from the stronger of the lagna and the seventh, each with twelve antardashas.",
      "not": {
        "required": [
          "no_brahma"
        ]
      },
      "properties": {
        "anchor_sign": {
          "type": "integer"
        },
        "direction": {
          "type": "string"
        },
        "periods": {
          "items": {
            "type": "object"
          },
          "type": "array"
        }
      },
      "required": [
        "anchor_sign",
        "direction",
        "periods"
      ],
      "title": "Niryana Shoola",
      "type": "object"
    },
    {
      "description": "The Maheshwara graha, the span of life to the end of its rashi's sthira period, and the antardashas of that period that can carry death. When the sthira dasha has no Brahma anchor, `no_brahma` is true with a `message`, `maheshwara` and `rashi` are still given, and the rest is absent.",
      "properties": {
        "death_antars": {
          "items": {
            "type": "integer"
          },
          "type": "array"
        },
        "death_trikona": {
          "items": {
            "type": "integer"
          },
          "type": "array"
        },
        "eighth_lord": {
          "type": "string"
        },
        "eighth_lord_rashi": {
          "type": "integer"
        },
        "life_span_years": {
          "type": "number"
        },
        "maheshwara": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "no_brahma": {
          "type": "boolean"
        },
        "period": {
          "type": "object"
        },
        "rashi": {
          "type": "integer"
        }
      },
      "required": [
        "no_brahma",
        "maheshwara",
        "rashi"
      ],
      "title": "Maheshwara",
      "type": "object"
    }
  ],
  "type": "object"
}

compute_karakas

Compute Jaimini Chara Karaka assignments from sidereal planet longitudes. Ranks planets by degrees within their current sign: highest = Atmakaraka (soul significator), lowest = Darakaraka (spouse significator). Supports 7-karaka (Sun–Saturn) and 8-karaka (adds Rahu) schemes.

9 parameters ▾
jupiternumberSidereal longitude of Jupiter [0, 360)
marsnumberSidereal longitude of Mars [0, 360)
mercurynumberSidereal longitude of Mercury [0, 360)
moonnumberSidereal longitude of Moon [0, 360)
rahu?numberSidereal longitude of Rahu [0, 360). Required for scheme '8'.
saturnnumberSidereal longitude of Saturn [0, 360)
scheme?stringKaraka scheme: '7' (default, Sun–Saturn) or '8' (adds Rahu + Pitrikaraka)
sunnumberSidereal longitude of Sun [0, 360)
venusnumberSidereal longitude of Venus [0, 360)
Output schema
{
  "properties": {
    "karakas": {
      "description": "One entry per graha, ordered by rank.",
      "items": {
        "properties": {
          "degrees_in_sign": {
            "description": "Degrees within the occupied sign, which is what ranks the grahas.",
            "type": "number"
          },
          "karaka": {
            "description": "Chara karaka title, Atmakaraka through Darakaraka.",
            "type": "string"
          },
          "planet": {
            "description": "Graha holding this karaka.",
            "type": "string"
          }
        },
        "required": [
          "planet",
          "karaka",
          "degrees_in_sign"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "karakas"
  ],
  "type": "object"
}

compute_combustion

Compute combustion state for each planet relative to the Sun: principle per BPHS Ch.7 vv.28-29, orbs per Surya Siddhanta IX.6-8 and X.1 (Moon 12, Mars 17, Mercury 14 or 12 retrograde, Jupiter 11, Venus 10 or 8 retrograde, Saturn 15 deg). Returns Combust, DeeplyCombust, or None for Moon, Mars, Mercury, Jupiter, Venus, Saturn with degrees of separation. This is a low-level tool over already-known positions, not a natal-chart tool: call compute_natal_chart first and pass its planets[].longitude (matched by planets[].name) and planets[].retrograde values straight through as this tool's inputs — do not recompute or re-derive them.

12 parameters ▾
jupiternumberSidereal longitude of Jupiter [0, 360). From compute_natal_chart's planets[] entry where name == "Jupiter", field longitude.
jupiter_retrograde?booleanTrue if Jupiter is retrograde. Accepted for symmetry; Jupiter's orb is 11 deg either way, so this does not change the result. From compute_natal_chart's Jupiter entry, field retrograde.
marsnumberSidereal longitude of Mars [0, 360). From compute_natal_chart's planets[] entry where name == "Mars", field longitude.
mars_retrograde?booleanTrue if Mars is retrograde. Accepted for symmetry; Mars's orb is 17 deg either way (Surya Siddhanta IX.6 gives it no retrograde figure), so this does not change the result. From compute_natal_chart's Mars entry, field retrograde.
mercurynumberSidereal longitude of Mercury [0, 360). From compute_natal_chart's planets[] entry where name == "Mercury", field longitude.
mercury_retrograde?booleanTrue if Mercury is retrograde, which narrows its combustion orb from 14 deg to 12 deg (Surya Siddhanta IX.8). From compute_natal_chart's Mercury entry, field retrograde.
moonnumberSidereal longitude of Moon [0, 360). From compute_natal_chart's planets[] entry where name == "Moon", field longitude.
saturnnumberSidereal longitude of Saturn [0, 360). From compute_natal_chart's planets[] entry where name == "Saturn", field longitude.
saturn_retrograde?booleanTrue if Saturn is retrograde. Accepted for symmetry; Saturn's orb is 15 deg either way, so this does not change the result. From compute_natal_chart's Saturn entry, field retrograde.
sunnumberSidereal longitude of Sun [0, 360). From compute_natal_chart's planets[] entry where name == "Sun", field longitude.
venusnumberSidereal longitude of Venus [0, 360). From compute_natal_chart's planets[] entry where name == "Venus", field longitude.
venus_retrograde?booleanTrue if Venus is retrograde, which narrows its combustion orb from 10 deg to 8 deg (Surya Siddhanta IX.7). From compute_natal_chart's Venus entry, field retrograde.
Output schema
{
  "properties": {
    "states": {
      "description": "One entry per graha other than the Sun.",
      "items": {
        "properties": {
          "degrees_from_sun": {
            "description": "Angular separation from the Sun in degrees.",
            "type": "number"
          },
          "planet": {
            "description": "Graha assessed.",
            "type": "string"
          },
          "state": {
            "description": "Combust, DeeplyCombust, or None.",
            "type": "string"
          }
        },
        "required": [
          "planet",
          "state",
          "degrees_from_sun"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "states"
  ],
  "type": "object"
}

compute_shadbala

Compute the complete six-fold Shadbala of the seven grahas (Sun to Saturn) for a birth moment and place, per BPHS Ch.27, with Ishta and Kashta Phala per Ch.28, in virupas. Pass the moment and the place; the tool casts the chart itself and reads sunrise, sunset and the next sunrise from the engine. Every part is in the output, each in its own field: Sthana (uccha, saptavargaja, ojhayugma, kendradi, drekkana), Dig (continuous, the arc from the weak cusp over 3, 27.7), Kala (nathonnata, paksha, tribhaga, abda, masa, vara, hora, ayana and yuddha, which is signed), Cheshta (the cheshta kendra for Mars to Saturn, the Sun's ayana and the Moon's paksha bala, 27.18 and 27.24-25), Naisargika and Drik (a quarter of the benefic sphuta drishti added, a quarter of the malefic taken away, the aspect of Mercury and Jupiter added whole, 27.19; it can be negative or pass 60). The Sun's ayana and the Moon's paksha bala are counted once in kala and once in cheshta, each undoubled. The rules are the verses' defaults; the benefic and malefic grahas are those of BPHS 3.11, with Rahu (the mean node) and Ketu counting only as malefic company for Mercury. Each graha also carries its motion state (vakra, anuvakra, ... atichara, 27.21-23) against the mean geocentric motion; it is reported beside the strengths and is not part of any total. The Sun must both rise and set at the place: in the polar day or night there is no Hindu day to divide into thirds and horas, and the call fails by name.

7 parameters ▾
ayanamshastringSidereal zodiac system. Eleven systems, each derived forward from a primary source and none tuned to match another implementation. The chart's true_ayanamsha_value output field reports the TRUE ayanamsha (mean plus nutation in longitude) already applied — nutation is included, do not add it yourself. Tropical is refused: this tool is defined on sidereal positions. Systems: IndianOfficial = Indian Astronomical Ephemeris 2022, AYANAMSA section: 23 deg 51 min 25.53 sec at J2000.0, propagated by P03 general precession | FaganBradley = Fagan & Firebrace, Primer of Sidereal Astrology: synetic vernal point 335 deg 57 min 28.64 sec at B1950.0, ayanamsha = 360 deg minus SVP | Krishnamurti = Krishnamurti Padhdhati Vol-I: 22 deg 22 min 00 sec on the 1st of Chitra 1900, propagated at KSK's stated 50.2388475 arcsec/yr | Raman = Raman, A Manual of Hindu Astrology (1935), Ch. III Art. 49 | SuryaSiddhanta = Surya Siddhanta Ch. 3 vv. 9-12 | Yukteshwar = Yukteswar, The Holy Science (1894) | RevatiPaksha [star] = Revati at the sidereal initial point, the majority reading against Surya Siddhanta Ch. 8's own 359 deg 50 min, zeta Piscium per Hipparcos | PushyaPaksha [star] = Narasimha Rao, Introducing Pushya-paksha Ayanamsa | TrueChitra [star] = Self-describing condition; Spica per Hipparcos | ChandraHari [star] = Chandra Hari, Indian J. History of Science 33(4), 1998 | GalacticCenter0Sag [star] = Self-describing condition; Sgr A* per Gordon, de Witt & Jacobs (2023), AJ 165, 49.
elevation_m?numberObserver elevation in metres above sea level [-500, 9000] (default 0). Lowers the horizon by the dip and so moves sunrise and sunset.
house_system?stringHouse system whose first, fourth, seventh and tenth cusps Dig Bala is measured from, and whose house placements give Kendradi Bala: Placidus, Koch, Equal, WholeSign, etc. The same names compute_natal_chart takes.
julian_daynumberJulian Day number in UT1 (Universal Time) — not TT, not TDB, i.e. the same scale as compute_natal_chart's julian_day.
latitudenumberGeographic latitude in degrees, north positive. The Hindu day is reckoned from this place's sunrise.
longitudenumberGeographic longitude in degrees, east positive.
tz_offset_minutes?integerOffset of the observer's civil clock from UT, in minutes, in [-720, 840] (UTC-12:00 to UTC+14:00). Names the calendar date of the sunrise that begins the Hindu day, from which the lords of the year, month and day (abda, masa, vara) are reckoned.
Output schema
{
  "properties": {
    "cusps": {
      "description": "The four angular cusps Dig Bala is measured from, sidereal degrees.",
      "properties": {
        "first": {
          "type": "number"
        },
        "fourth": {
          "type": "number"
        },
        "seventh": {
          "type": "number"
        },
        "tenth": {
          "type": "number"
        }
      },
      "required": [
        "first",
        "fourth",
        "seventh",
        "tenth"
      ],
      "type": "object"
    },
    "house_system": {
      "description": "The house system requested. When `polar_fallback` is true it was undefined at this latitude, and the cusps and house placements come from the fallback the natal chart uses.",
      "type": "string"
    },
    "julian_day": {
      "description": "The Julian Day (UT1) the strengths were computed for, echoed back.",
      "type": "number"
    },
    "moment": {
      "description": "The birth moment Kala Bala was reckoned from. Every instant is a Julian Day (UT1).",
      "properties": {
        "apparent_hours_from_midnight": {
          "description": "Local apparent solar time, hours since midnight, 0 to 24: the hour angle of the true Sun plus 12 hours.",
          "type": "number"
        },
        "hindu_day_jdn": {
          "description": "Julian Day Number of the local calendar date of jd_sunrise, at tz_offset_minutes.",
          "type": "integer"
        },
        "jd": {
          "description": "The birth.",
          "type": "number"
        },
        "jd_next_sunrise": {
          "description": "The sunrise that ends the Hindu day.",
          "type": "number"
        },
        "jd_sunrise": {
          "description": "The sunrise that begins the Hindu day holding the birth: the last at or before it.",
          "type": "number"
        },
        "jd_sunset": {
          "description": "The sunset of that day.",
          "type": "number"
        }
      },
      "required": [
        "jd",
        "jd_sunrise",
        "jd_sunset",
        "jd_next_sunrise",
        "hindu_day_jdn",
        "apparent_hours_from_midnight"
      ],
      "type": "object"
    },
    "planets": {
      "description": "The seven grahas, Sun to Saturn, in the order Sun, Moon, Mars, Mercury, Jupiter, Venus, Saturn. All strengths are in virupas.",
      "items": {
        "properties": {
          "cheshta_bala": {
            "description": "Motional strength: the Sun's ayana bala, the Moon's paksha bala, the folded cheshta kendra over 3 for the others (27.18, 27.24, 27.25).",
            "type": "number"
          },
          "dig_bala": {
            "description": "Directional strength, 0-60, continuous in the longitude (27.7).",
            "type": "number"
          },
          "drik_bala": {
            "description": "Aspectual strength from the sphuta drishti, signed (27.19).",
            "type": "number"
          },
          "ishta_phala": {
            "description": "Benefic potential, 0-60 (28.5-28.6).",
            "type": "number"
          },
          "kala": {
            "description": "Temporal strength by part.",
            "properties": {
              "abda": {
                "description": "15 to the lord of the year (27.13).",
                "type": "number"
              },
              "ayana": {
                "description": "Strength from the sayana longitude, 0-60 (27.15-27.17), undoubled.",
                "type": "number"
              },
              "hora": {
                "description": "60 to the lord of the hora.",
                "type": "number"
              },
              "masa": {
                "description": "30 to the lord of the month.",
                "type": "number"
              },
              "nathonnata": {
                "description": "Day/night strength from the time from local midnight, 0-60 (27.8-27.9).",
                "type": "number"
              },
              "paksha": {
                "description": "Strength from the Moon-Sun elongation, 0-60 (27.10-27.11), undoubled for the Moon.",
                "type": "number"
              },
              "total": {
                "description": "Sum of the nine.",
                "type": "number"
              },
              "tribhaga": {
                "description": "60 to Jupiter and to the lord of the third of the day or night (27.12).",
                "type": "number"
              },
              "vara": {
                "description": "45 to the lord of the day.",
                "type": "number"
              },
              "yuddha": {
                "description": "Signed planetary-war adjustment (27.20): the difference of the two strengths to the victor, from the vanquished.",
                "type": "number"
              }
            },
            "required": [
              "nathonnata",
              "paksha",
              "tribhaga",
              "abda",
              "masa",
              "vara",
              "hora",
              "ayana",
              "yuddha",
              "total"
            ],
            "type": "object"
          },
          "kashta_phala": {
            "description": "Malefic potential, 0-60.",
            "type": "number"
          },
          "motion": {
            "description": "The graha's motion state (27.21-27.23). Reported beside the strengths and not part of any total.",
            "properties": {
              "mean_speed_deg_per_day": {
                "description": "Mean geocentric motion at the birth, the pace the state is judged against.",
                "type": "number"
              },
              "speed_deg_per_day": {
                "description": "Speed in longitude, negative when retrograde.",
                "type": "number"
              },
              "state": {
                "description": "Vakra, Anuvakra, Vikala, Manda, Mandatara, Sama, Chara or Atichara.",
                "type": "string"
              },
              "virupas": {
                "description": "The cheshta bala that state carries in the verse.",
                "type": "number"
              }
            },
            "required": [
              "state",
              "virupas",
              "speed_deg_per_day",
              "mean_speed_deg_per_day"
            ],
            "type": "object"
          },
          "naisargika_bala": {
            "description": "Natural strength, fixed per graha (27.14).",
            "type": "number"
          },
          "planet": {
            "description": "Graha assessed.",
            "type": "string"
          },
          "sthana": {
            "description": "Positional strength by part.",
            "properties": {
              "drekkana": {
                "description": "Decanate strength, 0 or 15 (27.6).",
                "type": "number"
              },
              "kendradi": {
                "description": "Angularity strength from the house, 15, 30 or 60.",
                "type": "number"
              },
              "ojhayugma": {
                "description": "Odd/even sign and navamsa strength, 0-30.",
                "type": "number"
              },
              "saptavargaja": {
                "description": "Dignity in the seven vargas D1, D2, D3, D7, D9, D12 and D30 (27.2-27.4).",
                "type": "number"
              },
              "total": {
                "description": "Sum of the five.",
                "type": "number"
              },
              "uccha": {
                "description": "Exaltation strength, 0-60 (27.1).",
                "type": "number"
              }
            },
            "required": [
              "uccha",
              "saptavargaja",
              "ojhayugma",
              "kendradi",
              "drekkana",
              "total"
            ],
            "type": "object"
          },
          "total": {
            "description": "Sum of the six: sthana.total + dig_bala + kala.total + cheshta_bala + naisargika_bala + drik_bala.",
            "type": "number"
          }
        },
        "required": [
          "planet",
          "sthana",
          "dig_bala",
          "kala",
          "cheshta_bala",
          "naisargika_bala",
          "drik_bala",
          "total",
          "ishta_phala",
          "kashta_phala",
          "motion"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "polar_fallback": {
      "description": "True when the requested house system was undefined at this latitude and a fallback was used, so Dig Bala and Kendradi Bala are read from the fallback's cusps and houses.",
      "type": "boolean"
    },
    "true_ayanamsha_value": {
      "description": "True ayanamsha (mean plus nutation in longitude) applied, in degrees.",
      "type": "number"
    }
  },
  "required": [
    "julian_day",
    "true_ayanamsha_value",
    "house_system",
    "polar_fallback",
    "moment",
    "cusps",
    "planets"
  ],
  "type": "object"
}

compute_vargas

Compute Vedic divisional charts (vargas). Given a time and place, returns one chart per requested division: the varga lagna, and for each of the ten bodies compute_natal_chart returns — the seven grahas plus the mean, true and osculating lunar node — its rashi longitude, the sign it occupies within that varga, its dignity in that sign, and its whole-sign bhava counted from the varga lagna. Ketu is not listed separately: it is the node's opposite point, 180 degrees away. The nodes carry no dignity, so that field is absent for them. Supply planet_longitude instead to divide a single longitude without an ephemeris lookup, in which case no graha name, dignity or bhava is returned because none is defined. Vargas are classically read on a sidereal zodiac: pass an ayanamsha, or accept the Tropical default this surface uses everywhere. Source: BPHS Ch. 6-7.

7 parameters ▾
ayanamsha?stringSidereal zodiac system. Eleven systems, each derived forward from a primary source and none tuned to match another implementation. The chart's true_ayanamsha_value output field reports the TRUE ayanamsha (mean plus nutation in longitude) already applied — nutation is included, do not add it yourself. Pass Tropical for no rotation. Systems: IndianOfficial = Indian Astronomical Ephemeris 2022, AYANAMSA section: 23 deg 51 min 25.53 sec at J2000.0, propagated by P03 general precession | FaganBradley = Fagan & Firebrace, Primer of Sidereal Astrology: synetic vernal point 335 deg 57 min 28.64 sec at B1950.0, ayanamsha = 360 deg minus SVP | Krishnamurti = Krishnamurti Padhdhati Vol-I: 22 deg 22 min 00 sec on the 1st of Chitra 1900, propagated at KSK's stated 50.2388475 arcsec/yr | Raman = Raman, A Manual of Hindu Astrology (1935), Ch. III Art. 49 | SuryaSiddhanta = Surya Siddhanta Ch. 3 vv. 9-12 | Yukteshwar = Yukteswar, The Holy Science (1894) | RevatiPaksha [star] = Revati at the sidereal initial point, the majority reading against Surya Siddhanta Ch. 8's own 359 deg 50 min, zeta Piscium per Hipparcos | PushyaPaksha [star] = Narasimha Rao, Introducing Pushya-paksha Ayanamsa | TrueChitra [star] = Self-describing condition; Spica per Hipparcos | ChandraHari [star] = Chandra Hari, Indian J. History of Science 33(4), 1998 | GalacticCenter0Sag [star] = Self-describing condition; Sgr A* per Gordon, de Witt & Jacobs (2023), AJ 165, 49.
divisionsarrayVarga division codes to compute, e.g. ["D1", "D9", "D10"]. A code is a name (navamsha), dN (D9) or d-N (d-9), in any case. A division named more than once, in any spelling, is answered once, at its first position. There are 16 vargas in all.
julian_daynumberJulian Day number in UT1 (Universal Time) — not TT, not TDB. Same scale as compute_natal_chart's julian_day: the engine converts to TT internally for the dynamical terms and uses UT1 directly for the Earth-rotation term.
latitudenumberGeographic latitude in degrees [-90, +90]
longitudenumberGeographic longitude in degrees [-180, +180], east positive
planet_longitude?numberSidereal longitude of a single body in degrees [0, 360). When supplied, only this longitude is divided and no ephemeris is consulted; the result carries no graha name, dignity or bhava.
tradition?stringWhich Parashari reading to use where the texts diverge. 'modality' (default) starts the division from a movable/fixed/dual sign; 'element' starts it from a fire/earth/air/water sign. This changes D16, D20, D30 and D45 only; every other varga is identical under both. Source: BPHS Ch. 6; Phala Deepika Ch. 2.
Output schema
{
  "properties": {
    "julian_day": {
      "description": "The Julian Day the vargas were computed for, echoed back.",
      "type": "number"
    },
    "tradition": {
      "description": "The tradition actually used: 'modality' or 'element'.",
      "type": "string"
    },
    "true_ayanamsha_value": {
      "description": "True ayanamsha (mean plus nutation in longitude) applied before dividing, in degrees. Zero when Tropical.",
      "type": "number"
    },
    "vargas": {
      "description": "One entry per distinct requested division, in the order first requested.",
      "items": {
        "properties": {
          "division": {
            "description": "The division code as requested, e.g. D9.",
            "type": "string"
          },
          "lagna_sign": {
            "description": "Sign the ascendant occupies in this varga (0=Aries…11=Pisces). Absent when planet_longitude was supplied.",
            "type": "integer"
          },
          "placements": {
            "description": "One entry per graha, or a single entry for a supplied longitude.",
            "items": {
              "properties": {
                "bhava": {
                  "description": "Whole-sign house counted from the varga lagna, 1-12. Absent when planet_longitude was supplied.",
                  "type": "integer"
                },
                "dignity": {
                  "description": "Essential dignity in the varga sign. Absent for a supplied longitude, and for Rahu and Ketu, which have none.",
                  "type": "string"
                },
                "planet": {
                  "description": "Graha name. Absent for a supplied longitude.",
                  "type": "string"
                },
                "rashi_longitude": {
                  "description": "The sidereal longitude that was divided, in degrees [0, 360).",
                  "type": "number"
                },
                "varga_sign": {
                  "description": "Sign occupied within this varga (0=Aries…11=Pisces).",
                  "type": "integer"
                }
              },
              "required": [
                "rashi_longitude",
                "varga_sign"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "division",
          "placements"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "julian_day",
    "tradition",
    "vargas"
  ],
  "type": "object"
}

emit_graph

Turn a chart into a queryable property graph. Accepts the output of compute_natal_chart directly (pass latitude and longitude alongside it), or an existing ChartGraph. Emits Neo4j Cypher, SurrealDB SurrealQL, JSON-LD, plain JSON, or RAG embedding text.

5 parameters ▾
chart_jsonobjectEither the output of compute_natal_chart ({planets, houses, aspects, ...}), which is converted to a graph here, or an existing ChartGraph ({nodes, edges, chart_id, classification})
classification?stringOptional label or session ID attached to emitted nodes
formatstringTarget output format
latitude?numberObserver latitude, degrees north. Required when chart_json is a computed chart; a chart result does not record where it was cast. Ignored for an existing ChartGraph.
longitude?numberObserver longitude, degrees east. Required when chart_json is a computed chart.

compute_transit

Compute transiting planet positions relative to a natal chart at a specific moment. Returns planet longitudes for the transit time alongside natal positions, enabling aspect calculation between transit and natal placements.

4 parameters ▾
natal_jdnumberJulian Day of the natal chart in UT1 (Universal Time) — not TT, not TDB. The engine converts to TT internally for the dynamical terms.
natal_latnumberNatal geographic latitude in degrees [-90, +90]
natal_lonnumberNatal geographic longitude in degrees [-180, +180], east positive
transit_jdnumberJulian Day of the transit moment to compute, in UT1 (Universal Time) — not TT, not TDB. The engine converts to TT internally for the dynamical terms.
Output schema
{
  "properties": {
    "natal_jd": {
      "description": "Julian Day of the natal chart, echoed back.",
      "type": "number"
    },
    "natal_positions": {
      "description": "Natal positions used for the comparison.",
      "items": {
        "properties": {
          "distance": {
            "description": "Distance from the observer in AU.",
            "type": "number"
          },
          "latitude": {
            "description": "Ecliptic latitude in degrees.",
            "type": "number"
          },
          "longitude": {
            "description": "Longitude in degrees [0, 360), sidereal when an ayanamsha was applied.",
            "type": "number"
          },
          "name": {
            "description": "Body name.",
            "type": "string"
          },
          "speed": {
            "description": "Daily motion in degrees per day, negative when retrograde.",
            "type": "number"
          }
        },
        "required": [
          "name",
          "longitude",
          "latitude",
          "distance",
          "speed"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "transit_jd": {
      "description": "Julian Day of the transit moment, echoed back.",
      "type": "number"
    },
    "transit_natal_aspects": {
      "items": {
        "properties": {
          "applying": {
            "description": "True when the aspect is closing.",
            "type": "boolean"
          },
          "aspect_angle": {
            "description": "Exact angle of the aspect in degrees.",
            "type": "number"
          },
          "aspect_type": {
            "description": "Aspect name.",
            "type": "string"
          },
          "natal_body": {
            "description": "Natal graha aspected.",
            "type": "string"
          },
          "natal_body_index": {
            "description": "Index into natal_positions.",
            "type": "integer"
          },
          "orb": {
            "description": "Departure from exact, in degrees.",
            "type": "number"
          },
          "transit_body": {
            "description": "Transiting graha.",
            "type": "string"
          },
          "transit_body_index": {
            "description": "Index into transit_positions.",
            "type": "integer"
          }
        },
        "required": [
          "transit_body",
          "natal_body",
          "aspect_type",
          "orb"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "transit_positions": {
      "description": "Positions at the transit moment.",
      "items": {
        "properties": {
          "distance": {
            "description": "Distance from the observer in AU.",
            "type": "number"
          },
          "latitude": {
            "description": "Ecliptic latitude in degrees.",
            "type": "number"
          },
          "longitude": {
            "description": "Longitude in degrees [0, 360), sidereal when an ayanamsha was applied.",
            "type": "number"
          },
          "name": {
            "description": "Body name.",
            "type": "string"
          },
          "speed": {
            "description": "Daily motion in degrees per day, negative when retrograde.",
            "type": "number"
          }
        },
        "required": [
          "name",
          "longitude",
          "latitude",
          "distance",
          "speed"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "natal_jd",
    "transit_jd",
    "natal_positions",
    "transit_positions",
    "transit_natal_aspects"
  ],
  "type": "object"
}

search_transits

Search for transiting planet–natal planet aspects within a time window. Supply natal positions and a Julian Day range; receive a list of exact transit moments with aspect type and orb. Every event is an exact crossing, so its applying flag is always true.

6 parameters ▾
aspects?arrayAspect types to filter (e.g. conjunction, opposition, trine). Defaults to major aspects.
bodies?arrayTransiting bodies to include. Defaults to all planets. At most 10 entries, the number of distinct bodies the tool can serve; a repeated body is scanned once.
end_jdnumberEnd of the search window as a Julian Day in UT1 (Universal Time) — not TT, not TDB.
max_orb?numberMaximum orb in degrees (default 1.0)
natal_positionsarrayArray of natal planet positions to check transits against. At most 64 entries.
start_jdnumberStart of the search window as a Julian Day in UT1 (Universal Time) — not TT, not TDB. The engine converts to TT internally for the dynamical terms; each event's exact_jd is returned on this same UT1 scale.
Output schema
{
  "properties": {
    "end_jd": {
      "description": "End of the searched window, echoed back.",
      "type": "number"
    },
    "event_count": {
      "description": "Number of entries in events.",
      "type": "integer"
    },
    "events": {
      "items": {
        "properties": {
          "applying": {
            "description": "Always true. An event is an exact crossing, and the orb closes into every crossing, so no separating event is returned. The field is kept so the output keeps its shape. For a flag that varies, see compute_transit, which reports applying at an arbitrary moment.",
            "type": "boolean"
          },
          "aspect_type": {
            "description": "Aspect name.",
            "type": "string"
          },
          "exact_jd": {
            "description": "Julian Day at which the aspect is closest to exact.",
            "type": "number"
          },
          "exact_orb": {
            "description": "Orb at that moment, in degrees.",
            "type": "number"
          },
          "natal_body": {
            "description": "Natal point aspected.",
            "type": "string"
          },
          "transiting_body": {
            "description": "Transiting graha.",
            "type": "string"
          }
        },
        "required": [
          "transiting_body",
          "natal_body",
          "aspect_type",
          "exact_jd"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "max_orb": {
      "description": "Orb the search used, in degrees.",
      "type": "number"
    },
    "start_jd": {
      "description": "Start of the searched window, echoed back.",
      "type": "number"
    }
  },
  "required": [
    "start_jd",
    "end_jd",
    "event_count",
    "events"
  ],
  "type": "object"
}

search_muhurta

Search for auspicious time windows (muhurta) within a given period for a geographic location. Returns ranked muhurta candidates with quality scores based on tithi, nakshatra, yoga, karana, and planetary positions. The search window is capped at 30 days (see MUHURTA_SEARCH_RANGE_TOO_LARGE), a scope limit; for a longer horizon, issue several searches.

7 parameters ▾
elevation_m?numberObserver elevation in metres above sea level [-500, 9000] (default 0). Lowers the horizon by the dip and so moves sunrise, which is what each candidate's vara is reckoned from — at 3650 m (Lhasa) 9.2 minutes earlier. Pass the same value as compute_panchanga for the same observer, or the two tools can report different weekdays for one instant.
end_jdnumberEnd of the search window as a Julian Day in UT1 (Universal Time) — not TT, not TDB. The span from start_jd to end_jd must not exceed 30 days.
latitudenumberGeographic latitude in degrees [-90, +90]
longitudenumberGeographic longitude in degrees [-180, +180], east positive
min_quality?numberMinimum quality score [0.0, 1.0] for muhurta inclusion (default 0.5)
start_jdnumberStart of the search window as a Julian Day in UT1 (Universal Time) — not TT, not TDB. The engine converts to TT internally for the dynamical terms and uses UT1 directly for sunrise, which each candidate's vara is reckoned from; every returned jd, tithi_end_jd and nakshatra_end_jd is on this same UT1 scale. The span from start_jd to end_jd must not exceed 30 days.
tz_offset_minutes?integerOffset of the observer's civil clock from UT, in minutes. Names the vara (weekday) reported for each candidate — it does not change which sunrise bounds the vara, only what that vara is called. Default 0 (UT).
Output schema
{
  "properties": {
    "elevation_m": {
      "description": "Elevation used, in metres.",
      "type": "number"
    },
    "end_jd": {
      "description": "End of the searched window, echoed back.",
      "type": "number"
    },
    "latitude": {
      "description": "Latitude used, in degrees.",
      "type": "number"
    },
    "longitude": {
      "description": "Longitude used, in degrees.",
      "type": "number"
    },
    "min_quality": {
      "description": "Quality floor the search applied.",
      "type": "number"
    },
    "result_count": {
      "description": "Number of entries in results.",
      "type": "integer"
    },
    "results": {
      "items": {
        "properties": {
          "factors": {
            "items": {
              "description": "Named factor contributing to the score.",
              "type": "string"
            },
            "type": "array"
          },
          "jd": {
            "description": "Julian Day of the candidate moment.",
            "type": "number"
          },
          "nakshatra": {
            "description": "Nakshatra name.",
            "type": "string"
          },
          "nakshatra_end_jd": {
            "description": "Julian Day at which the nakshatra ends.",
            "type": "number"
          },
          "quality_score": {
            "description": "Composite score; higher is better.",
            "type": "number"
          },
          "tithi_end_jd": {
            "description": "Julian Day at which the tithi ends.",
            "type": "number"
          },
          "tithi_name": {
            "description": "Tithi name.",
            "type": "string"
          },
          "tithi_number": {
            "description": "Tithi number, 1-30.",
            "type": "integer"
          },
          "weekday": {
            "description": "Vara at that moment.",
            "type": "string"
          }
        },
        "required": [
          "jd",
          "quality_score",
          "weekday",
          "tithi_name",
          "nakshatra"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "start_jd": {
      "description": "Start of the searched window, echoed back.",
      "type": "number"
    }
  },
  "required": [
    "start_jd",
    "end_jd",
    "result_count",
    "results"
  ],
  "type": "object"
}

compute_ashtakavarga

Compute Bhinna Ashtakavarga (raw bindu tables) and Sarvashtakavarga for all 7 planets from sign positions. Source: BPHS Ch.66 vv.13-68. Trikona/Ekadhipatya Shodhana and Pinda Sadhana are not included.

8 parameters ▾
jupiterintegerSign index of Jupiter (0=Aries…11=Pisces)
lagnaintegerSign index of Lagna (Ascendant)
marsintegerSign index of Mars (0=Aries…11=Pisces)
mercuryintegerSign index of Mercury (0=Aries…11=Pisces)
moonintegerSign index of Moon (0=Aries…11=Pisces)
saturnintegerSign index of Saturn (0=Aries…11=Pisces)
sunintegerSign index of Sun (0=Aries…11=Pisces)
venusintegerSign index of Venus (0=Aries…11=Pisces)
Output schema
{
  "properties": {
    "sarvashtakavarga": {
      "description": "Twelve entries, Aries first.",
      "items": {
        "description": "Summed bindus in one rashi.",
        "type": "integer"
      },
      "type": "array"
    },
    "tables": {
      "description": "One Bhinna Ashtakavarga per graha.",
      "items": {
        "properties": {
          "bindus": {
            "description": "Twelve entries, Aries first.",
            "items": {
              "description": "Bindus in one rashi, 0-8.",
              "type": "integer"
            },
            "type": "array"
          },
          "planet": {
            "description": "Graha whose Bhinna Ashtakavarga this is.",
            "type": "string"
          },
          "total": {
            "description": "Sum of this graha's bindus.",
            "type": "integer"
          }
        },
        "required": [
          "planet",
          "bindus",
          "total"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "tables",
    "sarvashtakavarga"
  ],
  "type": "object"
}

compute_gochara

Compute Gochara (transit interpretation) for the seven grahas against a natal reference sign per Phaladeepika ch. 26. Returns favourable/unfavourable verdict, house from natal, and raw vedha (obstruction) candidates per planet. The natal reference sign is the caller's choice — typically the natal Moon's sign (Chandra Gochara) or the natal Lagna's sign. Rahu and Ketu are not included.

10 parameters ▾
jupiterintegerTransit sign index of Jupiter
marsintegerTransit sign index of Mars
mercuryintegerTransit sign index of Mercury
moonintegerTransit sign index of Moon
natal_reference_signintegerSign index of the natal reference point — natal Moon for Chandra Gochara, natal Lagna for Lagna-based Gochara
saturnintegerTransit sign index of Saturn
school?stringExemption profile applied to the raw vedha candidate list
sunintegerTransit sign index of Sun (0=Aries … 11=Pisces)
vedha_table?stringVedha pair table source: the vedha places of Phaladeepika ch. 26, which agree with Muhurta Chintamani ch. 4
venusintegerTransit sign index of Venus
Output schema
{
  "properties": {
    "entries": {
      "items": {
        "properties": {
          "classical_effect": {
            "description": "Classical result attributed to this placement.",
            "type": "string"
          },
          "graha": {
            "description": "Transiting graha.",
            "type": "string"
          },
          "house_from_natal": {
            "description": "Count from the reference rashi, 1-12.",
            "type": "integer"
          },
          "natal_reference_rashi": {
            "description": "Rashi the count is taken from.",
            "type": "integer"
          },
          "transit_rashi": {
            "description": "Rashi the graha transits, 0=Aries … 11=Pisces.",
            "type": "integer"
          },
          "vedha_candidates": {
            "items": {
              "description": "Graha whose placement would obstruct this effect.",
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "graha",
          "transit_rashi",
          "house_from_natal",
          "classical_effect"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "entries"
  ],
  "type": "object"
}

compute_panchanga

Compute the panchanga — the five limbs of the Vedic almanac — for an instant: tithi (lunar day, with paksha and lord), vara (weekday reckoned from local sunrise, with its lord and the Rahu and Gulika Kalam windows as Julian Days), nakshatra (with pada), yoga (one of the 27 nithya yogas, with degrees remaining), and karana (half-tithi). Takes sidereal longitudes; all returned instants are Julian Days (UT). vara.from_sunrise reports HOW the weekday was reckoned: true means it was taken from an actual local sunrise (the Vedic definition); false means no sunrise exists to reckon from — the polar day or polar night, above about ±66.5° latitude — and the value is the observer's local CIVIL weekday as a documented fallback, which is a different quantity. Check it before presenting the vara at high latitude. vara.rahu_kalam being null is NOT the same signal: the Kalam windows can also be null while from_sunrise is true.

7 parameters ▾
elevation_m?numberObserver elevation in metres above sea level [-500, 9000] (default 0). Lowers the horizon by the dip and so moves sunrise — at 3650 m (Lhasa) 9.2 minutes earlier, enough to change the vara in that window. Pass the same value as search_muhurta for the same observer, or the two tools can report different weekdays for one instant.
jdnumberJulian Day number in UT1 (Universal Time) — not TT, not TDB. The engine converts to TT internally for the dynamical terms and uses UT1 directly for sunrise, which the vara is reckoned from; every returned instant, the Rahu and Gulika Kalam bounds included, is on this same UT1 scale. Supplying a TT/TDB Julian Day shifts sunrise by ΔT (≈ 69 s today), enough to move the vara for an instant near sunrise.
latitudenumberObserver latitude in degrees. Required — the vara is reckoned from local sunrise, so it depends on the observer.
longitudenumberObserver longitude in degrees, east positive. Required.
moonnumberSidereal longitude of Moon [0, 360)
sunnumberSidereal longitude of Sun [0, 360)
tz_offset_minutes?integerOffset of the observer's civil clock from UT, in minutes, in [-720, 840] (UTC-12:00 to UTC+14:00). Used only to name the vara's weekday.
Output schema
{
  "properties": {
    "karana": {
      "properties": {
        "index": {
          "description": "Karana index.",
          "type": "integer"
        },
        "is_fixed": {
          "description": "True for the four fixed karanas.",
          "type": "boolean"
        },
        "name": {
          "description": "Karana name.",
          "type": "string"
        }
      },
      "required": [
        "index",
        "name"
      ],
      "type": "object"
    },
    "nakshatra": {
      "properties": {
        "index": {
          "description": "Nakshatra index, 0-26.",
          "type": "integer"
        },
        "name": {
          "description": "Nakshatra name.",
          "type": "string"
        },
        "pada": {
          "description": "Pada within the nakshatra, 1-4.",
          "type": "integer"
        }
      },
      "required": [
        "index",
        "name",
        "pada"
      ],
      "type": "object"
    },
    "tithi": {
      "properties": {
        "lord": {
          "description": "Ruling graha.",
          "type": "string"
        },
        "name": {
          "description": "Tithi name.",
          "type": "string"
        },
        "number": {
          "description": "Tithi number, 1-30.",
          "type": "integer"
        },
        "paksha": {
          "description": "Shukla or Krishna.",
          "type": "string"
        }
      },
      "required": [
        "number",
        "name",
        "paksha"
      ],
      "type": "object"
    },
    "vara": {
      "properties": {
        "from_sunrise": {
          "description": "True when the vara was reckoned from sunrise rather than midnight.",
          "type": "boolean"
        },
        "gulika_kalam": {
          "properties": {
            "end_jd": {
              "description": "End as a Julian Day.",
              "type": "number"
            },
            "start_jd": {
              "description": "Start as a Julian Day.",
              "type": "number"
            }
          },
          "type": "object"
        },
        "gulika_kalam_slot": {
          "description": "Which eighth of the day Gulika Kalam falls in, 1-8.",
          "type": "integer"
        },
        "lord": {
          "description": "Ruling graha.",
          "type": "string"
        },
        "rahu_kalam": {
          "properties": {
            "end_jd": {
              "description": "End as a Julian Day.",
              "type": "number"
            },
            "start_jd": {
              "description": "Start as a Julian Day.",
              "type": "number"
            }
          },
          "type": "object"
        },
        "rahu_kalam_slot": {
          "description": "Which eighth of the day Rahu Kalam falls in, 1-8.",
          "type": "integer"
        },
        "weekday": {
          "description": "Vara name.",
          "type": "string"
        }
      },
      "required": [
        "weekday",
        "lord"
      ],
      "type": "object"
    },
    "yoga": {
      "properties": {
        "index": {
          "description": "Yoga index, 0-26.",
          "type": "integer"
        },
        "name": {
          "description": "Yoga name.",
          "type": "string"
        },
        "remaining_degrees": {
          "description": "Degrees left before the yoga changes.",
          "type": "number"
        }
      },
      "required": [
        "index",
        "name"
      ],
      "type": "object"
    }
  },
  "required": [
    "tithi",
    "vara",
    "nakshatra",
    "yoga",
    "karana"
  ],
  "type": "object"
}

compute_drishti

Compute graha drishti — Vedic sign aspects — for all nine grahas. Unlike Western aspects, drishti is cast from sign to sign and is asymmetric: every graha aspects the 7th from itself, and Mars additionally aspects the 4th and 8th, Jupiter the 5th and 9th, Saturn the 3rd and 10th. Returns each aspect with its graded strength (Full, ThreeQuarter, Half, Quarter) and the house distance.

9 parameters ▾
jupiternumberSidereal longitude of Jupiter [0, 360)
ketunumberSidereal longitude of Ketu [0, 360)
marsnumberSidereal longitude of Mars [0, 360)
mercurynumberSidereal longitude of Mercury [0, 360)
moonnumberSidereal longitude of Moon [0, 360)
rahunumberSidereal longitude of Rahu [0, 360)
saturnnumberSidereal longitude of Saturn [0, 360)
sunnumberSidereal longitude of Sun [0, 360)
venusnumberSidereal longitude of Venus [0, 360)
Output schema
{
  "properties": {
    "aspects": {
      "items": {
        "properties": {
          "aspected_sign": {
            "description": "Rashi receiving the drishti.",
            "type": "integer"
          },
          "aspecting_planet": {
            "description": "Graha casting the drishti.",
            "type": "string"
          },
          "aspecting_sign": {
            "description": "Rashi it occupies, 0=Aries … 11=Pisces.",
            "type": "integer"
          },
          "houses_away": {
            "description": "Count from the aspecting rashi, 1-12.",
            "type": "integer"
          },
          "strength": {
            "description": "Classical share cast: Full, ThreeQuarter, Half or Quarter.",
            "type": "string"
          }
        },
        "required": [
          "aspecting_planet",
          "aspecting_sign",
          "aspected_sign",
          "houses_away",
          "strength"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "aspects"
  ],
  "type": "object"
}

compute_bhavas

Compute the whole-sign bhava (house) chart from an ascendant. In the Vedic whole-sign system the entire sign containing the ascendant is the 1st bhava, the next sign the 2nd, and so on — houses do not have cusps within signs. Returns the sign of each of the twelve bhavas with its kendra / trikona / dusthana / upachaya classification, and optionally places supplied grahas into their bhavas.

2 parameters ▾
ascendantnumberSidereal longitude of the ascendant [0, 360)
planets?objectOptional map of graha name to sidereal longitude, e.g. {"Mars": 200.4}. Each is placed into its bhava.
Output schema
{
  "properties": {
    "houses": {
      "description": "Twelve entries in order.",
      "items": {
        "properties": {
          "bhava": {
            "description": "House number, 1-12.",
            "type": "integer"
          },
          "is_dusthana": {
            "description": "True for houses 6, 8, 12.",
            "type": "boolean"
          },
          "is_kendra": {
            "description": "True for houses 1, 4, 7, 10.",
            "type": "boolean"
          },
          "is_trikona": {
            "description": "True for houses 1, 5, 9.",
            "type": "boolean"
          },
          "is_upachaya": {
            "description": "True for houses 3, 6, 10, 11.",
            "type": "boolean"
          },
          "sign": {
            "description": "Rashi occupying it, 0=Aries … 11=Pisces.",
            "type": "integer"
          }
        },
        "required": [
          "bhava",
          "sign"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "lagna_sign": {
      "description": "Rashi of the ascendant, 0=Aries … 11=Pisces.",
      "type": "integer"
    },
    "planets": {
      "description": "Empty unless grahas were supplied.",
      "items": {
        "properties": {
          "bhava": {
            "description": "House the graha falls in, 1-12.",
            "type": "integer"
          },
          "longitude": {
            "description": "Sidereal longitude in degrees [0, 360).",
            "type": "number"
          },
          "planet": {
            "description": "Graha name as supplied.",
            "type": "string"
          },
          "sign": {
            "description": "Rashi it occupies, 0=Aries … 11=Pisces.",
            "type": "integer"
          }
        },
        "required": [
          "planet",
          "bhava"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "lagna_sign",
    "houses"
  ],
  "type": "object"
}

compute_synastry

Compute synastry — the aspects each graha in one chart makes to each graha in another chart. Every graha in chart A is tested against every graha in chart B (the two charts do not need the same graha names), and each hit is returned with its aspect type, orb in degrees and strength (1.0 at exact, falling linearly to 0.0 at the orb boundary). Orbs are the traditional Lilly values — conjunction, trine and opposition 8°, square 7°, sextile 6°, minors 2° — scaled by orb_factor. Longitudes only: this tool needs no birth time, place or ephemeris.

4 parameters ▾
aspect_set?string'major' (default) tests the five Ptolemaic aspects; 'all' adds semi-sextile, semi-square, quintile, sesquiquadrate, bi-quintile and quincunx.
chart_aobjectMap of graha name to sidereal longitude [0, 360) for the first chart, e.g. {"Sun": 10.0, "Moon": 130.0}. At most 64 entries.
chart_bobjectMap of graha name to sidereal longitude [0, 360) for the second chart. Need not use the same names as chart_a. At most 64 entries.
orb_factor?numberMultiplier on the default orbs. 1.0 (default) is standard, 0.5 is tight. Must be greater than 0 and at most 5.0, above which the major-aspect windows cover every separation.
Output schema
{
  "properties": {
    "aspects": {
      "items": {
        "properties": {
          "aspect_type": {
            "description": "Aspect name.",
            "type": "string"
          },
          "chart_a_planet": {
            "description": "Graha from the first chart.",
            "type": "string"
          },
          "chart_b_planet": {
            "description": "Graha from the second chart.",
            "type": "string"
          },
          "orb": {
            "description": "Departure from exact, in degrees.",
            "type": "number"
          },
          "strength": {
            "description": "Normalised strength in [0, 1], 1 at exact.",
            "type": "number"
          }
        },
        "required": [
          "chart_a_planet",
          "chart_b_planet",
          "aspect_type",
          "orb",
          "strength"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "aspects"
  ],
  "type": "object"
}

compute_composite

Compute the midpoint composite chart of two charts: for each graha, the shorter-arc midpoint of its longitude in the two charts, and the arithmetic mean of its two speeds. The two charts must carry the SAME graha names — each graha is paired with its namesake, not with whatever happens to sit at the same position in a list — and a name present in one chart but not the other is an error naming that graha. Longitudes only: this tool needs no birth time, place or ephemeris.

2 parameters ▾
chart_aobjectMap of graha name to position for the first chart, e.g. {"Sun": {"longitude": 350.0, "speed": 1.0}}. `speed` is optional and defaults to 0.
chart_bobjectMap of graha name to position for the second chart. Must have exactly the same graha names as chart_a.
Output schema
{
  "properties": {
    "planets": {
      "description": "One entry per graha present in both charts.",
      "items": {
        "properties": {
          "longitude": {
            "description": "Midpoint longitude in degrees [0, 360).",
            "type": "number"
          },
          "planet": {
            "description": "Graha name.",
            "type": "string"
          },
          "speed": {
            "description": "Mean of the two supplied speeds, in degrees per day.",
            "type": "number"
          }
        },
        "required": [
          "planet",
          "longitude",
          "speed"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "planets"
  ],
  "type": "object"
}

Next

Where to go from here.