Skip to main content
Glama

List CDC Catalog Vocabulary

cdc_list_catalog_vocabulary
Read-only

List 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

NameRequiredDescriptionDefault
domainNoCDC 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
filterNoNarrow 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_limitNoTags 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_offsetNoIndex 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

NameRequiredDescriptionDefault
capNoThe tag_limit that bounded this response.
tagsNoThe 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.
errorNoPresent when the call failed. Absent on success.
shownNoNumber of tags returned in this response.
domainNoCDC Socrata host this vocabulary was read from.
noticeNoGuidance 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.
tagCountNoTags matching the filter, before tag_limit and tag_offset.
truncatedNoTrue when the returned tags are a subset of the matching ones. Absent means every matching tag is in this response.
categoriesNoEvery domain category matching the filter, ranked by entry count. Pass a value to cdc_discover_datasets' category input exactly as spelled here.
nextOffsetNoValue to pass as tag_offset on the next call to continue after the last tag returned. Present only while matching tags remain.
categoryCountNoCategories matching the filter. Every one of them is in this response.
vocabularySizeNoSize of each full vocabulary on this host, before any filter was applied.
truncationCeilingNoUpper 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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • changedInput schema / properties / filter / description
      Previous value: -"Narrow both vocabularies to the values related to this text (at most 500 characters). A value matches when every word of the filter appears inside one of its words (\"vaccin\" reaches \"Vaccinations\" and \"covid-19 vaccination\"), or when the whole value appears in the filter. 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."New value: +"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."
    • changedOutput schema / properties / categories / items / properties / datasetCount / description
      Previous value: -"Catalog entries carrying this value. Charts, maps, stories, files, and links are counted alongside datasets, so this is an upper bound on the queryable entries a filter returns."New value: +"Catalog entries carrying this value, charts, maps, stories, files, and links included."
    • changedOutput schema / properties / categories / items / properties / value / description
      Previous value: -"The value as the catalog spells it — pass it verbatim to cdc_discover_datasets. The catalog matches categories and tags against these values ignoring case, but otherwise exactly."New value: +"The value as the catalog spells it, which cdc_discover_datasets matches ignoring case but otherwise exactly."
    • changedOutput schema / properties / tags / items / properties / datasetCount / description
      Previous value: -"Catalog entries carrying this value. Charts, maps, stories, files, and links are counted alongside datasets, so this is an upper bound on the queryable entries a filter returns."New value: +"Catalog entries carrying this value, charts, maps, stories, files, and links included."
    • changedOutput schema / properties / tags / items / properties / value / description
      Previous value: -"The value as the catalog spells it — pass it verbatim to cdc_discover_datasets. The catalog matches categories and tags against these values ignoring case, but otherwise exactly."New value: +"The value as the catalog spells it, which cdc_discover_datasets matches ignoring case but otherwise exactly."
  2. Changed6 schema fields changed
    • changedInput schema / properties / filter / description
      Previous value: -"Narrow both vocabularies to the values related to this text. A value matches when every word of the filter appears inside one of its words (\"vaccin\" reaches \"Vaccinations\" and \"covid-19 vaccination\"), or when the whole value appears in the filter. Matching is not fuzzy — a misspelling returns nothing rather than a guess — and a filter under three letters is ignored."New value: +"Narrow both vocabularies to the values related to this text (at most 500 characters). A value matches when every word of the filter appears inside one of its words (\"vaccin\" reaches \"Vaccinations\" and \"covid-19 vaccination\"), or when the whole value appears in the filter. 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."
    • addedInput schema / properties / filter / maxLength
      Added value: +500
    • changedOutput schema / properties / categories / items / properties / value / description
      Previous value: -"The value as the catalog spells it — pass it verbatim to cdc_discover_datasets. Categories are matched case-sensitively by the catalog; tags case-insensitively."New value: +"The value as the catalog spells it — pass it verbatim to cdc_discover_datasets. The catalog matches categories and tags against these values ignoring case, but otherwise exactly."
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `rate_limited`: Socrata API returns 429 Too Many Requests. `dataset_not_found`: Socrata returned 404 for the vocabulary endpoint itself — the Discovery API address is wrong or the service moved. `access_denied`: Socrata returned 403 — the catalog refused this request rather than failing to serve it. `upstream_error`: Socrata catalog API returned a 5xx server error. `invalid_query`: Socrata rejected the vocabulary request with a 400. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `rate_limited`: Socrata API returns 429 Too Many Requests. `dataset_not_found`: Socrata returned 404 for the vocabulary endpoint itself — the Discovery API address is wrong or the service moved. `access_denied`: Socrata returned 403 — the catalog refused this request rather than failing to serve it. `upstream_error`: Socrata catalog API returned a 5xx server error, could not be reached, did not finish answering within 20 seconds, or answered with a body that is not the JSON it serves. `invalid_query`: Socrata rejected the vocabulary request with a 400. Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / notice / description
      Previous value: -"Guidance when the response is a subset of the vocabulary, when a filter too short to discriminate was ignored, when the filter matched nothing, or when tag_offset ran past the end of the matches."New value: +"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."
    • changedOutput schema / properties / tags / items / properties / value / description
      Previous value: -"The value as the catalog spells it — pass it verbatim to cdc_discover_datasets. Categories are matched case-sensitively by the catalog; tags case-insensitively."New value: +"The value as the catalog spells it — pass it verbatim to cdc_discover_datasets. The catalog matches categories and tags against these values ignoring case, but otherwise exactly."
  3. Changed3 schema fields changed
    • changedInput schema / properties / tag_limit / description
      Previous value: -"Tags to return in this call (default 50, max 500). 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. Categories are never paged — all 55 arrive whole."New value: +"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."
    • changedInput schema / properties / tag_limit / maximum
      Previous value: -500New value: +9007199254740991
    • changedOutput schema / properties / truncationCeiling / description
      Previous value: -"Upper bound on the entry count of every tag not returned. Tags are ranked by entry count, so no omitted tag is carried by more entries than the last one shown."New value: +"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."
  4. Added

TDQS

A4.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Read-only behavior is already declared by the annotation, yet the description adds real context: categories always return whole, tags are ranked by entry count and paged, offsets past the end yield an empty list rather than an error, and unmatched short filters are ignored. It stops short of describing the response envelope, but the output schema covers that.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose, then the call-before-filtering rationale, then pagination, then filter matching — a logical order with no filler. A few clauses (e.g. the filter detail) duplicate material already in the schema descriptions and could be trimmed.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With four optional parameters, a read-only annotation, and an output schema, the description supplies everything the structured fields do not: why to call it first, ranking and paging behavior, and how the vocabulary is shaped (~1,600 tags vs. complete categories).

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so a baseline of 3 applies, but the description adds meaning beyond the schema by tying tag_limit and tag_offset to a stable entry-count ranking and explaining that a limit at or above the match count returns everything at once. The filter semantics are largely restated from the schema's own examples.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("List the controlled vocabularies") and immediately ties them to the sibling's filters (cdc_discover_datasets' category and tags), so an agent knows exactly what is returned and why it differs from searching datasets directly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit when-to-use instruction ("Call it before filtering a search") and the failure mode that motivates it — an unknown value returns an empty page indistinguishable from a genuine no-results case. That is a clear, actionable routing rule rather than an implied one.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.