Skip to main content
Glama

Open Food Facts Nutrition Barcodes MCP

Check food allergens, traces, and additives

check_allergens_and_additives
Read-onlyIdempotent

Screen a packaged food barcode for declared allergens, cross-contamination traces, E-number food additives, and vegan/vegetarian/palm-oil dietary tags.

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": "check_allergens_and_additives"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, openWorld), and the description adds real value by specifying the four content classes the screen surfaces, which is the main thing an agent needs to know about the payload. It stops short of covering lookup-miss behavior or result shape (e.g. what happens for an unknown barcode), which keeps it below the top mark.

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, verb-first, with the qualifying input constraint up front and the output categories packed efficiently. Nothing is redundant with the title and nothing could be cut without losing scope 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 returns and does so by naming the allergen/trace/additive/dietary-tag categories. For a single-barcode read tool that is close to sufficient; only not-found or empty-result behavior is left open.

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?

Only one parameter, and the schema already documents it at 100% coverage including an example value. The description still adds a semantic constraint by framing the input as a packaged-food barcode, which tells the agent this is not for any arbitrary ID.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Screen a packaged food barcode") and enumerates exactly what categories are returned: declared allergens, traces, E-number additives, and vegan/vegetarian/palm-oil tags. That scope cleanly separates it from siblings like get_nutrition_facts and get_ecoscore_nutriscore without needing to name them.

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 data-domain scope implies when to reach for it (allergen/dietary screening of a packaged product), and the word "packaged" implicitly excludes loose or non-barcoded goods. But there is no explicit when-not guidance or routing to siblings such as get_product_by_barcode or get_nutrition_facts, so the agent must infer the boundaries.

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.