Docs/Skills/Nutrition Skill

Nutrition Skill

Get Nutrition Facts for a Food by Name

OperationalCredits 2 per callp50 189msFood

Overview

Nutrition works by matching your search term to the best generic food in the USDA FoodData Central SR Legacy database and returning its per-100-gram nutrition panel, layered with derived intelligence the raw USDA data does not carry - calories per gram, the percentage of calories from protein, fat and carbohydrate, and protein per 100 calories. Paid plans unlock the full micronutrient panel (sodium, potassium, cholesterol, the individual fats, minerals and vitamins), the percent Daily Value each nutrient supplies the way a Nutrition Facts label reads, plain-language dietary flags like high protein and low sodium, and can scale the whole panel to any serving weight in grams. Data comes from the public-domain USDA food composition dataset.

The tool

Once your client is connected to the VerveKit server, this appears in its tool list as NutritionSkill. It is read-only and open-world — it fetches and never mutates anything on your side — so most clients call it without asking you to confirm.

Tool call
{
  "name": "NutritionSkill",
  "arguments": {
    "food": "banana"
  }
}

You do not name the tool yourself; the model picks it. Asking about banana in the terms this skill covers is enough for it to reach for NutritionSkill on its own — naming it explicitly also works, and is the way to force the call.

Connecting

One server URL covers every skill in the catalog, including this one. Authorization is OAuth: the client opens a browser once, and there is no key to paste into a config file.

{
  "mcpServers": {
    "vervekit": {
      "url": "https://api.vervekit.com/v1/mcp"
    }
  }
}

Per-client setup — Claude, Cursor, VS Code, ChatGPT — is on the MCP setup page.

Arguments

These are the properties on the tool's inputSchema, so a well-behaved client validates them before the call is made. Premium arguments are accepted on every plan but only take effect on plans that include them.

ArgumentTypeDescription
foodRequiredstringName of the food to look up (e.g. banana, chicken breast, olive oil)
length 1–100
gramsOptionalPremiumnumberServing weight in grams to scale the nutrition panel to. Defaults to a per-100-gram basis.
range 1–10000

What the model gets back

The result carries a structuredContent object matching the tool's declared outputSchema, so a client reads fields without parsing prose. status is "ok" and error is null on success; a null field means the value was not available for that input, not that the call failed.

Result
{
  "status": "ok",
  "error": null,
  "data": {
    "food": "Bananas, raw",
    "fdcId": 173944,
    "category": "Fruits and Fruit Juices",
    "basis": "per 100g",
    "servingSizes": [
      {
        "label": "1 NLEA serving",
        "grams": 126
      },
      {
        "label": "1 extra large (9\" or longer)",
        "grams": 152
      },
      {
        "label": "1 large (8\" to 8-7/8\" long)",
        "grams": 136
      }
    ],
    "nutrition": {
      "calories": 89,
      "protein": 1.09,
      "totalFat": 0.33,
      "carbohydrates": 22.8,
      "fiber": 2.6,
      "sugars": 12.2
    },
    "micronutrients": {
      "sodium": 1,
      "potassium": 358,
      "cholesterol": 0,
      "saturatedFat": 0.112,
      "transFat": 0,
      "monounsaturatedFat": 0.032,
      "polyunsaturatedFat": 0.073,
      "calcium": 5,
      "iron": 0.26,
      "magnesium": 27,
      "phosphorus": 22,
      "zinc": 0.15,
      "vitaminC": 8.7,
      "vitaminA": 3,
      "vitaminD": 0,
      "vitaminE": 0.1,
      "vitaminK": 0.5,
      "thiamin": 0.031,
      "riboflavin": 0.073,
      "niacin": 0.665,
      "vitaminB6": 0.367,
      "folate": 20,
      "vitaminB12": 0,
      "water": 74.9
    },
    "analytics": {
      "caloriesPerGram": 0.89,
      "proteinCaloriePercent": 4.4,
      "fatCaloriePercent": 3,
      "carbCaloriePercent": 92.6,
      "proteinPer100Calories": 1.22
    },
    "dailyValues": {
      "protein": 2.2,
      "totalFat": 0.4,
      "saturatedFat": 0.6,
      "cholesterol": 0,
      "sodium": 0,
      "carbohydrates": 8.3,
      "fiber": 9.3,
      "potassium": 7.6,
      "calcium": 0.4,
      "iron": 1.4,
      "magnesium": 6.4,
      "phosphorus": 1.8,
      "zinc": 1.4,
      "vitaminC": 9.7,
      "vitaminA": 0.3,
      "vitaminD": 0,
      "vitaminE": 0.7,
      "vitaminK": 0.4,
      "thiamin": 2.6,
      "riboflavin": 5.6,
      "niacin": 4.2,
      "vitaminB6": 21.6,
      "folate": 5,
      "vitaminB12": 0
    },
    "dietaryFlags": {
      "highProtein": false,
      "goodSourceOfProtein": false,
      "highFiber": false,
      "goodSourceOfFiber": false,
      "lowSodium": true,
      "lowFat": true,
      "lowSaturatedFat": true,
      "lowCholesterol": true,
      "lowCalorie": false
    }
  }
}

