# get_county_view

Get County View · v1.6.0 · medicare

The whole Medicare Advantage picture of ONE county, over time, in one call: (1) enrollment by parent and product type each September from 2021, with CMS small-cell suppression carried as a floor and a ceiling, and the county's MA penetration where CMS holds it; (2) plan exits for every transition from 2023: continuing, departing, the five Day-One buckets, the true outcome where the crosswalk is held or the calibrated estimate range where not, parents before and parents continuing; (3) the same members' plan design this year against next (total premium, $0 premium share, MOOP, $0 Part D deductible share, D-SNP $0 cost sharing, star), at county grain where held, else the state figures under their own name with a coded note (get_landscape_benefit_change serves twelve metrics at state grain); (4) every plan sold in the county in the plan year with premium, MOOP, deductible and star, the D-SNP fields in their own columns, paged; (5) September members in contracts rated 4+ stars by rating year, with the rating-year to payment-year clock; (6) the County Volatility Index every plan year 2016-2027: per 100 members, those whose plan ended, who were moved, or whose plan made a material cut (premium +$10/month, MOOP +$500, dental max -$500 or dropped), pooled and by product type, beside the state and the nation, with the county's rank (detail=true adds the plans behind the newest year and what each changed; get_volatility_index ranks counties, states and insurers). Every tile is one row per product type with arrays over years or transitions, so the county reads over time in one call.

ARGUMENTS: state (two-letter) and county (the county name as CMS spells it, e.g. 'Cook', 'DuPage'; 'County' may be included or left off; a misspelling is refused naming the nearest CMS spellings), OR county_fips (five digits, e.g. '17031'), OR county_ssa (the five-digit CMS SSA state-county code, e.g. '14140', resolved to its FIPS through the CMS penetration file); year (the plan year for the plan list, default the newest Landscape year held); sections (comma-separated subset of enrollment, exits, benefit_change, plans, stars, volatility; default the first five: ask for volatility by name, e.g. sections=volatility for 'how volatile is my county'); detail: the two modes, summary (default, false: the product-type tiles, which fit one answer) and full (true: the tiles plus the parent x product type rows for enrollment and for the newest exits transition, and the plan list itself, paged); limit (rows per detail list per page, default 5, max 200) and offset (default 0), which page every detail list together, so a long page is one section at a time (sections=plans, detail=true, limit=100); include_cost_mmp (default false: industry = every product type but Cost and MMP).

RETURNS value.blocks (one block per section: source, edition, the five clocks, the base, the seconds it took, its caveats, and a status of measured, substituted or unavailable with a code), value.county_by_year, value.enrollment_by_product_type, value.exits_by_product_type, value.benefit_change, value.plans_by_product_type, value.plans_totals, value.stars_exposure, value.volatility_by_year, value.volatility_by_product_type, value.summary; with detail=true also value.enrollment (parent x product type), value.exits (parent x product type, newest transition), value.plans and value.volatility_plans, each paged by limit and offset.

RULES THE TOOL ENFORCES: the county is resolved by FIPS and the name key the Landscape carries is derived, never typed; the member base is H/R contracts, plans 001-799, September Y, matched to the Y Landscape by plan AND county; stand-alone Part D is never in it; D-SNP is its own product type and is never pooled; suppressed cells are carried as a floor and a ceiling, so every rollup keeps its bounds; parent is CMS's reported parent at each September and a parent's figure is the sum of its members, never a plan count; every section names its clocks.

SOURCE: Vlada analysis of the CMS monthly enrollment by plan and county, the CMS MA state-county penetration file, the CMS MA/Part D Landscape files, the CMS plan crosswalk where held, and the CMS Star Ratings.

**Inputs.**
- `state`: 
- `county`: 
- `county_fips`: 
- `county_ssa`: 
- `year`: 
- `sections`: 
- `detail`: 
- `limit`: 
- `offset`: 
- `include_cost_mmp`: 

**A real answer** (customer seat, 15.06 s, args `{"state":"IL","county":"Cook"}`):

