Skip to main content
Glama

ScorpTech x402 Tools

Food Barcode

food_barcode
Read-onlyIdempotent

Food product facts by barcode (EAN-13, EAN-8, UPC-A, UPC-E; GTIN check digit validated) from Open Food Facts (ODbL): name, brand, quantity, categories, ingredients text, allergens and traces, additives, Nutri-Score grade, NOVA processing group, Green-Score, nutrients per 100 g (energy, fat, saturates, carbohydrates, sugars, fibre, protein, salt), labels, origin and image URL. Community data: always check the packaging for allergens. Returns JSON with: barcode, name, genericName, brands, quantity, categories, ingredientsText, allergens. Price: $0.01 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/food-barcode

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

Input Schema

NameRequiredDescriptionDefault
langNoPreferred language for names/ingredients, ISO 639-1 (default en)
barcodeYesEAN/UPC barcode digits (alias: code)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, open-world, non-destructive, but the description adds materially: GTIN check-digit validation, community-sourced data reliability warning, a cost of $0.01 USDC per successful call via x402 on Base or Solana, and an equivalent HTTPS endpoint. The billing/auth model and the per-successful-call charging rule are exactly the kind of context annotations cannot convey.

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?

Purpose is front-loaded, followed by returned fields, then caveats and pricing. The enumerated field list is largely repeated in the 'Returns JSON with:' sentence, which is redundant, and the attribute list runs long, but each block still carries useful 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 usefully enumerates the returned fields and the data source/license, and it covers cost and transport. It stops short of describing failure modes (invalid check digit, barcode not found in the database) or rate limits, which matter for an agent deciding whether to retry.

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 the schema already documents both parameters, including the 'code' alias and the ISO 639-1 default for lang. The description reinforces the barcode side by listing accepted symbologies and check-digit validation, but never mentions the lang parameter, so it adds little beyond the schema baseline.

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 ('Food product facts by barcode') plus the exact data source (Open Food Facts, ODbL) and supported symbologies (EAN-13, EAN-8, UPC-A, UPC-E). An agent can immediately distinguish this lookup tool from the sibling barcode_generate, which produces barcodes rather than resolving 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?

Usage is implied: pass a barcode, receive product facts. There is no explicit statement of when to prefer this over alternatives, no handling guidance for unknown/not-found barcodes, and no exclusions. The one advisory ('always check the packaging for allergens') is a data-reliability caveat, not routing guidance.

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