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

Hermes · Industry Data

How to Use Canadian Nutrient File food details in Hermes

Get a food's nutrient profile and serving measures from Health Canada's online CNF. Use it to check a specific food or calculate nutrients for a reported portion after finding its food code.

Prompts to try with Canadian Nutrient File food details in Hermes

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

Every Monday, use Canadian Nutrient File food details for food code 61 to prepare a milk nutrient reference for our weekly menu review, including serving measures.

Canadian Nutrient File food detailsHermes
Try asking
  • Every Monday at 9am: use Canadian Nutrient File food details to look this up and give me the result as a table.

  • Pull the latest numbers from Canadian Nutrient File food details and tell me what changed since last week.

  • Check Canadian Nutrient File food details and summarize what you find in three bullet points.

  • Pull the newest data from Canadian Nutrient File food details and give me the result as a table.

How to set up Canadian Nutrient File food details in Hermes

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

Use the Spiral skill

  1. Send Hermes 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 and sign in

    Hermes opens your browser: sign in to Spiral and click Authorize. No API key. When Hermes asks Enable all tools? \[Y/n/select], answer Y: n cancels without saving the server, and select hides the tools you leave out.

    hermes mcp add spiral \
      --url https://api.spiral.ai/mcp \
      --auth oauth \
      --connect-timeout 300
  2. Check it

    In a chat that was already open, run /reload-mcp.

    hermes mcp list
    hermes mcp test spiral

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 Canadian Nutrient File food details

    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": "food-nutrition-canada-ca/foods/get_food",
        "input": {
          "url": "<url>"
        }
      }'

Then paste one of the prompts above: Hermes finds Canadian Nutrient File food details on Spiral, shows the price and runs it.

Canadian Nutrient File food details providers and prices

Spiral runs Canadian Nutrient File food details through Alexandria. Open a card for today's price, with every fee included.

AlexandriaIndustry Data

Settings you can ask for

Ask Hermes for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Langen or fren

Language of the description, nutrient names, measure, refuse, yield and source texts.

Food code1 to 99999999

CNF food code (e.g. 61 Milk, fluid, partly skimmed, 2% M.F.; 119 Cheese, cheddar). Give this or url.

Every API field of Canadian Nutrient File, Health Canada (food-nutrition.canada.ca) · Get food is on its tool page: open its card above.

What can you do with Canadian Nutrient File food details in Hermes?

Prepare recurring menu and editorial reference tables from the CNF's 2015 food composition data. A scheduled agent can organize categories, check nutrient definitions, and assemble portion-aware comparisons for each planned topic.

Build a recipe substitution reference

Find descriptions matching lentils, beans, and chickpeas, organize them by CNF food category, resolve protein and fiber definitions, rank candidates, and inspect portions before proposing ingredient substitutions.

Compare cafeteria menu ingredients

Organize candidate ingredients by food category, match their preparation descriptions, identify sodium and protein units, and compare ranked foods with their detailed serving profiles.

Create a food composition classroom exercise

Let students choose a CNF category and nutrient, find familiar foods, examine the ranking, and compare the reported portions with complete food profiles. Include the edition and nutrient units in the worksheet.

Screen ingredients for a product concept

Build a category-based shortlist for a soup or snack concept, resolve the nutrients of interest, rank candidate foods, and review matching descriptions and portion values. Use the results as reference estimates during concept work.

Check ingredient matches in recipe data

Match recipe ingredients to CNF descriptions and food codes, then inspect nutrient profiles for the chosen preparation. Review ambiguous matches before calculating recipe totals.

Explain nutrient units in food comparisons

Look up nutrient definitions and units, then use detailed food profiles to explain exactly which component a comparison measures.

Draft a public food comparison article

Find the food descriptions used in an article, check nutrient definitions, and inspect ranked results and detailed profiles before writing comparisons.

Questions about Canadian Nutrient File food details in Hermes

Can Hermes use Canadian Nutrient File food details?

Yes. Add Spiral to Hermes as an MCP server, and Hermes can find and run Canadian Nutrient File food details like any built-in tool.

How much does Canadian Nutrient File food details cost in Hermes?

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

Do I need an Alexandria account to use Canadian Nutrient File food details in Hermes?

No. Spiral runs Canadian Nutrient File food details on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up Canadian Nutrient File food details in Hermes?

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

Does Hermes wait while Canadian Nutrient File food details runs?

Canadian Nutrient File food details runs in the background. Hermes starts the run, checks on it and gives you the json when it's ready.

Does the online CNF contain the latest Canadian nutrient dataset?

The online CNF still serves the 2015 edition, and Health Canada says those pages will not be updated. The 2026 dataset is available separately, so an online lookup does not establish a food's current formulation.

How much food and nutrient coverage does the online edition have?

The 2015 CNF contains 5,690 foods with up to 152 food components. Coverage varies by food and nutrient; an unavailable nutrient value is not a measured zero.

Where do the Canadian food values come from?

The 2015 CNF incorporates USDA reference data through SR27 for foods corresponding to the Canadian market. Health Canada adjusts values for Canadian fortification and regulatory standards and adds Canadian food data.

Are nutrient amounts based on a serving or on food weight?

The underlying CNF values are recorded per 100 grams of edible food. Food-specific conversion factors translate those values into household measures, so a volume measure needs the weight associated with that food.

Can CNF values replace a packaged product's nutrition label?

CNF values generally represent averages across products, with brand-specific information only where the description identifies it. Health Canada says the generic information is not specific enough to produce a product's Nutrition Facts table.

Get started

Start using Canadian Nutrient File food details in Hermes

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

Paste this into Hermes:

Set up Hermes

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