Query City Demographics
query_demographicsRetrieve demographic data like population, income, poverty, education, and housing for US, UK, or Canadian cities by name; auto-detects country if omitted.
Instructions
Query demographic data for a city in the US, UK, or Canada.
US: Census ACS — population, income, poverty, education, housing, commuting (~30,000 places). UK: ONS/Nomis — population, households, age distribution. CA: StatCan Census Profile — population, income, households, immigration.
Country is auto-detected or specify with the country parameter. Required for ambiguous cities (London, Birmingham, etc.).
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": {
"city": "<city>"
},
"name": "query_demographics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | Yes | City name (e.g., 'Denver', 'Manchester', 'Toronto') | |
| country | No | Country code. Auto-detected from city name if omitted. Required for ambiguous cities like London, Birmingham, Richmond, Hamilton, Cambridge, Windsor. |