# Core

Find a dataset, read its rules, resolve a company or a provider, and run your own SQL.

Covers: every dataset · 4 sub-APIs · 14 tools · included with every product

## Discover

What data is there for my question, and how do I use it correctly?

| tool | returns | required |
|---|---|---|
| find_data_sources v1.0.0 | Search the Vlada substrate catalog by keyword. | none |
| describe_data_source v1.3.0 | Return the catalog record for one substrate data source. | source_fqn |
| find_views v1.0.0 | Look up the vetted analytic VIEWS for a question before you query. | none |
| describe_schema v1.0.0 | Return the semantic layer: marts, columns, invariants, canonical payers, and the tools YOU can call (the same list tools/list returns for you, never a wider catalog). | none |
| how_to_join v1.3.0 | Return the fail-closed measured way to join two Vlada substrate tables, including an explicit DIRECT_OK, DIRECT_DECLARED_KEY, NEEDS_GRAIN, ROUTE_THROUGH_DIM, ROUTE_MULTIHOP, or DO_NOT_SERVE directive. | table_a |
| certified_measure v1.0.0 | Run a GOVERNED KPI by name from the certified measures registry. | none |

**A real request and answer** (`find_data_sources`, customer seat, 0.79 s):

```bash
curl -X POST https://api.vladahealth.com/v1/tools/find_data_sources -H "Authorization: Bearer $VLADA_API_KEY" -H "Content-Type: application/json" -d '{"query":"medicare physician fee schedule","limit":5}'
```

```json
{
 "value": {
  "query": "medicare physician fee schedule",
  "filters": null,
  "verbosity": "compact",
  "status": "matched",
  "retrieval_mode": "lexical",
  "scope_verification": {
   "status": "not_verified",
   "basis": "catalog_match_only",
   "geography": "not_verified",
   "time_coverage": "not_verified",
   "population": "not_verified",
   "completeness": "not_verified"
  },
  "ranker": "authored_data_point_scorer",
  "excludes": "retired",
  "data_points": [
   {
    "rank": 1,
    "world": "w2",
    "data_point": {
     "id": "w2.puf.physician_avg_medicare_allowed",
     "name": "Medicare average allowed amount by provider and service",
     "unit": "USD_per_service",
     "kind": "measure"
    },
    "source": {
     "id": "cms_puf_physician_other_practitioners",
     "source_code": "cms_puf_physician_other_practitioners",
     "title": "Medicare Physician & Other Practitioners public use files (by provider and service; by geography and service)",
     "how_to_reach_it": "sql"
    },
    "location": {
     "table": "medicare_silver.fact_physician_by_provider_service",
     "column": "avg_medicare_allowed",
     "variants": [
      "paid=avg_medicare_payment",
      "standardized=avg_medicare_standardized",
      "submitted=avg_submitted_charge",
      "services=tot_services",
      "beneficiaries=tot_benes"
     ],
     "required_filters": [
      "is_current=true"
     ]
    },
    "trap": {
     "must_read": "Always filter data_year and a state or code; averages of paid claims; null is suppressed.",
     "ids": [
      "data_year_pin",
      "claims_average_not_fee_schedule",
      "small_cell_suppressed_null",
      "heavy_scan"
     ]
    },
    "next": "bounded query_substrate on medicare_silver.fact_physician_by_provider_service",
    "fetch": "descri
... (truncated; full answer on the tool's page)
```

## Resolve

Which company, plan or provider is this name or number?

