Skip to main content
Glama

Calories and macros of a list of ingredients

nutrition_calculate
Read-only

Calories and macros of a list of ingredients. Recipe / meal totals. Search 7,793 generic foods and get calories, protein, fat, carbohydrates, fiber, sugars, vitamins and minerals (36 nutrients) per 100 g or for any amount, with common portion sizes (cup, slice, piece). Calculate totals for a whole recipe or meal in one request.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsYesfood:grams pairs separated by ; (or POST JSON {"items":[{"query":"banana","grams":120}]}) (e.g. eggs:100;oats:50;whole milk:200)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, destructiveHint=false, openWorldHint), so the description correctly focuses on scope: a 7,793-food database, 36 nutrients returned, per-100g or arbitrary amounts, and portion-size units. It stops short of explaining behavior for unmatched foods or partial failures, which would be the remaining valuable detail.

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

Conciseness3/5

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

The first sentence duplicates the title verbatim and the fragment 'Recipe / meal totals.' restates the sentence that follows it, so two of the four sentences are largely redundant. The genuinely informative content (coverage, nutrients, units) is present but not front-loaded.

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

Completeness4/5

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

For a one-parameter, read-only aggregation tool with no output schema, the description adequately conveys what comes back (list of nutrients, totals) and the input units. Only edge-case behavior and any limits on item count are missing.

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?

There is a single parameter and schema description coverage is 100%, with the schema already spelling out the 'food:grams' syntax and JSON alternative. The description adds only indirect context ('per 100 g or for any amount, with common portion sizes'), so the baseline of 3 applies.

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?

The description gives a specific resource (calories and macros for a list of ingredients) and states the operation is aggregation into recipe/meal totals. It is distinguishable from nutrition_search by focusing on summing multiple items rather than lookup, though it never names that sibling, so the differentiation requires inference.

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?

Usage is implied rather than stated: 'Calculate totals for a whole recipe or meal in one request' tells the agent the intended scenario. It does not say when to prefer this over nutrition_search, nor any prerequisites or exclusions.

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.