Skip to main content
Glama

CDC — Chronic Disease State-by-State Comparison

cdc_chronic.disease.state_compare
Read-onlyIdempotent

Compare a chronic disease indicator across all US states for a given year. Returns the value for each state (prevalence %, rate, or count) plus the 5 highest and 5 lowest states for quick ranking. Requires a question_id (e.g. "DIA01" for diabetes prevalence, "TOB04" for smoking, "CVD01" for high blood pressure). Optional year (default most recent 2023) and demographic stratification. Useful for geographic health disparity analysis and policy research. Source: CDC CDI Socrata dataset hksd-2xuw. No auth — US Gov public domain.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
yearNoData year for comparison (e.g. 2023). Defaults to most recent available year (2023 or later). All states return the same year for a fair comparison.
question_idNoQuestion ID to compare across states (e.g. "DIA01" for diabetes prevalence, "TOB04" for smoking, "CVD01" for high blood pressure, "AST01" for asthma prevalence). Use cdc_chronic.topics to find valid IDs. Defaults to "DIA01".
stratification_idNoDemographic subgroup to compare. OVR=Overall (default, all adults), SEXF=Female, SEXM=Male, WHT=White non-Hispanic, BLK=Black non-Hispanic, HIS=Hispanic, AGE65P=Age 65+, etc.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNoPresent only when the call failed. Includes error code, message, request_id, and any provider-specific extras.
resultNoTool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already establish read-only/idempotent behavior, and the description adds useful context: 'No auth — US Gov public domain', the source dataset id, and the top/bottom ranking behavior. There is no contradiction with the annotations.

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

Conciseness5/5

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

The description is compact and well-structured: operation and output first, then parameters, then use case, source, and auth. Every sentence earns its place with no filler.

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

Completeness4/5

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

Combined with the rich annotations, full schema coverage, and output schema, the description is nearly complete and adds source, auth, and use-case context. The only minor gap is that 'Requires a question_id' slightly conflicts with the schema's optional default of DIA01, and it does not mention alternatives.

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

Parameters3/5

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

Schema coverage is 100%, so the schema already documents defaults, year bounds, enums, and parameter meanings. The description restates examples and defaults but does not materially add meaning beyond the schema.

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?

The first sentence names the exact operation: compare a chronic disease indicator across all US states for a given year. The second sentence specifies the output shape, including per-state values and the 5 highest/lowest states, which clearly differentiates this from siblings like cdc_chronic.disease.trend and cdc_chronic.disease.topics.

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

Usage Guidelines4/5

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

It gives clear usage context by stating it is 'Useful for geographic health disparity analysis and policy research' and by explaining required and optional inputs. It does not explicitly name alternatives or state when not to use this tool, so it stops short of a 5.

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.