CDC — Chronic Disease State-by-State Comparison
cdc_chronic.disease.state_compareCompare a chronic disease indicator across all US states for a given year. Returns the value for each state (prevalence %, rate, or count) plus the 5 highest and 5 lowest states for quick ranking. Requires a question_id (e.g. "DIA01" for diabetes prevalence, "TOB04" for smoking, "CVD01" for high blood pressure). Optional year (default most recent 2023) and demographic stratification. Useful for geographic health disparity analysis and policy research. Source: CDC CDI Socrata dataset hksd-2xuw. No auth — US Gov public domain.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | Data year for comparison (e.g. 2023). Defaults to most recent available year (2023 or later). All states return the same year for a fair comparison. | |
| question_id | No | Question ID to compare across states (e.g. "DIA01" for diabetes prevalence, "TOB04" for smoking, "CVD01" for high blood pressure, "AST01" for asthma prevalence). Use cdc_chronic.topics to find valid IDs. Defaults to "DIA01". | |
| stratification_id | No | Demographic subgroup to compare. OVR=Overall (default, all adults), SEXF=Female, SEXM=Male, WHT=White non-Hispanic, BLK=Black non-Hispanic, HIS=Hispanic, AGE65P=Age 65+, etc. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present only when the call failed. Includes error code, message, request_id, and any provider-specific extras. | |
| result | No | Tool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response. |