Skip to main content
Glama

Open Food Facts Nutrition Barcodes MCP

Look up food product by barcode

get_product_by_barcode
Read-onlyIdempotent

Look up an Open Food Facts packaged food product by EAN-13, UPC-A, or EAN-8 barcode, returning product name, brands, categories, ingredients, and grades.

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_product_by_barcode"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, and open-world, so the safety profile is covered. The description adds the data source (Open Food Facts) and the fields returned, which is useful, but it says nothing about not-found behavior, partial records for obscure barcodes, or result caching — the main behavioral risks for an open-world lookup.

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, front-loaded with the action and resource, then the accepted inputs, then the payload. Every clause carries information and there is no filler.

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?

With only one required parameter, full schema coverage, and rich annotations, the remaining burden on the description is to say what comes back — which it does by listing name, brands, categories, ingredients, and grades. That is sufficient for an agent to decide whether to call it or route to get_nutrition_facts instead.

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

Parameters4/5

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

Schema coverage is 100% and includes an example value, so the baseline is met by structured data. The description nonetheless adds value by enumerating the accepted barcode symbologies (EAN-13, UPC-A, EAN-8), which the schema does not state and which tells an agent that a non-numeric or internal SKU will not work.

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+resource ('look up an Open Food Facts packaged food product by ... barcode') and names the accepted identifier formats plus the return fields. It distinguishes itself functionally from the nutrition/score/allergen siblings by being a raw product-record lookup, though it never names a sibling explicitly.

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?

The barcode-based selection condition is strongly implied, and the sibling set makes search_products the obvious alternative when no barcode is available, but the description never says when to prefer this over search_products or what to do when the barcode is unknown. Usage is inferable rather than stated.

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.