age-threshold
Age in complete years on a date and the exact dates a minimum or maximum age is reached (leap-day births) — For up to 100 people, computes age in complete years and months on a caller asOf date, the date they reach each minimum age (the birthday) and the first day they exceed each maximum age, and checks min/max age requirements; 29 February births need a declared common-year rule (28 February or 1 March) because jurisdictions differ. Built for an agent checking eligibility (18+, under 65, 21 to buy). I
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": {
"asOf": "<asOf>",
"items": "<items>"
},
"name": "age-threshold"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asOf | Yes | ||
| items | Yes | ||
| leapDayRule | No | In common years a 29 February birthday is observed on 28 February or on 1 March depending on the legal context you apply; you must choose. Required if any birth date is 29 February. |