Skip to main content
Glama

x402_openfoodfacts_get_v1_product_code

Retrieve Open Food Facts nutrition data for a product by its barcode, returning ingredients, Nutri-Score and nutrition facts for that specific item.

Instructions

openfoodfacts — Open Food Facts API: product nutrition data by barcode plus full-text product search. [GET /v1/product/{code}] $0.005 USDC on eip155:8453+137+42161+480. Example: /v1/product/3017620422003

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

Input Schema

NameRequiredDescriptionDefault
bodyNoJSON body for POST/PUT/PATCH/DELETE
queryNoQuery parameters, e.g. {base:'USD', quote:'EUR'}
restartNoExplicitly re-run a previously failed/unknown operation. Never set for unknown outcomes unless you know the paid call did not complete.
operationIdNoDurable operation id for this intent. Supply a stable id (e.g. your job/run id) to dedupe retries; omit to derive one from the arguments.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does usefully disclose the cost and payment rails ('$0.005 USDC on eip155:8453+137+42161+480'), which is real added value, but it says nothing about authentication, rate limits, error/failure behavior, or what the response contains for a paid call.

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?

The definition is compact and front-loaded: provider and purpose first, then endpoint, then price, then a concrete example. The only wasted content is the 'plus full-text product search' phrase, which belongs to a different endpoint and slightly misattributes capability.

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

Completeness3/5

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

With no annotations and no output schema, the description needs to carry more of the contract than it does. It covers identity, endpoint, and pricing adequately, but leaves the return payload, failure semantics, and the mechanics of the paid call (retry/restart behavior interacts with the schema's restart and operationId fields undocumented here) unaddressed.

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?

The schema documents the four generic parameters at 100% coverage but never names the barcode/path variable, so the description's '{code}' placeholder and worked example ('/v1/product/3017620422003') add meaning the schema does not carry. It stops short of describing accepted barcode formats or how query parameters shape the response.

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?

The description names a specific verb and resource ('Open Food Facts API: product nutrition data by barcode') and pins it to the concrete endpoint GET /v1/product/{code}. It is clearly distinguishable from a generic API wrapper, though the appended 'plus full-text product search' clause blurs the line with the sibling search tool.

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?

There is no explicit when-to-use or when-not-to-use guidance, and no routing to the sibling x402_openfoodfacts_get_v1_search despite the description itself mentioning full-text search. The only usage signal is implicit: 'by barcode' plus a sample path, which an agent must infer from rather than being told.

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

Deploy Server

Other Tools