Skip to content
Eden Engine

Medicare Inpatient Hospital Charges and Discharges by Provider and DRG (CMS)

cmsdata/inpatient-hospitals

Rows of CMS Medicare inpatient hospital data: for each hospital (CMS certification number) and diagnosis-related group (DRG), the total discharges and the average submitted covered charge, average total payment and average Medicare payment, with the hospital's name, address and rural-urban class. Filter by state, hospital CCN or DRG code and page with offset. Values arrive as strings. Reads the single yearly release the tool is pinned to; the release year is not in the response. Centers for Medicare and Medicaid Services data as served by Omnial, not an official CMS product.

activeper callv1

Price

$0.0026 per call

You pay the price shown. If a call turns out to cost more than its quote, you pay the actual price, capped at twice the quote. No monthly minimum. Top-ups start at $5.

Data source

Centers for Medicare & Medicaid Services

Data from the Centers for Medicare & Medicaid Services (CMS), U.S. Department of Health and Human Services; a US federal government work (17 USC 105). Served by Eden Engine; not an official CMS product.

Use it

Five steps: search, inspect, learn, run, settle. No per-tool setup; your agent reaches this tool through the meta-tools it already has.

Connect once and your AI can find and run this tool, and any other it needs.

agent
// 1. search: find the tool
omnial_search({ query: "what you need" })

// 2. inspect: price and input schema
omnial_inspect({ tool: "cmsdata/inpatient-hospitals" })

// 3. learn: read the usage guide at runtime
omnial_learn({ tool: "cmsdata/inpatient-hospitals" })

// 4. run: price the exact call first, then run it
omnial_execute({ tool: "cmsdata/inpatient-hospitals", input: { /* see input_schema */ }, dry_run: true })
omnial_execute({ tool: "cmsdata/inpatient-hospitals", input: { /* ... */ } })

// 5. settle: the call is charged when it finishes, nothing to do

Not connected yet? Point your MCP client at https://mcp.eden-engine.com/mcp, then copy a config for your client.

Pricing

Every charge this tool can incur.

ChargePrice
Per call
$0.0026
Updated
Oct 20, 2026

Input and output schemas

Input schema
input_schema.json
{
  "type": "object",
  "required": [
    "size"
  ],
  "properties": {
    "ccn": {
      "type": "string",
      "pattern": "^[0-9A-Z]{6}$",
      "description": "Six-character CMS Certification Number of one hospital, for example 010001."
    },
    "size": {
      "type": "integer",
      "maximum": 200,
      "minimum": 1,
      "description": "How many rows to return, 1 to 200."
    },
    "state": {
      "type": "string",
      "pattern": "^[A-Z]{2}$",
      "description": "Two-letter state abbreviation of the hospital, for example AL."
    },
    "offset": {
      "type": "integer",
      "minimum": 0,
      "description": "Rows to skip, for paging. Leave out for the first page."
    },
    "drg_code": {
      "type": "string",
      "pattern": "^[0-9]{3}$",
      "description": "Three-digit MS-DRG code, for example 023."
    }
  },
  "additionalProperties": false
}
Output schema
output_schema.json
{
  "type": "object",
  "required": [
    "results"
  ],
  "properties": {
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "DRG_Cd": {
            "type": "string",
            "description": "MS-DRG code."
          },
          "DRG_Desc": {
            "type": "string",
            "description": "DRG description; CMS may truncate it."
          },
          "Tot_Dschrgs": {
            "type": "string",
            "description": "Total discharges."
          },
          "Rndrng_Prvdr_St": {
            "type": "string",
            "description": "Street address."
          },
          "Avg_Tot_Pymt_Amt": {
            "type": "string",
            "description": "Average total payment, dollars."
          },
          "Rndrng_Prvdr_CCN": {
            "type": "string",
            "description": "Hospital CMS Certification Number."
          },
          "Avg_Mdcr_Pymt_Amt": {
            "type": "string",
            "description": "Average Medicare payment, dollars."
          },
          "Rndrng_Prvdr_City": {
            "type": "string"
          },
          "Rndrng_Prvdr_RUCA": {
            "type": "string"
          },
          "Rndrng_Prvdr_Zip5": {
            "type": "string"
          },
          "Avg_Submtd_Cvrd_Chrg": {
            "type": "string",
            "description": "Average covered charge, dollars."
          },
          "Rndrng_Prvdr_Org_Name": {
            "type": "string",
            "description": "Hospital name."
          },
          "Rndrng_Prvdr_RUCA_Desc": {
            "type": "string"
          },
          "Rndrng_Prvdr_State_FIPS": {
            "type": "string"
          },
          "Rndrng_Prvdr_State_Abrvtn": {
            "type": "string"
          }
        },
        "additionalProperties": true
      },
      "description": "Matching rows, in CMS's order. Empty when nothing matches. Every value is a string."
    }
  },
  "additionalProperties": false
}