[Integrations](https://spiral.ai/integrations) › [OpenClaw](https://spiral.ai/integrations/openclaw) › [USDA foods ranked by nutrient](https://spiral.ai/integrations/openclaw/usda-foods-ranked-by-nutrient)

# How to Use USDA foods ranked by nutrient in OpenClaw

Returns foods with reported data for a selected nutrient, ranked by amount. Use it to discover candidate nutrient sources, then inspect their food descriptions and portions before choosing a substitute.

|  |  |
| --- | --- |
| Model | USDA foods ranked by nutrient |
| Available through | Alexandria |
| Category | Maps & Reviews |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with USDA foods ranked by nutrient in OpenClaw

- After each April and October, use USDA foods ranked by nutrient to report the 10 Foundation Foods with the highest reported biotin amounts and compare the returned list with the previous run.
- Every Monday at 9am: use USDA foods ranked by nutrient to look this up and give me the result as a table.
- Pull the latest numbers from USDA foods ranked by nutrient and tell me what changed since last week.
- Check USDA foods ranked by nutrient and summarize what you find in three bullet points.
- Pull the newest data from USDA foods ranked by nutrient and give me the result as a table.

## How to set up USDA foods ranked by nutrient in OpenClaw

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

### Use the Spiral skill

1. **Send OpenClaw 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. **Add the server**: On the machine that runs OpenClaw's Gateway:

```bash
openclaw mcp add spiral \
  --url https://api.spiral.ai/mcp \
  --transport streamable-http \
  --auth oauth
```

2. **Sign in**: In Settings › MCP, select Sign in on the Spiral server, sign in to Spiral and click Authorize. No API key.

```bash
openclaw mcp login spiral
```

3. **Reload and check**: A running Gateway may keep its old tool list: restart it, or Save & Publish in the Control UI.

```bash
openclaw mcp reload
openclaw mcp doctor spiral --probe
```

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run USDA foods ranked by nutrient**: One request; the result comes back by polling or a webhook.

```bash
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/search_foods_by_nutrient",
    "input": {
      "nutrient_id": 1
    }
  }'
```

Then paste one of the prompts above: OpenClaw finds USDA foods ranked by nutrient on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/openclaw

## USDA foods ranked by nutrient tools and prices

- [USDA FoodData Central (fdc.nal.usda.gov) · Search foods by nutrient](https://spiral.ai/tools/alexandria/fdc-nal-usda-gov/foods/search_foods_by_nutrient) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| page | 1 to 100000 | 1 | page |
| page_size | 1 to 100 | 25 | page_size |
| data_types |  | — | Restrict to these data types; omitted means all. |
| sort_direction | asc, desc | desc | Order by nutrient value; the portal's default is descending (richest first). |

## What can you do with USDA foods ranked by nutrient in OpenClaw?

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.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All OpenClaw guides](https://spiral.ai/integrations/openclaw)

## USDA foods ranked by nutrient in other agents

- [Amp](https://spiral.ai/integrations/amp/usda-foods-ranked-by-nutrient)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/usda-foods-ranked-by-nutrient)
- [Claude](https://spiral.ai/integrations/claude-desktop/usda-foods-ranked-by-nutrient)
- [Claude Code](https://spiral.ai/integrations/claude-code/usda-foods-ranked-by-nutrient)
- [Cline](https://spiral.ai/integrations/cline/usda-foods-ranked-by-nutrient)
- [Codex](https://spiral.ai/integrations/codex/usda-foods-ranked-by-nutrient)
- [Cursor](https://spiral.ai/integrations/cursor/usda-foods-ranked-by-nutrient)
- [Devin](https://spiral.ai/integrations/devin/usda-foods-ranked-by-nutrient)
- [dots](https://spiral.ai/integrations/dots/usda-foods-ranked-by-nutrient)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/usda-foods-ranked-by-nutrient)
- [Gemini](https://spiral.ai/integrations/gemini/usda-foods-ranked-by-nutrient)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/usda-foods-ranked-by-nutrient)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/usda-foods-ranked-by-nutrient)
- [goose](https://spiral.ai/integrations/goose/usda-foods-ranked-by-nutrient)
- [Grok](https://spiral.ai/integrations/grok/usda-foods-ranked-by-nutrient)
- [Grok Build](https://spiral.ai/integrations/grok-build/usda-foods-ranked-by-nutrient)
- [Hermes](https://spiral.ai/integrations/hermes/usda-foods-ranked-by-nutrient)
- [Instinct](https://spiral.ai/integrations/instinct/usda-foods-ranked-by-nutrient)
- [Manus](https://spiral.ai/integrations/manus/usda-foods-ranked-by-nutrient)
- [Muse](https://spiral.ai/integrations/muse/usda-foods-ranked-by-nutrient)
- [Muse Code](https://spiral.ai/integrations/muse-code/usda-foods-ranked-by-nutrient)
- [n8n](https://spiral.ai/integrations/n8n/usda-foods-ranked-by-nutrient)
- [Notion](https://spiral.ai/integrations/notion/usda-foods-ranked-by-nutrient)
- [opencode](https://spiral.ai/integrations/opencode/usda-foods-ranked-by-nutrient)
- [Perplexity](https://spiral.ai/integrations/perplexity/usda-foods-ranked-by-nutrient)
- [Raycast](https://spiral.ai/integrations/raycast/usda-foods-ranked-by-nutrient)
- [VS Code](https://spiral.ai/integrations/vscode/usda-foods-ranked-by-nutrient)
- [Windsurf](https://spiral.ai/integrations/windsurf/usda-foods-ranked-by-nutrient)
- [Zapier](https://spiral.ai/integrations/zapier/usda-foods-ranked-by-nutrient)

## More OpenClaw guides

- [USDA food search](https://spiral.ai/integrations/openclaw/usda-food-search)
- [USDA nutrient reference](https://spiral.ai/integrations/openclaw/usda-nutrient-reference)
- [USDA food nutrition details](https://spiral.ai/integrations/openclaw/usda-food-nutrition-details)
- [Vrbo destination lookup](https://spiral.ai/integrations/openclaw/vrbo-destination-lookup)
- [USDA food categories](https://spiral.ai/integrations/openclaw/usda-food-categories)
- [Vrbo property details](https://spiral.ai/integrations/openclaw/vrbo-property-details)

## Questions about USDA foods ranked by nutrient in OpenClaw

**Can OpenClaw use USDA foods ranked by nutrient?**

Yes. Add Spiral to OpenClaw as an MCP server, and OpenClaw can find and run USDA foods ranked by nutrient like any built-in tool.

**How much does USDA foods ranked by nutrient cost in OpenClaw?**

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

**Do I need an Alexandria account to use USDA foods ranked by nutrient in OpenClaw?**

No. Spiral runs USDA foods ranked by nutrient on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up USDA foods ranked by nutrient in OpenClaw?**

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

**Does OpenClaw wait while USDA foods ranked by nutrient runs?**

USDA foods ranked by nutrient runs in the background. OpenClaw 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.

