# 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.

Source: https://astronode.dev/reference/agent-field-formats · Updated: 2026-12-05

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](https://astronode.dev/guides/openapi-typed-client) or through the [MCP server](https://astronode.dev/mcp). 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`.

| Field | Type | Constraint | Example | Required |
| --- | --- | --- | --- | --- |
| `date` | `string` | `pattern ^\d{4}-\d{2}-\d{2}$` | `1993-07-04` | yes |
| `time` | `string` | `pattern ^\d{2}:\d{2}(:\d{2})?$` | `09:27:11` | yes |
| `tz_offset_minutes` | `integer` | `-840 … 840` | `330` | yes |
| `lat` | `number` | `-90 … 90` | `31.7473` | yes |
| `lng` | `number` | `-180 … 180` | `77.7754` | yes |

- `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.

| Argument | Type | Limits | Tools | e.g. |
| --- | --- | --- | --- | --- |
| `house_system` | `enum` | `one of "placidus", "koch", "equal", "whole-sign", "porphyry"` | 18 (optional) | `western_composite_aspects` |
| `include_minor_aspects` | `boolean` | `-` | 14 (optional) | `western_composite_aspects` |
| `date` | `string` | `pattern ^\d{4}-\d{2}-\d{2}$` | 9 (required in 6) | `horoscope_daily` |
| `date` | `string` | `-` | 4 (required in 1) | `dasha_lookup` |
| `language` | `enum` | `one of "en", "hi"` | 12 (optional) | `chat_respond` |
| `year` | `integer` | `≥ 1, ≤ 120` | 8 (required) | `varshphal_harsha_bala` |
| `year` | `string` | `pattern ^-?\d{1,4}$` | 2 (required) | `western_chinese_forecast` |
| `dob` | `string` | `pattern ^\d{4}-\d{2}-\d{2}$` | 8 (required) | `biorhythm` |
| `age` | `integer` | `≥ 1, ≤ 150` | 4 (required) | `western_solar_return_aspects` |
| `age` | `number` | `≥ 0, ≤ 150` | 3 (required) | `western_progression_aspects` |
| `lat` | `number` | `≥ -90, ≤ 90` | 6 (required) | `gowri_nalla_neram` |
| `lng` | `number` | `≥ -180, ≤ 180` | 6 (required) | `gowri_nalla_neram` |
| `name` | `string` | `length ≥ 1, length ≤ 200` | 6 (optional) | `numerology_chaldean` |
| `sign` | `enum` | `one of 12 values: "Aries" … "Pisces"` | 5 (required) | `horoscope_daily` |
| `sign` | `enum` | `one of 12 values: "Rat" … "Pig"` | 1 (required) | `western_chinese_forecast` |
| `target_date` | `string` | `pattern ^\d{4}-\d{2}-\d{2}$` | 6 (optional) | `biorhythm` |
| `tz_offset_minutes` | `integer` | `≥ -840, ≤ 840` | 6 (required) | `gowri_nalla_neram` |
| `verbosity` | `enum` | `one of "short", "standard", "detailed"` | 5 (optional) | `western_reports_friendship` |
| `genders` | `object` | `-` | 4 (optional) | `compatibility` |
| `interpretation` | `object` | `-` | 4 (optional) | `charts_birth` |
| `transit_at` | `string` | `-` | 3 (optional) | `western_transit_aspects` |
| `transit_at` | `string` | `pattern ^\d{4}-\d{2}-\d{2}(?:[T ]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?(?:Z\|[+-]\d{2}:?\d{2})?)?$` | 1 (optional) | `kp_transit` |
| `id` | `string` | `length ≥ 1, length ≤ 120` | 2 (required) | `delete_conversation` |
| `id` | `string` | `length ≥ 1` | 1 (required) | `get_report` |
| `levels` | `enum` | `one of 1, 2` | 2 (optional) | `dasha_char` |
| `levels` | `enum` | `one of 1, 2, 3, 4, 5` | 1 (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.

| Tool | Argument | Sent | Answer |
| --- | --- | --- | --- |
| `charts_birth` | `date` | `"24/04/1973"` | Rejected: `data/date must match pattern "^\d{4}-\d{2}-\d{2}$"` |
| `charts_birth` | `date` | `"1973-4-24"` | Rejected: `data/date must match pattern "^\d{4}-\d{2}-\d{2}$"` |
| `charts_birth` | `date` | `"1973-02-30"` | Rejected: `400 VALIDATION_ERROR: 1973-02-30 is not a calendar date: month 02 of 1973 has 28 days` |
| `charts_birth` | `time` | `"5:25 PM"` | Rejected: `data/time must match pattern "^\d{2}:\d{2}(:\d{2})?$"` |
| `charts_birth` | `time` | `"17:25:00.000"` | Rejected: `data/time must match pattern "^\d{2}:\d{2}(:\d{2})?$"` |
| `charts_birth` | `time` | `"5:25"` | Rejected: `data/time must match pattern "^\d{2}:\d{2}(:\d{2})?$"` |
| `charts_birth` | `tz_offset_minutes` | `"+05:30"` | Rejected: `data/tz_offset_minutes must be integer` |
| `charts_birth` | `tz_offset_minutes` | `5.5` | Rejected: `data/tz_offset_minutes must be integer` |
| `charts_birth` | `tz_offset_minutes` | `5` | **Accepted, wrong chart:** ascendant Sagittarius 3.63° instead of ascendant Virgo 19.76° |
| `charts_birth` | `tz_offset_minutes` | `-330` | **Accepted, wrong chart:** ascendant Pisces 5.81° instead of ascendant Virgo 19.76° |
| `charts_birth` | `lat` | `"19.076"` | Rejected: `data/lat must be number` |
| `charts_birth` | `lat / lng` | `swapped (72.8777, 19.076)` | **Accepted, wrong chart:** ascendant Leo 18.74° instead of ascendant Virgo 19.76° |
| `charts_birth` | `lng` | `72.8777 for a place 72.88° W` | **Accepted, 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_birth` | `interpretation` | `null` | Accepted: the server drops the `null` |
| `charts_birth` | `date` | `null` | Rejected: `data/date must be string` |
| `varshphal_year_chart` | `year` | `2026 (a calendar year)` | Rejected: `data/year must be <= 120` |
| `varshphal_year_chart` | `year` | `54 (year of life)` | Accepted |
| `western_chinese_zodiac` | `year` | `1990 (a number)` | Rejected: `data/year must be string` |
| `western_chinese_zodiac` | `year` | `"1990"` | Accepted |
| `dasha_vimshottari` | `levels` | `"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_lookup` | `date` | `"next Tuesday"` | Rejected: `400 INVALID_INPUT: Invalid date: next Tuesday` |
| `dasha_lookup` | `birth_input` | `birth fields at the top level` | Rejected: `data must have required property 'birth_input'` |

## Things to watch

- 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.

## Example: 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`).

## Endpoints

- [`POST /v1/charts/birth`](https://astronode.dev/capabilities/vedic/charts-birth) - Birth Chart (Kundli) API
- [`POST /v1/dasha/lookup`](https://astronode.dev/capabilities/vedic/dasha-lookup) - Current Dasha Lookup API
- [`POST /v1/varshphal/year-chart`](https://astronode.dev/capabilities/vedic/varshphal-year-chart) - Varshphal Annual Chart (Tajika) API
- [`GET /v1/western/chinese/zodiac/:year`](https://astronode.dev/capabilities/western/western-chinese-zodiac-year) - Chinese Zodiac API
