← API reference

Field formats for AI agents: what each argument accepts

A tool-calling model fills arguments from a schema and a description. Most mistakes come back as a validation error it can fix on the next turn; a few are valid values with the wrong meaning, and return a confident wrong chart. Both kinds are listed here.

Updated · values generated from the engine

What this catalog is

Each API endpoint is one tool with a JSON Schema for its arguments - the same schema whether a model reaches it through function calling built from the OpenAPI spec or through the MCP server. Of the 128 tools, 85 take a birth input (70 at the top level, 15 nested, 13 of them for two people) and 118 reject any argument their schema does not list.

Nothing is coerced: "19.076" is not a number and 5.5 is not an integer. A model that reads the error can usually correct the call on its next turn.

The birth input

Five fields, the same everywhere a birth appears: at the top level, or inside person_a, person_b, birth_input or user.

Birth input fields, from the published OpenAPI spec
FieldTypeConstraintExampleRequired
datestringpattern ^\d{4}-\d{2}-\d{2}$1993-07-04yes
timestringpattern ^\d{2}:\d{2}(:\d{2})?$09:27:11yes
tz_offset_minutesinteger-840 … 840330yes
latnumber-90 … 9031.7473yes
lngnumber-180 … 18077.7754yes
  • tz_offset_minutes is minutes east of UTC at the moment of birth: 330 for IST, -300 for US Eastern standard time, 390 for Bombay in mid-1943.
  • time is local clock time at the birth place, 24-hour, with no fraction of a second and no zone suffix.

Other shared arguments

Arguments that three or more tools take. The same name can mean different things: year is a year of life (1-120) on the Varshphal tools and a calendar year, as a string, on the Chinese zodiac tools.

Shared arguments, from the tool schemas
ArgumentTypeLimitsToolse.g.
house_systemenumone of "placidus", "koch", "equal", "whole-sign", "porphyry"18 (optional)western_composite_aspects
include_minor_aspectsboolean-14 (optional)western_composite_aspects
datestringpattern ^\d{4}-\d{2}-\d{2}$9 (required in 6)horoscope_daily
datestring-4 (required in 1)dasha_lookup
languageenumone of "en", "hi"12 (optional)chat_respond
yearinteger≥ 1, ≤ 1208 (required)varshphal_harsha_bala
yearstringpattern ^-?\d{1,4}$2 (required)western_chinese_forecast
dobstringpattern ^\d{4}-\d{2}-\d{2}$8 (required)biorhythm
ageinteger≥ 1, ≤ 1504 (required)western_solar_return_aspects
agenumber≥ 0, ≤ 1503 (required)western_progression_aspects
latnumber≥ -90, ≤ 906 (required)gowri_nalla_neram
lngnumber≥ -180, ≤ 1806 (required)gowri_nalla_neram
namestringlength ≥ 1, length ≤ 2006 (optional)numerology_chaldean
signenumone of 12 values: "Aries" … "Pisces"5 (required)horoscope_daily
signenumone of 12 values: "Rat" … "Pig"1 (required)western_chinese_forecast
target_datestringpattern ^\d{4}-\d{2}-\d{2}$6 (optional)biorhythm
tz_offset_minutesinteger≥ -840, ≤ 8406 (required)gowri_nalla_neram
verbosityenumone of "short", "standard", "detailed"5 (optional)western_reports_friendship
gendersobject-4 (optional)compatibility
interpretationobject-4 (optional)charts_birth
transit_atstring-3 (optional)western_transit_aspects
transit_atstringpattern ^\d{4}-\d{2}-\d{2}(?:[T ]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?(?:Z|[+-]\d{2}:?\d{2})?)?$1 (optional)kp_transit
idstringlength ≥ 1, length ≤ 1202 (required)delete_conversation
idstringlength ≥ 11 (required)get_report
levelsenumone of 1, 22 (optional)dasha_char
levelsenumone of 1, 2, 3, 4, 51 (optional)dasha_vimshottari

Common mistakes, and what the server answers

What a model plausibly sends, and the server's reply, recorded through the MCP server on 2026-12-05. The sample birth is 24 April 1973, 17:25 in Mumbai.

