List CDC Catalog Vocabulary
cdc_list_catalog_vocabularyList the controlled vocabularies cdc_discover_datasets' category and tags filters are matched against — every domain category and domain tag the CDC catalog publishes, each with the number of entries carrying it. Call it before filtering a search: a value the catalog does not carry matches nothing and returns an empty page, which is indistinguishable from a real value with no results. All categories come back whole; the tag vocabulary runs to roughly 1,600 values, so tags are ranked by entry count and returned one page at a time via tag_limit and tag_offset. Pass filter to narrow both vocabularies to the values that have a word containing or starting each of its words, or whose every word contains or starts one of its words; a filter under three letters or digits matches whole words only.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "cdc_list_catalog_vocabulary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | No | CDC Socrata host to read the vocabulary from. "data.cdc.gov" (default) and "chronicdata.cdc.gov" front the same catalog and publish the same vocabulary, so this selects which host answers, never which values exist. | data.cdc.gov |
| filter | No | Narrow both vocabularies to the values related to this text (at most 500 characters). A value matches when each word of the filter appears inside one of its words or begins with one ("vaccin" reaches "Vaccinations" and "covid-19 vaccination"; "vaccinations" reaches "vaccination", "children" reaches "Child Vaccinations"), or when each of its words contains or starts a word of the filter ("nndss weekly" reaches "nndss" and "week"). A word sitting inside a filter word past its start is no match: "international" does not reach "national", nor "teenage" "age". Matching is not fuzzy — a misspelling returns nothing rather than a guess. A word under three letters or digits matches only an equal word, so a short filter reaches the values carrying it as a whole word ("tb" reaches "tuberculosis (tb)", never "outbreak"); a short filter that reaches none, or one with no letters or digits, is ignored and both vocabularies come back unfiltered. | |
| tag_limit | No | Tags to return in this call (default 50). Tags are ranked by entry count, so the default page is the most-used end of the vocabulary; the response reports how many matched and a nextOffset while more remain. A tag_limit at or above the number of matching tags returns all of them in one call. Categories are never paged — every one arrives whole. | |
| tag_offset | No | Index of the first tag to return, for continuing past a previous call (default 0). Ranking is stable, so tag_offset plus tag_limit walks the vocabulary without gaps or repeats. An offset at or past the number of matching tags returns an empty tag list rather than an error. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cap | No | The tag_limit that bounded this response. | |
| tags | No | The requested window of domain tags, ranked by entry count. Pass values to cdc_discover_datasets' tags input; tags union there, so each one added widens the result set. | |
| error | No | Present when the call failed. Absent on success. | |
| shown | No | Number of tags returned in this response. | |
| domain | No | CDC Socrata host this vocabulary was read from. | |
| notice | No | Guidance when the response is a subset of the vocabulary, when a filter under three letters or digits was ignored because no value carries it as a whole word, when the filter matched nothing, or when tag_offset ran past the end of the matches. | |
| tagCount | No | Tags matching the filter, before tag_limit and tag_offset. | |
| truncated | No | True when the returned tags are a subset of the matching ones. Absent means every matching tag is in this response. | |
| categories | No | Every domain category matching the filter, ranked by entry count. Pass a value to cdc_discover_datasets' category input exactly as spelled here. | |
| nextOffset | No | Value to pass as tag_offset on the next call to continue after the last tag returned. Present only while matching tags remain. | |
| categoryCount | No | Categories matching the filter. Every one of them is in this response. | |
| vocabularySize | No | Size of each full vocabulary on this host, before any filter was applied. | |
| truncationCeiling | No | Upper bound on the entry count of every tag after this page — the tags from nextOffset on. Tags are ranked by entry count, so none of those is carried by more entries than the last tag shown. It does not bound the tags before tag_offset: those rank at or above the first tag shown. |