# CMS Provider Data Catalog query

Queries a CMS Provider Data Catalog dataset (Care Compare: hospitals, nursing homes, clinicians, home health, dialysis) with one column condition and sorting. Needs dataset id.

Queries a CMS Provider Data Catalog dataset (Care Compare: hospitals, nursing homes, clinicians, home health, dialysis) with one column condition and sorting. Examples: xubh-q36u Hospital General Information (star ratings), 4pq5-n9py Nursing Home Provider Information, mj5m-pzi6 Doctors and Clinicians.

- Tool ID: `cms/provider-data-query`
- Provider: [CMS](/providers/cms.md)
- Capability: [Knowledge & research](/tools/knowledge.md)
- Price: no charge per call
- Authentication: an authorised Agentik workspace is required for execution, including zero-price tools.

## Pricing contract

No charge per call. A workspace is still needed so your agent can call it.


```json
{
  "model": "per_call",
  "amountUsd": 0
}
```

## Complete input schema


```json
{
  "type": "object",
  "properties": {
    "dataset_id": {
      "type": "string",
      "pattern": "^[a-z0-9]{4}-[a-z0-9]{4}$",
      "description": "Provider Data Catalog dataset id, e.g. 'xubh-q36u'"
    },
    "filter_property": {
      "type": "string",
      "pattern": "^[a-z0-9_]{1,64}$",
      "description": "Column to filter, e.g. 'state'"
    },
    "filter_operator": {
      "type": "string",
      "enum": [
        "=",
        "<>",
        "<",
        "<=",
        ">",
        ">=",
        "like",
        "contains",
        "starts with"
      ],
      "description": "Condition operator (default '='), e.g. 'contains'"
    },
    "filter_value": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120,
      "description": "Value to match, e.g. 'VT'"
    },
    "sort_property": {
      "type": "string",
      "pattern": "^[a-z0-9_]{1,64}$",
      "description": "Column to sort by, e.g. 'hospital_overall_rating'"
    },
    "sort_order": {
      "type": "string",
      "enum": [
        "asc",
        "desc"
      ],
      "description": "Sort order, e.g. 'desc'"
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "default": 10,
      "description": "Rows to return, e.g. 10"
    },
    "offset": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1000000,
      "default": 0,
      "description": "Rows to skip, e.g. 10"
    }
  },
  "required": [
    "dataset_id"
  ],
  "additionalProperties": false,
  "dependencies": {
    "filter_property": [
      "filter_value"
    ],
    "filter_value": [
      "filter_property"
    ],
    "filter_operator": [
      "filter_property"
    ],
    "sort_order": [
      "sort_property"
    ]
  }
}
```

## Published example

This is the provider tool’s published example. Replace example values with the user’s requested inputs, respecting the schema; do not execute an example merely to test a connection.


```json
{
  "tool_id": "cms/provider-data-query",
  "input": {
    "dataset_id": "xubh-q36u",
    "filter_property": "state",
    "filter_value": "VT",
    "limit": 3
  }
}
```

## Execute and retrieve

Inspect again before execution, explain the price and obtain the required authority. Use MCP run_tool or POST /v1/run with this tool ID, valid input and an idempotency key. Save the returned run ID and follow the actual state. If Agentik answers that the tool is temporarily unavailable, do not retry it blindly; use discovery to propose an alternative.

A partial or uncertain result can still have consumed provider resources. Consult [billing](/docs/billing.md), [idempotency](/docs/idempotency.md) and [asynchronous results](/docs/async.md).

Licence: US Government public data (public domain).

Attribution: Data from the Centers for Medicare & Medicaid Services (Provider Data Catalog).

[Provider documentation](https://data.cms.gov/provider-data/docs)

[REST inspection](https://api.agentik.cc/v1/tools/cms/provider-data-query) · [OpenAPI](/openapi.json) · [Connection guide](/connect.md)

---

[HTML page](/providers/cms/provider-data-query) · [Agent index](/llms.txt)