Response fields

Paths are relative to data. Premium fields are absent rather than zeroed on plans that do not include them, so check for presence instead of comparing to 0.

FieldTypeExampleDescription
foodstringBananas, rawMatched food name from the USDA database
fdcIdnumber173944USDA FoodData Central unique identifier for the food
categorystringFruits and Fruit JuicesUSDA food category the item belongs to
basisstringper 100gBasis the nutrition values are reported on (per 100g, or the requested serving)
servingSizesarray[3]Common household serving sizes reported for the food
servingSizes.0.labelstring1 NLEA servingDescription of the serving size (e.g. 1 cup, sliced)
servingSizes.0.gramsnumber126Weight of the serving in grams
nutritionobject{…}Headline calories and macronutrients
nutrition.caloriesnumber89Energy in kilocalories
nutrition.proteinnumber1.09Protein in grams
nutrition.totalFatnumber0.33Total fat in grams
nutrition.carbohydratesnumber22.8Total carbohydrates in grams
nutrition.fibernumber2.6Dietary fiber in grams
nutrition.sugarsnumber12.2Total sugars in grams
micronutrientsobject{…}Full micronutrient panel
micronutrients.sodiumPremiumnumber1Sodium in milligrams
micronutrients.potassiumPremiumnumber358Potassium in milligrams
micronutrients.cholesterolPremiumnumber0Cholesterol in milligrams
micronutrients.saturatedFatPremiumnumber0.112Saturated fat in grams
micronutrients.transFatPremiumnumber0Trans fat in grams
micronutrients.monounsaturatedFatPremiumnumber0.032Monounsaturated fat in grams
micronutrients.polyunsaturatedFatPremiumnumber0.073Polyunsaturated fat in grams
micronutrients.calciumPremiumnumber5Calcium in milligrams
micronutrients.ironPremiumnumber0.26Iron in milligrams
micronutrients.magnesiumPremiumnumber27Magnesium in milligrams
micronutrients.phosphorusPremiumnumber22Phosphorus in milligrams
micronutrients.zincPremiumnumber0.15Zinc in milligrams
micronutrients.vitaminCPremiumnumber8.7Vitamin C in milligrams
micronutrients.vitaminAPremiumnumber3Vitamin A in micrograms
micronutrients.vitaminDPremiumnumber0Vitamin D in micrograms
micronutrients.vitaminEPremiumnumber0.1Vitamin E in milligrams
micronutrients.vitaminKPremiumnumber0.5Vitamin K in micrograms
micronutrients.thiaminPremiumnumber0.031Thiamin (B1) in milligrams
micronutrients.riboflavinPremiumnumber0.073Riboflavin (B2) in milligrams
micronutrients.niacinPremiumnumber0.665Niacin (B3) in milligrams
micronutrients.vitaminB6Premiumnumber0.367Vitamin B6 in milligrams
micronutrients.folatePremiumnumber20Folate in micrograms
micronutrients.vitaminB12Premiumnumber0Vitamin B12 in micrograms
micronutrients.waterPremiumnumber74.9Water content in grams
analyticsobject{…}Derived nutrition intelligence
analytics.caloriesPerGramPremiumnumber0.89Energy density in calories per gram
analytics.proteinCaloriePercentPremiumnumber4.4Share of calories from protein (percent)
analytics.fatCaloriePercentPremiumnumber3Share of calories from fat (percent)
analytics.carbCaloriePercentPremiumnumber92.6Share of calories from carbohydrate (percent)
analytics.proteinPer100CaloriesPremiumnumber1.22Grams of protein per 100 calories
dailyValuesobject{…}Percent of the FDA Daily Value each nutrient supplies on the reported basis
dailyValues.proteinPremiumnumber2.2Protein as a percent of the Daily Value
dailyValues.totalFatPremiumnumber0.4Total fat as a percent of the Daily Value
dailyValues.saturatedFatPremiumnumber0.6Saturated fat as a percent of the Daily Value
dailyValues.cholesterolPremiumnumber0Cholesterol as a percent of the Daily Value
dailyValues.sodiumPremiumnumber0Sodium as a percent of the Daily Value
dailyValues.carbohydratesPremiumnumber8.3Total carbohydrates as a percent of the Daily Value
dailyValues.fiberPremiumnumber9.3Dietary fiber as a percent of the Daily Value
dailyValues.potassiumPremiumnumber7.6Potassium as a percent of the Daily Value
dailyValues.calciumPremiumnumber0.4Calcium as a percent of the Daily Value
dailyValues.ironPremiumnumber1.4Iron as a percent of the Daily Value
dailyValues.magnesiumPremiumnumber6.4Magnesium as a percent of the Daily Value
dailyValues.phosphorusPremiumnumber1.8Phosphorus as a percent of the Daily Value
dailyValues.zincPremiumnumber1.4Zinc as a percent of the Daily Value
dailyValues.vitaminCPremiumnumber9.7Vitamin C as a percent of the Daily Value
dailyValues.vitaminAPremiumnumber0.3Vitamin A as a percent of the Daily Value
dailyValues.vitaminDPremiumnumber0Vitamin D as a percent of the Daily Value
dailyValues.vitaminEPremiumnumber0.7Vitamin E as a percent of the Daily Value
dailyValues.vitaminKPremiumnumber0.4Vitamin K as a percent of the Daily Value
dailyValues.thiaminPremiumnumber2.6Thiamin (B1) as a percent of the Daily Value
dailyValues.riboflavinPremiumnumber5.6Riboflavin (B2) as a percent of the Daily Value
dailyValues.niacinPremiumnumber4.2Niacin (B3) as a percent of the Daily Value
dailyValues.vitaminB6Premiumnumber21.6Vitamin B6 as a percent of the Daily Value
dailyValues.folatePremiumnumber5Folate as a percent of the Daily Value
dailyValues.vitaminB12Premiumnumber0Vitamin B12 as a percent of the Daily Value
dietaryFlagsobject{…}Plain-language dietary attributes derived from FDA nutrient-content-claim thresholds
dietaryFlags.highProteinPremiumbooleanfalseTrue when protein is at least 20% of the Daily Value per 100g
dietaryFlags.goodSourceOfProteinPremiumbooleanfalseTrue when protein is 10-19% of the Daily Value per 100g
dietaryFlags.highFiberPremiumbooleanfalseTrue when fiber is at least 20% of the Daily Value per 100g
dietaryFlags.goodSourceOfFiberPremiumbooleanfalseTrue when fiber is 10-19% of the Daily Value per 100g
dietaryFlags.lowSodiumPremiumbooleantrueTrue when sodium is 140mg or less per 100g
dietaryFlags.lowFatPremiumbooleantrueTrue when total fat is 3g or less per 100g
dietaryFlags.lowSaturatedFatPremiumbooleantrueTrue when saturated fat is 1g or less per 100g
dietaryFlags.lowCholesterolPremiumbooleantrueTrue when cholesterol is 20mg or less per 100g
dietaryFlags.lowCaloriePremiumbooleanfalseTrue when energy is 40 kcal or less per 100g

Failure modes

Errors come back as tool errors carrying a sentence the model can act on, not a bare status code. Error handling covers the full list.

StatusWhat it means
400 / 422The arguments did not validate. The message names the offending one.
401The OAuth session is invalid or expired — reconnect the server.
403Blocked by a key restriction or an IP allow-list. Never a bad identity.
404This skill is not part of VerveKit. Check the catalog.
429Out of credits, or a brief rate limit. The message tells them apart.

A call costs 2 credits each time the tool actually runs; a model that reasons about the tool without calling it costs nothing.

Other ways to use Nutrition Skill

Set up Nutrition Skill on VerveKit, or reach the same source a different way. Your VerveKit account and credits work on all of them — one key, one balance.

Call it as a REST APIOne HTTPS endpoint and an x-api-key header, with SDKs for Node, Python and .NET.APIVerveReference →
Google Sheets or ExcelA =VERVE() formula fills a column — no script, no export, recalculates in place.VerveSheetsReference →
Ground an agent on itA cited, machine-checkable fact your model can't produce on its own.VerveContextReference →

More in Food:

Was this page helpful?