Skip to main content
Glama

Recipe Nutrition Calculator

Look up USDA nutrients for an ingredient

lookup_ingredient_nutrition
Read-onlyIdempotent

Returns USDA FoodData Central nutrient values per 100 g (calories, protein, total fat, saturated fat, carbohydrate, fiber, total sugars, sodium) for a common recipe ingredient, with its FDC id, the USDA household measures (1 cup, 1 tbsp, 1 large, 1 clove) in grams, and optionally the nutrients for an amount such as 1.5 cup or 3 large. 406 ingredients from SR Legacy and Foundation Foods, embedded, no API key. Use it instead of estimating nutrition from memory.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "ingredient": "<ingredient>"
    },
    "name": "lookup_ingredient_nutrition"
  }
}

Input Schema

NameRequiredDescriptionDefault
unitNoUnit for amount: g, oz, lb, kg, cup, tbsp, tsp, fl oz, ml, or "each" for a counted item (uses the USDA medium or large size). Default g.
amountNoOptional amount to compute nutrients for, e.g. 1.5.
ingredientYesIngredient name, e.g. "cheddar cheese", "brown rice", "olive oil", "large egg".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly/idempotent/closed-world, and the description adds real operational context: 406 ingredients, SR Legacy and Foundation Foods source, embedded data with no API key. What is missing is failure behavior — whether lookups are fuzzy, and what happens for an ingredient outside the 406.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the return payload before the usage directive. The nutrient enumeration in the first sentence is somewhat long but earns its place by removing guessing about which fields come back.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, and the description fully compensates by enumerating returned fields (per-100 g macros, FDC id, household measure weights, optional amount-scaled nutrients) as well as data provenance and coverage size. An agent has enough to call it and interpret the response.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so every parameter is already documented, making 3 the baseline. The description adds only modest value by showing amount and unit used together ('1.5 cup or 3 large') and noting that household measures are returned in grams, but no new syntax or constraints beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a precise verb+resource: returns USDA FoodData Central nutrient values per 100 g for a single recipe ingredient, plus FDC id and household measures. The per-ingredient/per-100 g scoping implicitly separates it from recipe-level siblings, but no sibling is named, so an agent must infer the boundary from the name alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives one useful directive — 'Use it instead of estimating nutrition from memory' — which sets a positive trigger. There is no explicit when-not (e.g., whole-recipe calculations vs. single ingredient, what to do for ingredients outside the 406) and no named alternative such as calculate_recipe_nutrition.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.