Skip to main content
Glama

Get a product's nutrition

get_nutrition
Read-only

Nutrition per 100g or 100ml and Nutri-Score for one product, from Open Food Facts; many have none. Credit Open Food Facts.

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": {
      "productId": "<productId>"
    },
    "name": "get_nutrition"
  }
}

Input Schema

NameRequiredDescriptionDefault
productIdYesFrom search_grocery_prices

Output Schema

NameRequiredDescriptionDefault
basisYes
foundYes
per100Yes
sourceYes
productIdYes
sourceUrlYes
nutriScoreYes
productUrlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / productId / description
      Previous value: -"A productId returned by search_grocery_prices"New value: +"From search_grocery_prices"
  2. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, non-destructive, and closed-world, so safety is covered. The description still adds real behavioral context the annotations lack: the per-100g/100ml normalization basis, the fact that many products have no nutrition data, and an attribution obligation. Only the return shape is left unexplained, which the output schema covers.

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?

One compact sentence with the substance front-loaded: what is returned, at what basis, for how many products, from where. The phrasing is telegraphic ('many have none'), and while the attribution clause is a real requirement, it could be split for readability.

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?

With an output schema, full parameter documentation, and annotations covering safety and world scope, the description carries the remaining load well: data-coverage caveat and attribution. A note on how to obtain a valid productId would close the only real gap.

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% and the single productId parameter is fully documented in the schema, including its pattern and provenance. The description adds nothing about the parameter, 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?

States a concrete resource and scope: nutrition per 100g/100ml plus Nutri-Score for one product, sourced from Open Food Facts. An agent can tell it is a single-product lookup rather than a search, but the description never names search_grocery_prices as the way to obtain the id (that hint lives only in the schema).

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 only implied: 'for one product' signals a per-item lookup, and the missing-data caveat hints at when results may be unusable. There is no explicit when-to-use or when-not-to-use guidance, and no routing to siblings such as search_grocery_prices or compare_basket.

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.

Resources