Skip to main content
Glama

Regional calendar: convert a Gregorian date

astroway_vedic_calendar_regional_date
Read-onlyIdempotent

One Gregorian date in a regional calendar at the place. Solar calendars (tamil, malayalam, bengali): month, its number, day of the month and the era year. Lunisolar (gujarati, marathi): amanta month, the tithi at local sunrise with its paksha (Sud and Vad for Gujarati), adhika flag and the era year. Each answer carries the month's first and last civil day and the rule used.

[Group: Vedic] [Endpoint: POST /v1/vedic/calendar/regional/date] [Required: calendar, date, latitude, longitude] [Cost: 20 credits (Tier 2)]

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": {
      "calendar": "<calendar>",
      "date": "<date>",
      "latitude": "<latitude>",
      "longitude": "<longitude>"
    },
    "name": "astroway_vedic_calendar_regional_date"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYesGregorian date, YYYY-MM-DD, local to the place.
fieldsNoComma-separated paths inside `data` to keep, e.g. "planets.name,houses.cusp".
ayanamsaNoSidereal school by name. Lahiri when omitted. Equivalent to ayanamsaId; send either.
calendarYestamil, malayalam, bengali (solar months from the sankranti by each region's rule), gujarati (amanta, Vikram Samvat from Kartika), marathi (amanta, Shaka from Chaitra).
latitudeYesLatitude in decimal degrees, north positive. Between -66 and 66: further out the Sun does not rise on some days and a Hindu day has no start.
timezoneNoIANA zone name such as Asia/Kolkata, America/New_York or Europe/Kyiv, or auto (default) to look it up from the coordinates. Resolved day by day: each day is read on the offset that zone kept that day, so summer time is followed.
longitudeYesLongitude in decimal degrees, east positive.
precisionNoRound numbers to this many decimals.
ayanamsaIdNo
timezoneOffsetNoA fixed offset in hours instead of a zone, for the whole year. Ignored when timezone is sent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed16 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • changedInput schema / properties / fields / description
      Previous value: -"Compact mode: comma-separated dotted paths to keep, relative to `data`, e.g. \"planets.name,planets.longitude,houses.cusp\". Omit for the whole response."New value: +"Comma-separated paths inside `data` to keep, e.g. \"planets.name,houses.cusp\"."
    • removedInput schema / properties / latitude / anyOf
      Removed value: -[
      -  {
      -    "maximum": 66,
      -    "minimum": -66,
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / latitude / maximum
      Added value: +66
    • addedInput schema / properties / latitude / minimum
      Added value: +-66
    • addedInput schema / properties / latitude / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedInput schema / properties / longitude / anyOf
      Removed value: -[
      -  {
      -    "maximum": 180,
      -    "minimum": -180,
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / longitude / maximum
      Added value: +180
    • addedInput schema / properties / longitude / minimum
      Added value: +-180
    • addedInput schema / properties / longitude / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • changedInput schema / properties / precision / description
      Previous value: -"Compact mode: round fractional numbers to this many decimals. Longitudes carry 14 by default; 2 is finer than any chart is drawn."New value: +"Round numbers to this many decimals."
    • removedInput schema / properties / timezoneOffset / anyOf
      Removed value: -[
      -  {
      -    "maximum": 14,
      -    "minimum": -14,
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / timezoneOffset / maximum
      Added value: +14
    • addedInput schema / properties / timezoneOffset / minimum
      Added value: +-14
    • addedInput schema / properties / timezoneOffset / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • changedOutput schema / (root)
      Previous value: -{
      -  "$schema": "http://json-schema.org/draft-07/schema#",
      -  "additionalProperties": {},
      -  "properties": {
      -    "adhika": {
      -      "type": [
      -        "boolean",
      -        "null"
      -      ]
      -    },
      -    "calendar": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "date": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "day": {
      -      "type": [
      -        "number",
      -        "null"
      -      ]
      -    },
      -    "month": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "monthEnd": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "monthNumber": {
      -      "type": [
      -        "number",
      -        "null"
      -      ]
      -    },
      -    "monthStart": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "place": {
      -      "anyOf": [
      -        {
      -          "additionalProperties": {},
      -          "properties": {
      -            "ayanamsaId": {
      -              "type": [
      -                "number",
      -                "null"
      -              ]
      -            },
      -            "latitude": {
      -              "type": [
      -                "number",
      -                "null"
      -              ]
      -            },
      -            "longitude": {
      -              "type": [
      -                "number",
      -                "null"
      -              ]
      -            },
      -            "timezone": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "timezoneOffset": {
      -              "anyOf": [
      -                {},
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            }
      -          },
      -          "type": "object"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ]
      -    },
      -    "rule": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "tithi": {
      -      "anyOf": [
      -        {},
      -        {
      -          "type": "null"
      -        }
      -      ]
      -    },
      -    "year": {
      -      "anyOf": [
      -        {
      -          "additionalProperties": {},
      -          "properties": {
      -            "era": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "name": {
      -              "anyOf": [
      -                {},
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "number": {
      -              "type": [
      -                "number",
      -                "null"
      -              ]
      -            }
      -          },
      -          "type": "object"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ]
      -    }
      -  },
      -  "type": "object"
      -}New value: +null
  2. Added

TDQS

A4.1/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 genuine behavioral substance beyond that: the answer carries the month's first and last civil day plus the conversion rule used, and calendar-dependent variance (amanta vs solar, tithi taken at local sunrise). It does not mention the 20-credit cost implication or error behavior.

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?

Front-loaded with the core operation, then a compact per-calendar breakdown that every sentence earns. The trailing [Group]/[Endpoint]/[Required]/[Cost] block is boilerplate rather than prose, and the lunisolar sentence is dense but not padded.

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 10 parameters, no output schema, and a computed astronomical result, the description does the heavy lifting by describing the returned fields per calendar family and the month-boundary rule. Ancillary parameters (fields, ayanamsa/ayanamsaId, precision, timezoneOffset) are left entirely to the schema, which is acceptable at 90% coverage but leaves the sidereal-school choice unexplained in prose.

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?

Schema coverage is 90%, so the baseline is 3 and the schema already documents date, calendar, timezone, latitude and precision. The description still adds meaning by explaining why solar vs lunisolar calendars produce different fields and by tying the sunrise-tithi computation to the place, which is more than the enum labels alone convey.

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?

States a specific verb and resource: convert one Gregorian date into a named regional calendar at a place. It then enumerates exactly what is returned for solar (month, month number, day, era year) and lunisolar (amanta month, sunrise tithi with paksha, adhika flag, era year) calendars, which makes it unmistakable against the sibling months/festivals/vrats tools.

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 by the name and the 'One Gregorian date' phrasing, and the calendar enum in the description hints at which variant to pick. But there is no explicit when-to-use/when-not guidance and no routing to a sibling (e.g. the regional_months tool for a whole month or year instead of a single date).

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