Malformed and mistaken arguments with the recorded answer
ToolArgumentSentAnswer
charts_birthdate"24/04/1973"Rejected: data/date must match pattern "^\d{4}-\d{2}-\d{2}$"
charts_birthdate"1973-4-24"Rejected: data/date must match pattern "^\d{4}-\d{2}-\d{2}$"
charts_birthdate"1973-02-30"Rejected: 400 VALIDATION_ERROR: 1973-02-30 is not a calendar date: month 02 of 1973 has 28 days
charts_birthtime"5:25 PM"Rejected: data/time must match pattern "^\d{2}:\d{2}(:\d{2})?$"
charts_birthtime"17:25:00.000"Rejected: data/time must match pattern "^\d{2}:\d{2}(:\d{2})?$"
charts_birthtime"5:25"Rejected: data/time must match pattern "^\d{2}:\d{2}(:\d{2})?$"
charts_birthtz_offset_minutes"+05:30"Rejected: data/tz_offset_minutes must be integer
charts_birthtz_offset_minutes5.5Rejected: data/tz_offset_minutes must be integer
charts_birthtz_offset_minutes5Accepted, wrong chart: ascendant Sagittarius 3.63° instead of ascendant Virgo 19.76°
charts_birthtz_offset_minutes-330Accepted, wrong chart: ascendant Pisces 5.81° instead of ascendant Virgo 19.76°
charts_birthlat"19.076"Rejected: data/lat must be number
charts_birthlat / lngswapped (72.8777, 19.076)Accepted, wrong chart: ascendant Leo 18.74° instead of ascendant Virgo 19.76°
charts_birthlng72.8777 for a place 72.88° WAccepted, wrong chart: ascendant Virgo 19.76° instead of ascendant Taurus 4.12°
charts_birth(extra)"name": "Asha"Rejected: data must NOT have additional properties
charts_birthinterpretationnullAccepted: the server drops the null
charts_birthdatenullRejected: data/date must be string
varshphal_year_chartyear2026 (a calendar year)Rejected: data/year must be <= 120
varshphal_year_chartyear54 (year of life)Accepted
western_chinese_zodiacyear1990 (a number)Rejected: data/year must be string
western_chinese_zodiacyear"1990"Accepted
dasha_vimshottarilevels"2"Rejected: data/levels must be number, data/levels must be equal to one of the allowed values, data/levels must match a schema in anyOf
dasha_lookupdate"next Tuesday"Rejected: 400 INVALID_INPUT: Invalid date: next Tuesday
dasha_lookupbirth_inputbirth fields at the top levelRejected: data must have required property 'birth_input'

Parsing notes

  • An offset in hours (5) is a valid integer, and so is a west-positive offset (-330, the sign JavaScript's getTimezoneOffset() uses). Both are accepted and both return a wrong chart. Resolve the offset in your code from a time-zone database and let the model pass only a place and a local time.
  • Swapped coordinates pass whenever the longitude is within ±90°, and a western longitude sent as positive always passes. Geocode on your server.
  • On the Varshphal tools year is the year of life, not the calendar year; 2026 is rejected, but 54 for someone who turns 54 is right.
  • null on an optional argument: the MCP server (0.1.1 and later) treats it as absent, so strict-mode clients that must send every property work. The REST API itself answers 400 VALIDATION_ERROR - omit the field instead.
  • Errors from the API, rather than the schema, keep their code: an unparseable date on /v1/dasha/lookup comes back as 400 INVALID_INPUT with the reason.

In a real response

charts_birth - The tool result a model receives for tz_offset_minutes: "+05:30" - an error it can read and correct.

json
{
  "content": [
    {
      "type": "text",
      "text": "Input validation error: Invalid arguments for tool charts_birth: data/tz_offset_minutes must be integer"
    }
  ],
  "isError": true
}

Questions

Which endpoints does this page apply to?
4 endpoints: Birth Chart (Kundli) (POST /v1/charts/birth); Current Dasha Lookup (POST /v1/dasha/lookup); Varshphal Annual Chart (Tajika) (POST /v1/varshphal/year-chart); Chinese Zodiac (GET /v1/western/chinese/zodiac/:year).