Skip to main content
Glama

Open Food Facts Nutrition Barcodes MCP

Get Nutri-Score, Eco-Score, and NOVA ratings

get_ecoscore_nutriscore
Read-onlyIdempotent

Fetch Nutri-Score grade and numeric score, Eco-Score environmental rating, NOVA processing group, and packaging information for a barcode.

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": {
      "barcode": "<barcode>"
    },
    "name": "get_ecoscore_nutriscore"
  }
}

Input Schema

NameRequiredDescriptionDefault
barcodeYesProduct barcode (e.g. "3017620422003").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, openWorldHint=true, and destructiveHint=false, so the safety profile is covered. The description adds value by enumerating which rating systems are computed and returned, which helps the agent decide if this is the right tool. It does not disclose behavior for unknown barcodes, rate limits, or whether scores may be "unknown" for some products.

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

Conciseness5/5

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

A single sentence with zero filler, front-loading the verb and the four returned data categories. Nothing could be removed without losing information.

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 no output schema, the description carries the burden of describing return values, and it does so by naming all four rating families plus packaging info. Only edge behavior for missing/invalid barcodes is unstated, which is a minor gap for a one-parameter read-only lookup.

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 description coverage is 100% and the schema already provides an example barcode and 6–20 character constraint; the description only restates "for a barcode." It adds no format, normalization, or country/prefix semantics beyond the schema, 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 specific verb ("Fetch") plus the exact resources returned: Nutri-Score grade and numeric score, Eco-Score rating, NOVA processing group, and packaging info, scoped to a barcode lookup. This clearly separates it from get_nutrition_facts and check_allergens_and_additives, though it never names a sibling to route against.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance and no mention of alternatives such as get_product_by_barcode or get_nutrition_facts. The barcode scoping implies a lookup use case, but the agent must infer that on its own.

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.