Skip to main content
Glama

Food product and barcode lookup

product_lookup
Read-only

Look up packaged foods and drinks by barcode or name in Open Food Facts to retrieve brand, ingredients, allergens, Nutri-Score, NOVA level, and nutrition per 100 g.

Instructions

Look up a packaged food or drink by barcode (EAN/UPC) or name in Open Food Facts (3M+ products): brand, ingredients, allergens, Nutri-Score, NOVA processing level and nutrition per 100 g. Costs $0.001 per call.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "product_lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryNoProduct name, e.g. "nutella". Use this or barcode.
barcodeNoEAN-13 / UPC barcode digits.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

The readOnlyHint annotation already signals a safe read, and the description adds real value on top: the backing dataset (Open Food Facts, 3M+ products), the returned facets (allergens, Nutri-Score, NOVA, nutrition per 100 g), and a per-call cost of $0.001. It does not say what happens when a product is not found, which is the main missing behavior.

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-loads the action and resource, then adds source, return fields, and price in descending order of importance. No filler or repetition; the cost note is short and earns its place.

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 usefully enumerates what comes back and discloses the cost, which is enough for an agent to call this confidently. Remaining gaps are minor: neither/both-parameter handling and not-found behavior are unaddressed, though the tool is simple enough that this matters little.

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%, so both the name query with a "nutella" example and the EAN-13/UPC barcode field are already documented in structured form. The description only restates the accepted key types at a coarser level, so it adds little beyond the schema.

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 ("look up a packaged food or drink by barcode (EAN/UPC) or name") plus the data source and the exact fields returned, which cleanly separates it from the DNS/ENS/IP/WHOIS lookup siblings. An agent can tell instantly that this is a food-product lookup, not a network or domain lookup.

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

Usage Guidelines4/5

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

Gives clear context for use by naming the accepted lookup keys (barcode digits or product name) and the domain (packaged food and drink). It stops short of explicit exclusions or of saying what to do when both keys could apply, so it is clear but not complete on selection strategy.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.