Skip to main content
Glama

Openfoodfacts Product

openfoodfacts_product
Read-onlyIdempotent

Product by barcode.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

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

Input Schema

NameRequiredDescriptionDefault
barcodeYes

Output Schema

NameRequiredDescriptionDefault
codeNoProduct barcode
statusNoHTTP status code
productNoProduct details object
status_verboseNoStatus description

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

C2.3/5.0
Behavior2/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so the safety profile is covered by structured data. The description adds nothing beyond that: it doesn't say what happens with an unknown barcode (empty result vs error), whether the response includes full nutrition/ingredient data, or anything about rate limits for this open-world source.

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

Conciseness2/5

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

Three words and a fragment: there's no filler, but the brevity is under-specification rather than discipline. It reads like a title restated, and the key clarifying detail (single-record lookup by exact identifier, numeric format) is missing.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The existing output schema means return values needn't be described, which lowers the bar. Still, for a single-parameter lookup against an open-world dataset with a 0%-documented schema, the description should at minimum state the identifier format and the unknown-barcode behavior; neither is present.

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

Parameters2/5

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

Schema description coverage is 0%, so the description carries the full burden, and "by barcode" only names the parameter's role. It doesn't state the expected format (EAN-13/UPC digits, with or without leading zeros) or whether a check digit is validated; the agent must infer format from the schema's examples alone.

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

Purpose3/5

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

"Product by barcode" names the resource (product) and the lookup key (barcode), which is enough to separate it from siblings like openfoodfacts_category, openfoodfacts_country, and openfoodfacts_search. But it's a sentence fragment with no verb, so an agent has to infer that it fetches a single product record rather than, say, mapping a barcode to a list.

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?

No explicit when-to-use or when-not-to-use guidance. The phrase "by barcode" implicitly signals that this is the exact-identifier lookup as opposed to the keyword-based openfoodfacts_search, but that routing is never stated, and nothing covers prerequisites or fallback behavior.

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.