medicare_advantage_enrollment_by_contract

Pack: medicare-coverage · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/medicare_advantage_enrollment_by_contract for the schema, then POST the same URL with its arguments for the data.

ANSWERS “how many people are in Medicare Advantage contract H0028, and in which states”, enrollment for one CMS contract number by state for a month, with its parent organisation, from the CMS monthly Contract/Plan/State/County enrollment file, stored as a monthly aggregate. Defaults to the latest loaded month and states it as data_as_of. Small cells CMS suppresses (10 or fewer enrollees) are counted in suppressed_cells and left out of totals, never summed as zero.

Parameters

NameTypeRequiredDescription
contract_idstringyesCMS contract number, e.g. H0028 or R5826.
statestringnoOptional two-letter postal code to narrow to one state.
monthstringnoOptional data month as YYYY-MM; default the latest loaded month.

Example call

Arguments

{
  "contract_id": "H0028"
}

curl

curl -X POST https://gateway.pipeworx.io/medicare-coverage/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"medicare_advantage_enrollment_by_contract","arguments":{"contract_id":"H0028"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('medicare_advantage_enrollment_by_contract', {
  "contract_id": "H0028"
});

Response shape

FieldTypeDescription
foundboolean
reasonstring
data_as_ofstring | null
hintstring
sourcestring
interpretationstring
contract_idstring
parent_orgstring | null
organization_typestring | null
state_filterstring | null
states_with_rowsarray
statesarray
totalsobject
Full JSON Schema
{
  "type": "object",
  "properties": {
    "found": {
      "type": "boolean"
    },
    "reason": {
      "type": "string"
    },
    "data_as_of": {
      "type": [
        "string",
        "null"
      ]
    },
    "hint": {
      "type": "string"
    },
    "source": {
      "type": "string"
    },
    "interpretation": {
      "type": "string"
    },
    "contract_id": {
      "type": "string"
    },
    "parent_org": {
      "type": [
        "string",
        "null"
      ]
    },
    "organization_type": {
      "type": [
        "string",
        "null"
      ]
    },
    "state_filter": {
      "type": [
        "string",
        "null"
      ]
    },
    "states_with_rows": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "states": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "state": {
            "type": "string"
          },
          "enrollment": {
            "type": [
              "number",
              "null"
            ]
          },
          "all_cells_suppressed": {
            "type": "boolean"
          },
          "published_cells": {
            "type": "number"
          },
          "suppressed_cells": {
            "type": "number"
          },
          "plan_types": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "plans": {
            "type": "number"
          },
          "counties": {
            "type": "number"
          }
        },
        "additionalProperties": true
      }
    },
    "totals": {
      "type": "object",
      "properties": {
        "enrollment": {
          "type": [
            "number",
            "null"
          ]
        },
        "states": {
          "type": "number"
        },
        "states_with_published_enrollment": {
          "type": "number"
        },
        "published_cells": {
          "type": "number"
        },
        "suppressed_cells": {
          "type": "number"
        }
      },
      "additionalProperties": true
    }
  },
  "additionalProperties": true
}

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the medicare-coverage pack
{
  "mcpServers": {
    "medicare-coverage": {
      "url": "https://gateway.pipeworx.io/medicare-coverage/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build December 2, 2026