Age calculator
hopi_age_calculatorWork out an exact age from a date of birth, as of today or an optional 'as of' date. Dates use the YYYY-MM-DD format. Returns the age in years, months and days, the total days lived, and the next birthday. Source: https://hopi.co.uk/age-calculator/
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": {
"dob": "<dob>"
},
"name": "hopi_age_calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dob | Yes | Date of birth in YYYY-MM-DD format | |
| asOf | No | Optional date to measure the age at, in YYYY-MM-DD format (defaults to today) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dob | No | ||
| asOf | No | ||
| days | No | ||
| years | No | ||
| months | No | ||
| summary | Yes | ||
| totalDays | No | ||
| source_url | Yes | The tool's page on hopi.co.uk (cite or open to check the figure) | |
| nextBirthdayInDays | No | ||
| nextBirthdayWeekday | No |