How to Use USDA foods ranked by nutrient in Google Antigravity
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.
Prompts to try with USDA foods ranked by nutrient in Google Antigravity
Copy an example into Google Antigravity, or ask in your own words.
Use USDA foods ranked by nutrient to retrieve Foundation Foods ranked by reported biotin and build a table showing the first 10 returned foods.
Use USDA foods ranked by nutrient to look this up and give me the result as a table. Save the result in ./assets.
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 Google Antigravity
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Open the MCP config
* Antigravity App: click Customizations, then Installed. In the MCP Servers section, click Copy Config File Path and open that file. * Antigravity IDE: click … at the top of the agent side panel, select MCP Servers, then Manage MCP Servers › View raw config. * Antigravity CLI: edit ~/.gemini/config/mcp_config.json.
- Add the server
Add Spiral under mcpServers:
{ "mcpServers": { "spiral": { "serverUrl": "https://api.spiral.ai/mcp" } } } - Sign in
In the Antigravity App, open Customizations › Installed. Under MCP Servers, click Authenticate next to Spiral. Sign in to Spiral, pick the organization and click Authorize. Copy the authorization code the browser shows, paste it into Enter authorization code and click Submit. No API key.
Use the Spiral skill
- Send Google Antigravity this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- 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
- Create an API key
In the console, under API keys.
- Run USDA foods ranked by nutrient
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/search_foods_by_nutrient", "input": { "nutrient_id": 1 } }'
Then paste one of the prompts above: Google Antigravity finds USDA foods ranked by nutrient on Spiral, shows the price and runs it.
USDA foods ranked by nutrient providers and prices
Spiral runs USDA foods ranked by nutrient through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask Google Antigravity for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Nutrient ID | a number from 1 | FoodData Central nutrient id (from | |
| Page | 1 to 100000 | 1 | page |
| Page size | 1 to 100 | 25 | page_size |
| Sort direction | asc or desc | desc | Order by nutrient value; the portal's default is descending (richest first). |
Every API field of USDA FoodData Central (fdc.nal.usda.gov) · Search foods by nutrient is on its tool page: open its card above.
What can you do with USDA foods ranked by nutrient in Google Antigravity?
Build a food comparison feature with USDA records, nutrient definitions, categories, and nutrient rankings. A coding agent can turn those responses into labeled tables and searchable views in your project.
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.
More on USDA foods ranked by nutrient and Google Antigravity
USDA foods ranked by nutrient in other agents
Questions about USDA foods ranked by nutrient in Google Antigravity
Can Google Antigravity use USDA foods ranked by nutrient?
Yes. Add Spiral to Google Antigravity as an MCP server, and Google Antigravity can find and run USDA foods ranked by nutrient like any built-in tool.
How much does USDA foods ranked by nutrient cost in Google Antigravity?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Google Antigravity plan is separate.
Do I need an Alexandria account to use USDA foods ranked by nutrient in Google Antigravity?
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 Google Antigravity?
About two minutes: open the MCP config, then add the server, then sign in.
Does Google Antigravity wait while USDA foods ranked by nutrient runs?
USDA foods ranked by nutrient runs in the background. Google Antigravity 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.
Start using USDA foods ranked by nutrient in Google Antigravity
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Google Antigravity:
set up https://spiral.ai/SKILL.md


