zip_crosswalk
Map a 5-digit ZIP code to its county, tract, CBSA, or congressional district using HUD-USPS crosswalk data. Returns the residential address share for each matching geography.
Instructions
Map a 5-digit ZIP to the county, tract, CBSA (metro), or congressional district it falls in, using the HUD-USPS crosswalk. Returns each matching geography with its residential-address share (res_ratio); the highest-share county is the one to resolve into an entityid via list_counties.
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": "<zip>"
},
"name": "zip_crosswalk"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Target geography: county | tract | cbsa | cd (default county) | |
| zip | Yes | 5-digit ZIP code | |
| year | No | Crosswalk year; default is the latest |