Get demographics by ZIP
get_demographicsGet total population and median age for a U.S. ZIP code from ACS 5-year estimates. Use it to assess demographics for any area.
Instructions
Population and median age for a ZIP.
`zip_code`: a 5-digit US ZIP. Returns the total population and the median
age of residents — both ACS 5-year estimates. (Age-bracket breakdowns,
e.g. under-18 / 18-34 / 35-64 / 65+, are on the roadmap.)
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": {
"zip_code": "<zip_code>"
},
"name": "get_demographics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zip_code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Census name for the area | |
| zcta | Yes | 5-digit ZIP Code Tabulation Area | |
| vintage | Yes | ACS 5-year data vintage (end year) | |
| median_age | No | Median age of the population, in years | |
| population | No | Total population (ACS 5-year estimate) |