Skip to main content
Glama

Yuki Yaki Indonesia & Japan Utilities

food_barcode

Read-only

Look up a packaged food product by barcode (EAN/UPC) in Open Food Facts: name, brand, quantity, ingredients, allergens, Nutri-Score, NOVA group, key nutrients per 100 g and whether the database carries a halal label tag. Returns 404 (not charged) if the product is unknown. Price $0.005 USDC per call (x402, Base).

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": {
      "code": "<code>"
    },
    "name": "food_barcode"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesBarcode digits (8 to 14)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint; the description goes well beyond them by disclosing the 404 behavior and that a miss is not billed, the $0.005 USDC per-call price, and the x402/Base payment rail. Those are exactly the operational facts an agent needs before spending money on a 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?

Front-loaded with the action and resource, then the return payload, then the cost/error caveats — a sensible order with no filler. The field enumeration is a long run-on inside one sentence, which slightly hurts scannability, but every clause carries information the agent would otherwise lack.

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

Completeness5/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 compensates by listing the returned fields (name, brand, quantity, ingredients, allergens, Nutri-Score, NOVA, nutrients per 100 g, halal tag). Cost, error semantics, and data source are all covered, leaving nothing material missing for a single-parameter lookup.

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% ("Barcode digits (8 to 14)"), so the schema already carries the constraint. The description adds only the EAN/UPC naming, which mildly clarifies accepted symbologies but gives no format examples or normalization rules. Baseline 3 applies when the schema does the heavy lifting.

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 product by barcode") plus the identifier format (EAN/UPC) and the backing source (Open Food Facts). It then enumerates exactly what the result contains, so an agent knows both the action and the payload without opening the schema.

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?

The barcode requirement makes the usage context explicit: this is for packaged products with a scannable code, not free-text food queries. There is no explicit when-not guidance or named alternative, but the cited siblings (holidays, prayer times, terbilang, romaji) are unrelated domains, so the marginal value of an exclusion sentence is low.

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.