[Integrations](https://spiral.ai/integrations) › [Amp](https://spiral.ai/integrations/amp) › [AFCD nutrient definitions](https://spiral.ai/integrations/amp/afcd-nutrient-definitions)

# How to Use AFCD nutrient definitions in Amp

Returns AFCD's nutrient catalog and definitions. Use it to check what a nutrient means and which units apply before comparing foods.

|  |  |
| --- | --- |
| Model | AFCD nutrient definitions |
| Available through | Alexandria |
| Category | Industry Data |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with AFCD nutrient definitions in Amp

- Use AFCD nutrient definitions to add explanations and units for iron, sodium, and dietary fiber to the comparison view.
- Use AFCD nutrient definitions to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from AFCD nutrient definitions and tell me what changed since last week.
- Check AFCD nutrient definitions and summarize what you find in three bullet points.
- Pull the newest data from AFCD nutrient definitions and give me the result as a table.

## How to set up AFCD nutrient definitions in Amp

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

### Use Spiral's MCP server

1. **Add the server**: No header and no client ID or secret: Amp registers itself with Spiral.

```bash
amp mcp add spiral https://api.spiral.ai/mcp
```

2. **Sign in**: Start `amp`. Amp opens Spiral's sign-in page in your browser: sign in, pick the organization and click Authorize. No API key.

3. **Check it**

```bash
amp mcp doctor
```

### Use the Spiral skill

1. **Send Amp 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.

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

### Call the Spiral API

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

2. **Run AFCD nutrient definitions**: 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": "afcd-foodstandards-gov-au/foods/list_nutrients",
    "input": {
      "query": "<query>"
    }
  }'
```

Then paste one of the prompts above: Amp finds AFCD nutrient definitions on Spiral, shows the price and runs it.

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

## AFCD nutrient definitions tools and prices

- [Australian Food Composition Database (AFCD, FSANZ) · List nutrients](https://spiral.ai/tools/alexandria/afcd-foodstandards-gov-au/foods/list_nutrients) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| query |  | — | Case-insensitive substring matched against nutrient code and name (e.g. 'iron', 'FE', 'vitamin'). |
| category_id |  | — | Restrict to one category: PRO (Proximates), OA (Organic acids), MNS (Minerals), VIT (Vitamins), FA (Fatty acids), AA (Amino acids) or OTHER. |

## What can you do with AFCD nutrient definitions in Amp?

Build an Australian food reference browser with category navigation, nutrient explanations, and food comparisons. A coding agent can use AFCD descriptions and Public Food Keys to connect search results to the correct detail records.

### Compare breakfast cereals

Identify the ready-to-eat cereal category, list its foods, and resolve named cereals. Check nutrient definitions, rank the entries by iron, and inspect the selected food profiles and sampling notes.

### Build a cheese reformulation reference

Find AFCD's cheese categories and enumerate the reference foods. Match named cheese types, check sodium definitions and units, then compare sodium values and inspect the underlying profiles.

### Create an Australian food reference browser

Use the category hierarchy and category inventories for navigation, food search for lookup, nutrient definitions for explanations, nutrient comparisons for sorting, and individual profiles for the detail view.

### Explain nutrient terminology with food examples

Build an explanation of AFCD nutrient terms using the definitions, foods with reported values, and selected full profiles. Keep each nutrient's units visible alongside the examples.

### Review changes to a food reference collection

Periodically compare retrieved categories, food inventories, nutrient definitions, rankings, and selected profiles with earlier observations. Produce a review queue when AFCD descriptions or values change.

### Compare food preparation descriptions

Find raw and cooked food entries, examine their descriptions, and compare selected nutrients using the documented definitions. Keep preparation differences explicit when presenting the results.

## Overview

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

## AFCD nutrient definitions in other agents

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

## More Amp guides

- [AFCD foods in a category](https://spiral.ai/integrations/amp/afcd-foods-in-a-category)
- [AUC current applications](https://spiral.ai/integrations/amp/auc-current-applications)
- [AFCD foods by nutrient](https://spiral.ai/integrations/amp/afcd-foods-by-nutrient)
- [AUC decision and notice text](https://spiral.ai/integrations/amp/auc-decision-and-notice-text)
- [AFCD food search](https://spiral.ai/integrations/amp/afcd-food-search)
- [AUC decision and website search](https://spiral.ai/integrations/amp/auc-decision-and-website-search)

## Questions about AFCD nutrient definitions in Amp

**Can Amp use AFCD nutrient definitions?**

Yes. Add Spiral to Amp as an MCP server, and Amp can find and run AFCD nutrient definitions like any built-in tool.

**How much does AFCD nutrient definitions cost in Amp?**

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

**Do I need an Alexandria account to use AFCD nutrient definitions in Amp?**

No. Spiral runs AFCD nutrient definitions on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up AFCD nutrient definitions in Amp?**

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

**Does Amp wait while AFCD nutrient definitions runs?**

AFCD nutrient definitions runs in the background. Amp starts the run, checks on it and gives you the json when it's ready.

**Which foods does AFCD cover?**

AFCD covers 1,588 foods commonly available in Australia. Its coverage is a reference selection of Australian foods, rather than a complete inventory of products sold worldwide.

**How many nutrients can AFCD describe?**

AFCD reports up to 268 nutrients per food. The nutrient documentation explains the units, derivation, assumptions, and limitations used for those components.

**What changed in the latest AFCD dataset?**

Release 3 incorporated new analytical data for 118 foods and an updated vitamin D dataset. That update describes the dataset as a whole; individual sampling notes provide the evidence behind a particular food.

**Are all AFCD values laboratory measurements?**

Laboratory analysis is the primary source, but a food's derivation can also identify calculated, borrowed, or label-based data. Sampling notes can include how many samples were purchased and where and when they were purchased.

**Are nutrient comparisons based on serving size?**

AFCD's nutrient comparison tables report values per 100 g. A ranking therefore compares equal food weights, which can differ substantially from the amounts someone would serve.

