Skip to main content
Glama

compute_panchanga

Calculate the five limbs of the Vedic almanac for an instant and location: tithi, vara (from sunrise), nakshatra, yoga, karana, with Rahu/Gulika kalam windows and polar-day fallback.

Instructions

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
jdYesJulian 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.
sunYesSidereal longitude of Sun [0, 360)
moonYesSidereal longitude of Moon [0, 360)
latitudeYesObserver latitude in degrees. Required — the vara is reckoned from local sunrise, so it depends on the observer.
longitudeYesObserver longitude in degrees, east positive. Required.
elevation_mNoObserver 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.
tz_offset_minutesNoOffset 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.
Behavior5/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure, and it does so excellently. It explains the fallback behavior for vara at polar latitudes, the meaning of from_sunrise, the distinction between null rahu_kalam and from_sunrise, and the UT1 time scale used for all returned instants. It also warns about the impact of elevation on sunrise and the need to pass consistent values with search_muhurta. This is rich behavioral context beyond what any schema could convey.

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 dense but well-structured, front-loading the core purpose and then providing critical caveats. Every sentence adds value, covering the five limbs, the time scale, the vara fallback, and the rahu_kalam distinction. It is longer than a typical description but justified by the complexity of the tool and the need to prevent misuse. The structure is logical, moving from what it computes to how to interpret the results.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (7 parameters, no output schema, no annotations), the description is remarkably complete. It covers the input requirements (sidereal longitudes, observer location), the output structure (five limbs with specific details), the time scale (UT1), and the edge cases (polar day/night, elevation effects, consistency with search_muhurta). An agent has everything needed to call this tool correctly and interpret its results, even without an output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema description coverage is 100%, so the schema already documents all parameters thoroughly. The description adds value by explaining the critical distinction between UT1 and TT/TDB for the jd parameter, the dependency of vara on local sunrise (latitude), and the consistency requirement for elevation_m with search_muhurta. It reinforces the importance of these parameters without repeating the schema verbatim, though it doesn't add new syntax details beyond what the schema provides.

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 computes the panchanga and enumerates all five limbs (tithi, vara, nakshatra, yoga, karana) with specific details for each. It distinguishes itself from sibling tools like compute_natal_chart or compute_gochara by focusing on the almanac computation. The verb 'compute' and the resource 'panchanga' are specific and unambiguous.

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 description provides clear context on when to use this tool (computing the five limbs of the Vedic almanac) and includes important usage caveats, such as checking vara.from_sunrise at high latitudes and the distinction between null rahu_kalam and from_sunrise being false. However, it does not explicitly name alternative tools or state when NOT to use this tool, though the sibling list implies other tools handle different astrological computations.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/arthiqlabs/vedaksha'

If you have feedback or need assistance with the MCP directory API, please join our Discord server