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

dots · Maps & Reviews

How to Use USDA food categories in dots

Returns FoodData Central’s food category reference lists. Use it to interpret category codes and organize comparisons while keeping USDA’s different classification systems separate.

Prompts to try with USDA food categories in dots

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

Each quarter, use USDA food categories and report additions or changes to the returned category references, highlighting categories relevant to cereals.

USDA food categoriesdots
Try asking
  • Every Monday at 9am: use USDA food categories to look this up and give me the result as a table.

  • Pull the latest numbers from USDA food categories and tell me what changed since last week.

  • Check USDA food categories and summarize what you find in three bullet points.

  • Pull the newest data from USDA food categories and give me the result as a table.

How to set up USDA food categories in dots

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

Use the Spiral skill

  1. Send dots 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 Spiral's MCP server

  1. Create an API key

    In the console, open API keys and create a key for your dot. Copy it.

  2. Send your dot this message

    Your dot reads Spiral's skill and asks for your API key.

    set up https://spiral.ai/SKILL.md
  3. Give your dot the key

    When your dot asks for the key, add it where your dot keeps secrets, never in the chat itself.

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 USDA food categories

    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": "fdc-nal-usda-gov/foods/list_food_categories",
        "input": {
          "data_type": "Foundation"
        }
      }'

Then paste one of the prompts above: dots finds USDA food categories on Spiral, shows the price and runs it.

USDA food categories providers and prices

Spiral runs USDA food categories through Alexandria. Open a card for today's price, with every fee included.

AlexandriaMaps & Reviews
USDA FoodData Central (fdc.nal.usda.gov) · List food categories
fdc-nal-usda-gov/foods/list_food_categories

Settings you can ask for

Ask dots for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Data typeFoundation, SR Legacy, or Survey (FNDDS)

Branded foods have no portal category list (their GPC category is a free string on each record).

Every API field of USDA FoodData Central (fdc.nal.usda.gov) · List food categories is on its tool page: open its card above.

What can you do with USDA food categories in dots?

Produce a recurring USDA reference report for food buyers or menu researchers. Scheduled agents can compare successive food records, category references, nutrient definitions, and ranking results while respecting the source's update cadence.

Cafeteria ingredient substitution research

Find candidate foods by sodium content, match their descriptions, and inspect complete records. Use nutrient definitions and food categories to organize a comparison of substitutes within the same type of food.

Plant protein ingredient comparison

Discover foods ranked by reported protein, locate lentil, bean, tofu, and grain records, and compare their nutrient details. Resolve nutrient units and category labels before preparing a purchasing research table.

Fortified staple food research

Build a reference comparison of enriched and unenriched flour or rice. Resolve the iron definition, discover candidate foods by iron content, verify descriptions, and organize detailed records by USDA category.

Food comparison teaching tool

Build a classroom explorer with food search, category navigation, nutrient definitions, nutrient rankings, and individual food records. Let students investigate how the chosen food and nutrient change a comparison.

Food category documentation

Document the category references used in a nutrition research project. Keep each USDA classification system identifiable when describing how foods were organized.

Questions about USDA food categories in dots

Can dots use USDA food categories?

Yes. Add Spiral to dots as an MCP server, and dots can find and run USDA food categories like any built-in tool.

How much does USDA food categories cost in dots?

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

Do I need an Alexandria account to use USDA food categories in dots?

You need no Alexandria account. dots uses one Spiral API key for every tool, and Spiral runs USDA food categories on its own Alexandria account.

How long does it take to set up USDA food categories in dots?

About two minutes: create an API key, then send your dot this message, then give your dot the key.

Does dots wait while USDA food categories runs?

USDA food categories runs in the background. dots starts the run, checks on it and gives you the json when it's ready.

How often does USDA update FoodData Central?

Branded Foods data updates monthly through the API. SR Legacy is a fixed historical reference whose final release was April 2018.

What does Foundation Foods cover?

Foundation Foods covers commodity and minimally processed food samples. Its metadata helps explain variation between analyzed samples.

Does USDA use one category system for every food?

No. Each FoodData Central data type uses a categorization system developed for its own purpose, so category labels should be interpreted within that data type.

Can I find a packaged food by its barcode?

FoodData Central supports searching by GTIN as well as food name. It also supports NDB numbers and FNDDS food codes for the relevant data types.

What information can I inspect behind a nutrient value?

A food record can include data points, minimum, maximum, median, derivation details, and portions. Which details are available depends on the selected record.

Get started

Start using USDA food categories in dots

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

Paste this into dots:

Set up dots

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