ca_facility_license_history
Pack: ca-hcai-facilities · 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/ca_facility_license_history for the schema, then POST the same URL with its arguments for the data.
Licence history of one California health facility across the semi-annual Licensed Healthcare Facility Listing snapshots published by the Department of Health Care Access and Information (HCAI), newest first from the current listing back to 2016. Give facility_number (9-digit HCAI id or 5-digit state facility id from ca_facility_search) or name. Returns the facility as it appeared in each snapshot read (name, status, status date, licence type and category, licensed beds, licence number) and the changes between snapshots. Reads the newest 6 snapshots by default (snapshots up to 12) and names which were read.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
facility_number | string | yes | 9-digit HCAI facility id (e.g. “106190232”) or 5-digit state facility id. |
name | string | no | Words from the facility name when facility_number is not known. |
snapshots | number | no | How many snapshots to read, newest first (default 6, max 12). |
Example call
Arguments
{
"facility_number": "106190232",
"snapshots": 2
}
curl
curl -X POST https://gateway.pipeworx.io/ca-hcai-facilities/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"ca_facility_license_history","arguments":{"facility_number":"106190232","snapshots":2}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('ca_facility_license_history', {
"facility_number": "106190232",
"snapshots": 2
});
Response shape
| Field | Type | Description |
|---|---|---|
facility_number | string | |
snapshots_available | number | |
snapshots_read | array | |
snapshots_not_read | number | |
snapshots_with_facility | number | |
history | array | |
changes | array | |
source | string |
Full JSON Schema
{
"type": "object",
"properties": {
"facility_number": {
"type": "string"
},
"snapshots_available": {
"type": "number"
},
"snapshots_read": {
"type": "array",
"items": {
"type": "string"
}
},
"snapshots_not_read": {
"type": "number"
},
"snapshots_with_facility": {
"type": "number"
},
"history": {
"type": "array",
"items": {
"type": "object",
"properties": {
"snapshot": {
"type": "string"
},
"snapshot_label": {
"type": "string"
},
"resource_id": {
"type": "string"
},
"found": {
"type": "boolean"
},
"name": {
"type": "string"
},
"status": {
"type": "string"
},
"status_date": {
"type": "string"
},
"license_type": {
"type": "string"
},
"license_category": {
"type": "string"
},
"licensed_beds": {
"type": "number"
},
"license_number": {
"type": "string"
},
"address": {
"type": "string"
},
"city": {
"type": "string"
},
"county": {
"type": "string"
}
},
"additionalProperties": true
}
},
"changes": {
"type": "array",
"items": {}
},
"source": {
"type": "string"
}
},
"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 ca-hcai-facilities pack
{
"mcpServers": {
"ca-hcai-facilities": {
"url": "https://gateway.pipeworx.io/ca-hcai-facilities/mcp"
}
}
}
See Getting Started for client-specific install steps.