Medicare Advantage, Part D, Medicaid
get_star_scenario
Get Star Scenario·v1.1.0·L2·read-only·MCP + REST·admitted 2026-11-22
Inputs
170 required
Sources
0
Known limits
4
Real answer
pending
What it answers
- 1Re-rate CMS's published 2027 Medicare Advantage Star Ratings under a scenario, for every contract at once, by CMS's published method: a lawsuit's relief as filed (each of the 16 suits over the 2027 ratings), a rule year's measure changes (the 2028 and 2029 final rules and the PROPOSED 2030 rule, CMS-4214-P2), your own removal or re-weighting of measures, or a contract's own measure stars changed ("one more star on blood pressure").
- 2For each contract: the published rating; the raw score (the weighted mean of the measure stars), the reward factor and the categorical adjustment that add up to the score before rounding; the scenario's rating and score before rounding; the measures removed that it had; the reward factor before and after; whether it can still be rated and why not.
- 3For any group (your scope, everyone else, the industry, a parent, a State, a plan type, a special needs plan type): contracts and the share of members at 4 stars or more before and after, how many gained or lost the 4-star line, and the member-weighted average score before and after.
- 4With dollars true: what each rating move is worth in payment year 2028, per contract, per company and in total (modeled, members' benefits held).
- 5ARGUMENTS: rating_year (2027, the only year served); scenario: a preset id (e.g. unitedhealth-2027, rules-2028, rules-2029, rules-2030), 'list' for the presets with what each is, or 'rule-years' for 2027 published then 2028, 2029 and 2030 year by year;
- 6OR a custom scenario: remove (2027 measure codes such as C32, D01), weights (code to weight, 0 to 5), improvement (held | flat | recomputed, default held), reward_factor (default true), improvement_hold_harmless (the half-star the rating without improvement must reach, default 4.0). measure_stars: {contract id: {measure code: star 1 to 5}} sets a contract's own stars for the scenario, alone or on top of a preset or a custom scenario.
- 7Scope: contract_id (one id or several), or parent, or every contract; and any of state (two-letter codes), plan_type (HMO, HMOPOS, Local PPO, Regional PPO, PFFS, MSA), snp (nonsnp | dsnp | csnp | isnp) to count only those members. group_by: contract (default) | parent | state | plan_type | snp | none. limit: rows (default 25); offset: rows to skip.
- 8A long list is cut to fit one reply; every_row then carries one short line for every contract or group (ratings, and dollars when on), so the whole field is in the reply; only a call that sets many stars or names hundreds of contracts can leave no room for it, and says so. dollars: true adds the modeled payment-year-2028 dollars (whole contracts only: not with state, plan_type or snp).
- 9READ THIS: it is CMS's 2027 results re-rated, not a forecast; measure results, stars and cut points never move unless you set a contract's stars yourself.
- 10A rule year returns two readings side by side, each against its own baseline: repeats (improvement stars held as published) and flat (every improvement star 3).
- 11A lawsuit scenario removes the measures for every contract, as CMS has sworn it recalculates.
- 12The categorical adjustment is held at the published value.
- 13A member counts under their contract's rating; members by State, plan type and special needs type come from the build's enrollment by county, which leaves out cells CMS suppresses.
- 14Dollars are returned only when asked for, and are modeled: plan revenue with members' benefits held, an upper bound, not Medicare's spending and not comparable to CMS's own estimate of the rule.
- 15SOURCE: CMS Part C and D Star Ratings 2027 (measure stars, weights, printed reward-factor thresholds, CAI, CMS's disaster list), the Technical Notes' method, the rules in the CY2027 final rule and CMS-4214-P2, the complaints as filed, and CMS enrollment by contract, plan and county, through Vlada's Stars scenario engine; dollars from Vlada's quality-bonus table (the one get_quality_bonus serves).
Inputs (17)
| Name | Type | Required | Default | Accepts |
|---|---|---|---|---|
contract_id | any | optional | ||
dollars | boolean | optional | ||
group_by | string | optional | ||
improvement | string | optional | ||
improvement_hold_harmless | number | optional | ||
limit | integer | optional | ||
measure_stars | object | optional | ||
offset | integer | optional | ||
parent | string | optional | ||
plan_type | any | optional | ||
rating_year | integer | optional | ||
remove | array | optional | ||
reward_factor | boolean | optional | ||
scenario | string | optional | ||
snp | any | optional | ||
state | any | optional | ||
weights | object | optional |
Call it
# MCP (https://mcp.vladahealth.com/mcp): the tool by name get_star_scenario()
curl -X POST https://api.vladahealth.com/v1/tools/get_star_scenario \
-H "Authorization: Bearer $VLADA_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
# the schema, no key
curl https://api.vladahealth.com/v1/tools/get_star_scenario/schemaWhat comes back
| Field | Holds |
|---|---|
status | complete · partial · refused · failed · queued |
value | rows or the figure, with its unit |
source · caveats · invariants_applied · response_hash | the public file and vintage; what to know before citing; the rules honoured; replayable |
refusal | code (15), message, recover_with |
Sources
| Kind | Name |
|---|---|
| source | the catalog's card for each table it reads |
Known limits (4)
- 1The categorical adjustment (CAI) is held at each contract's published value; CMS recalculates it on a reduced measure set and its inputs are not public.
- 2Measure results and cut points are CMS's 2027 values; a rule year is its measure set on the 2027 stars, not a forecast of a future rating.
- 3Dollars are modeled on one basis only (payment year 2028, members' benefits held) and only for contracts CMS pays on their own rating; they are not split by State, plan type or special needs type, and a contract the scenario leaves unrated is counted, not priced.
- 4Slices by State, plan type and special needs type count members from CMS enrollment by contract, plan and county, which leaves out cells under 11 members and the few rated contracts with no county file, so a slice's members run below the contract totals.
| Admitted with a known defect |
|---|
| Walked in-process on the live build 20261118T071144Z-nogit from this Mac, not from the live customer seat: the post-deploy walk on staging is its first live grade (the bridge carrying it rolled 2026-11-22 with the tool refused to customers). The categorical adjustment is held at each contract's published value, no dollars are returned, and rating_year 2027 is the only year served. |
This page as markdown: /docs-md/tools/get_star_scenario.md · every page in one file: /llms-full.txt