calculate_age
Calculate age in years, months, and days from a birthdate. Optionally specify a date for age calculation.
Instructions
Calculate precise age from a birthdate.
Use this to compute someone's age in years, months, and days, either
as of today or a specified date.
Parameters:
birthdate — Birthdate in ISO format (e.g. "1990-04-15") (required).
as_of — Date to calculate age as of (ISO format). Defaults to
today if empty.
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": {
"birthdate": "<birthdate>"
},
"name": "calculate_age"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| birthdate | Yes | ||
| as_of | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |