Spiral gives your agent every tool with one account. Browse the tools →

opencode · Health

How to Use CDC cancer incidence and death statistics in opencode

Fetch cancer case and death counts, rates, and historical trends from U.S. Cancer Statistics. Use it to compare cancer burden across states, cancer sites, and population groups.

Prompts to try with CDC cancer incidence and death statistics in opencode

Copy an example into opencode, or ask in your own words.

Use CDC cancer incidence and death statistics to fetch 2023 lung cancer incidence for Kentucky, Ohio, and West Virginia, then add a comparison table to this project's report.

CDC cancer incidence and death statisticsopencode
Try asking
  • Use CDC cancer incidence and death statistics to retrieve California female breast cancer mortality from 1999 through 2024 and build a chart in the project showing counts and rates separately.

  • Use CDC cancer incidence and death statistics to fetch Texas colorectal cancer incidence from 2010 through 2023 and generate a CSV for this project, keeping 2020 labeled separately from the fitted trend.

  • Use CDC cancer incidence and death statistics to retrieve 2023 prostate cancer incidence for the available racial and ethnic populations in Georgia and add a table that preserves suppressed results.

  • Use CDC cancer incidence and death statistics to compare 2023 pancreatic cancer incidence in New York and Florida, then add the returned counts and rates to this project's dashboard.

How to set up CDC cancer incidence and death statistics in opencode

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the server

    Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

    opencode mcp add spiral --global --url https://api.spiral.ai/mcp
  2. Sign in

    Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    opencode mcp list

Use the Spiral skill

  1. Send opencode this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run CDC cancer incidence and death statistics

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "alexandria",
        "model": "uscs-cdc-gov/cancer-statistics/search",
        "input": {
          "breakdown": "state"
        }
      }'

Then paste one of the prompts above: opencode finds CDC cancer incidence and death statistics on Spiral, shows the price and runs it.

CDC cancer incidence and death statistics providers and prices

Spiral runs CDC cancer incidence and death statistics through Alexandria. Open a card for today's price, with every fee included.

AlexandriaHealth
U.S. Cancer Statistics (CDC and NCI) · Search
uscs-cdc-gov/cancer-statistics/search

Settings you can ask for

Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Breakdownstate, county, age, or national

state: the 50 states and DC by year (BYAREA); county: counties for the latest 5-year period (BYAREA_COUNTY); age: the U.S. by 19 age groups and year, age-specific rates (BYAGE); national: the U.S. by year for 83 detailed sites (BYSITE).

Sexall, male, or female

Default all (USCS Male and Female). A sex-specific site (Prostate, Cervix, Ovary, Female Breast, Male Breast and similar) is read under its own sex; the other sex fails.

Raceall, white, black, american_indian_alaska_native, asian_pacific_islander, asian, native_hawaiian_pacific_islander, or hispanicall

Race and ethnicity, non-Hispanic except hispanic. Incidence uses bridged race (asian_pacific_islander); deaths from 2018 and county rows use single race, where asian and native_hawaiian_pacific_islander exist; a race the table lacks for the filters is an empty result with a warning.

Sortrate_desc, rate_asc, or count_desc

Order by rate or count; rows without the value come last. Default: by area, age group, site and year.

Eventincidence or mortalityincidence

incidence: new cases (cancer registries); mortality: cancer deaths (death certificates). Not prevalence.

Limit1 to 1000100

Rows returned after sorting; total_count has them all.

To year1999 to 2100

Last single year of a trend; with from_year (default 1999).

From year1999 to 2100

First single year of a trend; with to_year (default the latest). Not for counties.

Include combined siteson or off

With site: all: false drops sites that group other sites of the same table (All Cancer Sites Combined, Digestive System, Male and Female Breast, Lymphomas and so on), so a ranking lists single sites only.

Every API field of U.S. Cancer Statistics (CDC and NCI) · Search is on its tool page: open its card above.

What can you do with CDC cancer incidence and death statistics in opencode?

Build a state cancer comparison chart using USCS case counts, death counts, and rates. A coding agent can populate the project's tables and preserve suppressed statistics in the display.

State cancer burden briefs

Compare lung cancer case counts and age-adjusted incidence rates in Kentucky, Ohio, and West Virginia for the same diagnosis year.

Cancer control planning

Summarize colorectal cancer incidence and deaths in Texas to support a population-level needs assessment.

Long-term mortality reporting

Chart California breast cancer death counts and rates over time for a public health report.

Cancer site comparisons

Compare counts and rates across cancer sites in Florida to show how rankings differ by the measure used.

Population disparity analysis

Compare prostate cancer incidence rates among available racial and ethnic populations in Georgia, preserving suppressed results.

Annual report updates

Refresh a New York cancer burden report when a new annual submission becomes available, including revisions to historical incidence figures.

Questions about CDC cancer incidence and death statistics in opencode

Can opencode use CDC cancer incidence and death statistics?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run CDC cancer incidence and death statistics like any built-in tool.

How much does CDC cancer incidence and death statistics cost in opencode?

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

Do I need an Alexandria account to use CDC cancer incidence and death statistics in opencode?

No. Spiral runs CDC cancer incidence and death statistics on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up CDC cancer incidence and death statistics in opencode?

About two minutes: add the server, then sign in, then check it.

Does opencode wait while CDC cancer incidence and death statistics runs?

CDC cancer incidence and death statistics runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

How recent are the cancer statistics?

CDC's current documentation covers diagnoses through 2023 and deaths through 2024. Both historical series begin in 1999.

How complete is U.S. incidence coverage?

Qualifying registries cover 100% of the U.S. population for 2023 diagnoses and 98.8% across 1999 through 2023. Population coverage does not mean every detailed statistic is published: counts below 16 are suppressed.

Why are some counts and rates missing?

USCS suppresses statistics based on counts below 16. That threshold protects patient confidentiality and limits the publication of unstable estimates.

Can older incidence figures change?

Yes. Registries submit revised data for previous diagnosis years along with a new diagnosis year each year, so historical incidence figures can change between submissions.

Which rates should I use to compare states?

Use age-adjusted rates when comparing populations with different age distributions. USCS uses the 2000 U.S. standard population for that adjustment.

Get started

Start using CDC cancer incidence and death statistics in opencode

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into opencode:

Set up opencode

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options