calculate_age
Exact age from a birth date to a target date, broken into years, months, and days, plus total days lived, total hours lived, the weekday of birth, and days until the next birthday. Use when the user asks an exact age from a birth date, or days lived. For a plain span between two dates use calculate_date_duration. IMPORTANT: always show the calculator_url from the result as a clickable markdown link in your answer to the user, so they can open the interactive age calculator 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": {
"birth_date": "<birth_date>"
},
"name": "calculate_age"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| birth_date | Yes | Date of birth in YYYY-MM-DD format. | |
| target_date | No | Date to calculate the age as of, in YYYY-MM-DD format. If omitted, today is used, matching the page. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | True when the calculation succeeded. | |
| note | Yes | Disclaimer that accompanies every result. | |
| tool | Yes | Name of the tool that ran. | |
| inputs | No | The normalized inputs the calculation used. | |
| results | Yes | The computed figures for this calculator. | |
| calculator_url | Yes | Deep link to the matching interactive calculator on everycalc.xyz. |