Skip to main content
Glama

Food product and barcode lookup

product_lookup
Read-only

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. A record with no nutrition or ingredients says so (completeness: sparse). 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. Changed1 schema field changed
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
  2. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations only say readOnlyHint=true, so the description had room to add value and does: it discloses the data source and corpus size (Open Food Facts, 3M+ products), the per-call cost ($0.001), and an explicit data-quality signal ('A record with no nutrition or ingredients says so (completeness: sparse)'). That sparse-completeness disclosure is genuinely useful behavioral context no structured field carries; only auth/rate-limit behavior is left unstated.

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?

Two sentences, front-loaded with the core action and identifiers, then the return fields, the sparse-data caveat and the cost. The field enumeration earns its place because there is no output schema; wording is dense but not padded.

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 return-shape duty and does so by naming the returned fields and the sparse-data case, and it adds cost. The remaining gap is result cardinality: a name query plausibly returns multiple matches, and the description never says whether one product or a list comes back.

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 both parameters are already documented with examples in the schema, so the baseline is 3. The description restates the two lookup keys and adds EAN/UPC framing, but does not clarify precedence when both query and barcode are supplied, nor that neither parameter is required.

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 (look up), a specific resource (packaged food or drink) and both accepted identifiers (EAN/UPC barcode or name), plus names the underlying database. An agent can tell instantly that this is a consumer food-product lookup and not an address/DNS/asset lookup, which is what the visible siblings are.

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 scope statement ('packaged food or drink') implicitly bounds when to use it, and both entry modes are named, but there is no explicit when-to-use/when-not guidance, no note on which identifier to prefer, and no alternatives referenced. Adequate context, but the routing decision is left to inference.

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