| tool | returns | required |
|---|---|---|
| resolve_entity v2.1.0 | Resolve any company name or ID to Vlada's canonical entity: a legal entity (le:...), a brand, an NAIC group, a CMS contract (H1234), a plan (H1234-001@2027), a Medicaid plan, a Marketplace issuer (HIOS). | text |
| describe_entity v2.1.0 | Everything layer one holds about one entity (an entity_id from resolve_entity): what it is and its identifiers; who owned or controlled it on a date (on=YYYY-MM-DD, default today), | entity_id |
| resolve_provider v1.0.0 | Resolve a provider's identity: an NPI, an EIN, or an organisation name (+ state) -> the Medicare CCN(s) it maps to, the CCN's provider type from the CCN authority (vlada_curated.di | none |

**A real request and answer** (`resolve_entity`, customer seat, 4.24 s):

```bash
curl -X POST https://api.vladahealth.com/v1/tools/resolve_entity -H "Authorization: Bearer $VLADA_API_KEY" -H "Content-Type: application/json" -d '{"text":"Humana Inc."}'
```

```json
{
 "value": {
  "found": true,
  "status": "found",
  "not_found_reason": null,
  "query": {
   "text": "Humana Inc.",
   "on": null
  },
  "candidates": [
   {
    "entity_id": "le:000009",
    "kind": "legal_entity",
    "label": "Humana Inc.",
    "matched_on": [
     "name=Humana Inc.",
     "label=Humana Inc."
    ],
    "score": 1.0,
    "redirect_from": null
   }
  ],
  "shapes_recognised": [],
  "recover_with": [],
  "next": "describe_entity(entity_id=<a candidate's entity_id>, on=<date>)"
 },
 "unit": "ontology_entity",
 "vintage": "2026-10-28",
 "source": {
  "dataset": "Vlada ontology layer one (who holds and who owns every payer instrument, over time)",
  "publisher": "vlada",
  "catalog_updated_at": "2026-10-28"
 },
 "caveats": [
  "Scope: legal entities, brands and NAIC groups; Medicare Advantage and Part D contracts and plans (2006-), Medicaid managed care plans (2017-), Marketplace issuers (2017-); who holds and who owns them over time, with sourced deal events. Facilities, doctors, networks and PBMs are later layers and are not here; use resolve_provider for a CCN or NPI."
 ],
 "response_hash": "8392da4fa816dd83869de7d70d18c4387d7ecd42181cdfd482400dd8e4f1e269",
 "semantic_version": 1,
 "tool_version": "resolve_entity@2.1.0",
 "explanation": null,
 "status": "complete",
 "audience": "customer",
 "answer": {
  "value_ref": "value",
  "unit": "ontology_entity",
  "scope": {
   "tool": "resolve_entity",
   "filters": {
    "text": "Humana Inc.",
    "limit": 25
   }
  }
 },
 "method": "Computed over the filters shown in this answer's scope, from the sources listed in its evidence. Nothing outside those filters was included. You did not specify limit; 25 was used.",
 "evidence": {
  "sources": [
   {
    "dataset": "Vlada ontology layer one (who holds and wh
... (truncated; full answer on the tool's page)
```

## Query

Run my own read-only SQL over the catalog.

| tool | returns | required |
|---|---|---|
| query_substrate v1.1.0 | Set fresh=true for a user-requested saved-view update: execute without the result cache; all access and scan limits still apply. | sql |
| query v0.3.0 | SAFE STUB. Given a catalog source FQN, return HOW to query it FROM THIS MCP -- and only paths executable here: query_substrate (sync, small) or submit_query -> poll_query -> fetch_ | source_fqn |

**A real request and answer** (`query_substrate`, customer seat, 1.99 s):

```bash
curl -X POST https://api.vladahealth.com/v1/tools/query_substrate -H "Authorization: Bearer $VLADA_API_KEY" -H "Content-Type: application/json" -d '{"sql":"SELECT * FROM medicare_silver.dim_hospital_quality LIMIT 3","max_rows":3}'
```

```json
{
 "value": {
  "rows": [
   {
    "ccn": "350002",
    "facility_name": "CHI ST ALEXIUS HEALTH",
    "city": "BISMARCK",
    "state_cd": "ND",
    "zip_cd": "58501",
    "county_parish": "BURLEIGH",
    "hospital_type": "Acute Care Hospitals",
    "hospital_ownership": "Voluntary non-profit - Church",
    "emergency_services": true,
    "birthing_friendly": "Y",
    "overall_rating": 4,
    "overall_rating_footnote": null,
    "observed_period": "2026-09-22",
    "asserted_at": "2026-09-22",
    "effective_period_start": "2026-09-22",
    "effective_period_end": "2099-12-31",
    "cms_vintage_sequence": 1,
    "parse_revision": 1,
    "parser_artifact_hash": "01dfeeb3d0b7f7f8f6b2ef70abdfe464d9a56c02bdab90047222ec71d2472511",
    "source_url": "https://data.cms.gov/provider-data/sites/default/files/resources/893c372430d9d71a1c52737d01239d47_1785189955/Hospital_General_Information.csv",
    "sha256_content_hash": "f874f09fef895a1ccf5bb7392dcbb2be05c9860339261b093fe00f0c1b013480",
    "source_id": "cms_hospital_general_information",
    "is_current": true,
    "bronze_object_key": null,
    "s3_version_id": null,
    "vintage_tag": "general_info_2026-09-22",
    "drug_source_version_id": null,
    "latitude": null,
    "longitude": null
   },
   {
    "ccn": "350006",
    "facility_name": "TRINITY HOSPITALS",
    "city": "MINOT",
    "state_cd": "ND",
    "zip_cd": "58701",
    "county_parish": "WARD",
    "hospital_type": "Acute Care Hospitals",
    "hospital_ownership": "Voluntary non-profit - Private",
    "emergency_services": true,
    "birthing_friendly": "Y",
    "overall_rating": 3,
    "overall_rating_footnote": null,
    "observed_period": "2026-09-22",
    "asserted_at": "2026-09-22",
    "effective_period_start": "2026-09-22",
    "effective_period_end": "2099
... (truncated; full answer on the tool's page)
```

## Bulk lane

Run a heavy query in the background and fetch the result.

| tool | returns | required |
|---|---|---|
| submit_query v1.1.0 | Submit a heavy/long-running query to run OFF the request path and get a job_id back immediately, instead of blocking (and risking a timeout) on a statewide/cross-hospital scan. | tool |
| poll_query v1.0.0 | Poll the status of an async job submitted with submit_query. | job_id |
| fetch_query v1.0.0 | Fetch the result of an async job once it is done. | job_id |

**A real request and answer** (`submit_query`, customer seat, 0.16 s):

```bash
curl -X POST https://api.vladahealth.com/v1/tools/submit_query -H "Authorization: Bearer $VLADA_API_KEY" -H "Content-Type: application/json" -d '{"tool":"prove_commercial_price","arguments":{"payer":"cigna","version_id":"2026-05","state":"CT","code":"99213"}}'
```

```json
{
 "value": {
  "accepted": true,
  "job_id": "7bf34726646a4d4f9b3020e61eb30de3",
  "status": "queued",
  "tool": "compare_hospital_rates",
  "poll_with": "poll_query",
  "fetch_with": "fetch_query"
 },
 "unit": null,
 "vintage": null,
 "methodology": null,
 "caveats": [],
 "response_hash": "0b213afd1607977343680d710e0559905e3e0866a62bce635ded2aaa14eea60a",
 "semantic_version": 1,
 "tool_version": "submit_query@1.1.0",
 "explanation": null,
 "status": "complete",
 "audience": "customer",
 "answer": {
  "value_ref": "value",
  "scope": {
   "tool": "submit_query",
   "filters": {
    "tool": "prove_commercial_price",
    "force": false
   }
  }
 },
 "method": "Computed over the filters shown in this answer's scope, from the sources listed in its evidence. Nothing outside those filters was included. You did not specify force; no was used.",
 "evidence": {
  "response_hash": "0b213afd1607977343680d710e0559905e3e0866a62bce635ded2aaa14eea60a"
 },
 "defaults_applied": [
  {
   "param": "force",
   "used": false,
   "reason": "tool default"
  }
 ],
 "freshness": {
  "state": "unknown",
  "why": "This tool does not report an edition for its answer, and the door could not derive one from what the answer reads. Treat the result as current to no stated date."
 }
}
```

**Limits.**
- Your own SQL is read-only and row-capped by plan.
- The bulk lane (submit, poll, fetch) is for work past the 40-second budget and is not on every plan.

**What sets it apart.** Comes with every product. The catalog names each table's traps before you query it.