```json
{
 "value": {
  "found": true,
  "not_found_reason": null,
  "summary": {
   "state": "IL",
   "county": "Cook",
   "county_fips": "17031",
   "county_keys": [
    "COOK"
   ],
   "enrollment_years": [
    2021,
    2022,
    2023,
    2024,
    2025,
    2026
   ],
   "newest_enrollment_month": "2026-09",
   "sections_requested": [
    "enrollment",
    "exits",
    "benefit_change",
    "plans",
    "stars"
   ],
   "sections_measured": [
    "enrollment",
    "exits",
    "benefit_change",
    "plans",
    "stars"
   ],
   "sections_substituted": [],
   "sections_unavailable": [],
   "unit": "members",
   "seconds": {
    "resolve_county": 5.34,
    "enrollment": 7.0,
    "penetration": 2.43,
    "exits": 2.49,
    "calibration": 2.42,
    "benefits": 2.44,
    "plans": 9.6,
    "landscape_head": 2.43,
    "stars": 3.16,
    "total": 14.98
   }
  },
  "county_by_year": [
   {
    "year": 2021,
    "members_industry": 200370,
    "members_industry_ceiling": 203720,
    "members_all_hr_plans": 239480,
    "suppressed_cells": 360,
    "plans": 427,
    "parents": 50,
    "penetration_held": true,
    "eligibles": 835444,
    "ma_enrolled": 305569,
    "ma_enrolled_lower_bound": 305569,
    "ma_enrolled_upper_bound": 305569,
    "penetration_pct": 36.58
   },
   {
    "year": 2022,
    "members_industry": 226371,
    "members_industry_ceiling": 231001,
    "members_all_hr_plans": 266593,
    "suppressed_cells": 489,
    "plans": 566,
    "parents": 54,
    "penetration_held": true,
    "eligibles": 842162,
    "ma_enrolled": 333506,
    "ma_enrolled_lower_bound": 333506,
    "ma_enrolled_upper_bound": 333506,
    "penetration_pct": 39.6
   },
   {
    "year": 2023,
    "members_industry": 247379,
    "members_industry_ceiling": 251489,
    "members_all_hr_plans": 292115,
    "suppressed_cells": 432,
    "plans": 508,
    "parents": 56,
    "penetration_held": true,
    "eligibles": 853415,
    "ma_enrolled": 361657,
    "ma_enrolled_lower_bound": 361657,
    "ma_enrolled_upper_bound": 361657,
    "penetration_pct": 42.38
   },
   {
    "year": 2024,
    "members_industry": 271242,
    "members_industry_ceiling": 275112,
    "members_all_hr_plans": 306598,
    "suppressed_cells": 411,
    "plans": 485,
    "parents": 54,
    "penetration_held": true,
    "eligibles": 866298,
    "ma_enrolled": 384466,
    "ma_enrolled_lower_bound": 384466,
    "ma_enrolled_upper_bound": 384466,
    "penetration_pct": 44.38
   },
   {
    "year": 2025,
    "members_industry": 285674,
    "members_industry_ceiling": 289434,
    "members_all_hr_plans": 319578,
    "suppressed_cells": 391,
    "plans": 476,
    "parents": 50,
    "penetration_held": true,
    "eligibles": 881827,
    "ma_enrolled": 395974,
    "ma_enrolled_lower_bound": 395974,
    "ma_enrolled_upper_bound": 395974,
    "penetration_pct": 44.9
   },
   {
    "year": 2026,
    "members_industry": 327049,
    "members_industry_ceiling": 330719,
    "members_all_hr_plans": 327148,
    "suppressed_cells": 376,
    "plans": 455,
    "parents": 46,
    "penetration_held": true,
    "eligibles": 896718,
    "ma_enrolled": 402008,
    "ma_enrolled_lower_bound": 402008,
    "ma_enrolled_upper_bound": 402008,
    "penetration_pct": 44.83
   }
  ],
  "enrollment_by_product_type": [
   {
    "product_type": "non-SNP HMO",
    "in_industry": true,
    "members_latest": 134316,
    "years": [
     2021,
     2022,
     2023,
     2024,
     2025,
     2026
    ],
    "members": [
     121864,
     127981,
     127219,
     128120,
     132387,
     134316
    ],
    "ceiling": [
     123244,
     129961,
     128849,
     129490,
     133667,
     135676
    ],
    "suppressed_cells": [
     138,
     198,
     163,
     137,
     128,
     136
    ],
    "plans": [
     168,
     234,
     194,
     163,
     156,
     164
    ],
    "parents": [
     32,
     37,
     32,
     35,
     30,
     32
    ]
   },
   {
    "product_type": "non-SNP PPO",
    "in_industry": true,
    "members_latest": 108085,
    "years": [
     2021,
     2022,
     2023,
     2024,
     2025,
     2026
    ],
    "members": [
     71957,
     89384,
     103881,
     118371,
     114239,
     108085
    ],
    "ceiling": [
     73117,
     91074,
     105311,
     119781,
     115619,
     109325
    ],
    "suppressed_cells": [
     116,
     169,
     143,
     141,
     138,
     124
    ],
    "plans": [
     137,
     192,
     171,
     172,
     172,
     151
    ],
    "parents": [
     15,
     14,
     18,
     15,
     19,
     21
    ]
   },
   {
    "product_type": "D-SNP HMO",
    "in_industry": true,
    "members_latest": 38625,
    "years": [
     2021,
     2022,
     2023,
     2024,
     2025,
     2026
    ],
    "members": [
     0,
     11,
     11,
     0,
     0,
     38625
    ],
    "ceiling": [
     570,
     691,
     721,
     740,
     730,
     39215
    ],
    "suppressed_cells": [
     57,
     68,
     71,
     74,
     73,
     59
    ],
    "plans": [
     57,
     69,
     72,
     74,
     73,
     64
    ],
    "parents": [
     18,
     22,
     23,
     20,
     17,
     16
    ]
   },
   {
    "product_type": "C-SNP HMO",
    "in_industry": true,
    "members_latest": 24977,
    "years": [
     2021,
     2022,
     2023,
     2024,
     2025,
     2026
    ],
    "members": [
     4188,
     4172,
     5954,
     10713,
     19664,
     24977
    ],
    "ceiling": [
     4248,
     4252,
     6064,
     10813,
     19784,
     25217
    ],
    "suppressed_cells": [
     6,
     8,
     11,
     10,
     12,
     24
    ],
    "plans": [
     10,
     12,
     14,
     15,
     22,
     35
    ],
    "parents": [
     6,
     7,
     7,
     7,
     8,
     11
    ]
   },
   {
    "product_type": "C-SNP PPO",
    "in_industry": true,
    "members_latest": 18959,
    "years": [
     2021,
     2022,
     2023,
     2024,
     2025,
     2026
    ],
    "members": [
     0,
     2081,
     7624,
     11600,
     17170,
     18959
    ],

... (truncated)
```

REST: `POST https://api.vladahealth.com/v1/tools/get_county_view` with the inputs as the JSON body. MCP: the tool by name.
