Skip to main content
Glama
nutrition-mcp

nutrition-mcp

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
search_foodA

Find foods by name and get their ids. Call this first: the other food tools take ids from it. Spelling variants match (sambar, sambhar), but every word of the query has to match a word of one name, so a dish that is not in the data returns no results, a note saying so and up to 5 close names as suggestions. Check that a result's name or one of its aliases is the food asked for; when no result is, report the dish as missing instead of using a suggestion or another result in its place. Each result has its kind (dish or ingredient), regions, diet and units: the units get_nutrition and compute_meal accept for that food, with the grams in one of each. total counts every match before limit; when it is larger than the results shown, raise limit or narrow with region, diet or kind.

get_nutritionA

Nutrients for an amount of one food, with the grams used, the measure and oil assumptions, glycemic load when the GI is known, and the sources. unit is g (always valid) or a household measure such as katori, piece or tbsp; search_food lists the units each food accepts, and an unknown unit returns them. A nutrient listed in incomplete is a lower bound. A dish's folate, vitamin C and vitamin B12 are totals of its raw ingredients, with no cooking losses applied; raw_ingredient_totals names them. For more than one food, use compute_meal. Values are rounded to 2 decimals, so 0.0 can be a small amount; a value the source does not report is null, never 0.

compute_mealA

Per-item and total nutrients and glycemic load for a meal of 1 to 30 items, each a food id, amount and unit as in get_nutrition. Use this for any total instead of adding numbers yourself. If an item fails, the error names it and no totals are returned. Totals listed in total_incomplete are lower bounds, and glycemic_load_missing names the items the meal's glycemic load leaves out. A dish's folate, vitamin C and vitamin B12 are totals of its raw ingredients, with no cooking losses applied; each item names them in raw_ingredient_totals, and a meal total that includes a dish carries the same caveat. Values are rounded to 2 decimals, so 0.0 can be a small amount; a value the source does not report is null, never 0.

find_foodsA

Rank foods by one nutrient or by glycemic load, per 100 kcal, per 100 g or per serving (dishes only), for questions such as high-protein vegetarian dishes or iron-rich foods. Highest first, except lowest first for kcal, sugars, saturated fat, sodium and glycemic load; order says which. Foods with no value for the ranked nutrient are left out and counted in skipped_missing, and so is a dish with an incomplete value for the ranked nutrient. Per 100 g or per 100 kcal, seasonings, fats and salt can top a ranking though nobody eats 100 g of them; kind="dish" or per="serving" ranks foods eaten as a portion. Values are rounded to 2 decimals, so 0.0 can be a small amount.

compute_targetsA

Estimated daily calorie and protein targets for an adult, from the Mifflin-St Jeor equation with an activity multiplier and a goal adjustment. Use it when asked how much someone should eat in a day. The result shows the formula and the inputs, applies a calorie floor, and is an estimate, not medical advice. Nothing is stored.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
sourcesEvery loaded data source: name, URL, license, version, retrieval date and the attribution its license asks for.

TDQS

A4.2/5.0

Scored across 5 tools

Disambiguation4/5

The tools have largely distinct purposes: search_food resolves names to IDs, get_nutrition handles one food, compute_meal aggregates multiple items, find_foods ranks foods, and compute_targets estimates daily needs. The only minor overlap is get_nutrition versus compute_meal when a meal has a single item, but the descriptions clarify the intended boundary.

Naming Consistency4/5

All names use consistent snake_case with a verb_noun structure, which is readable and predictable. The verbs vary between search/find and get/compute, but the resource nouns make each tool's role clear.

Tool Count5/5

Five tools is well-scoped for a nutrition data server. Each tool covers a distinct operation—lookup, nutrient retrieval, meal aggregation, ranking, and daily targets—without obvious redundancy.

Completeness4/5

The surface covers the core workflows well: finding foods, getting nutrition, computing meals, ranking foods, and estimating targets. Minor gaps exist, such as no explicit ingredient-list tool or comprehensive vitamin/mineral target calculations, but agents can work around these.

Maintenance

ActivityMaintained
ResponsivenessOutdated data