Skip to main content
Glama

Check a product by barcode

check_product_by_barcode
Read-onlyIdempotent

Check a product by barcode. Looks the barcode up in Open Food Facts, then Open Beauty Facts, and checks its ingredients.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
barcodeYesEAN-13, EAN-8 or UPC barcode digits.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description usefully adds the sequential lookup chain (Open Food Facts, then Open Beauty Facts) and that ingredients are checked, but omits what happens on a miss, whether results are cached, or any rate/latency expectations.

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 short sentences, front-loaded with the action, and every clause carries information (barcode, lookup sources, ingredient check). The first sentence restates the title verbatim, which is minor redundancy but not wasteful.

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?

No output schema exists, so the description bears some burden for explaining what is returned. It hints that ingredient findings come back, but does not describe the shape of the response (product metadata, ingredient verdicts, not-found handling), leaving a gap for a read tool that returns data.

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 the single barcode parameter is already documented as 'EAN-13, EAN-8 or UPC barcode digits.' The description adds no format, normalization, or validation detail beyond what the schema provides, so the baseline 3 applies.

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?

States a specific verb and resource (check + product by barcode) and names the two lookup sources it consults (Open Food Facts, then Open Beauty Facts) plus the ingredient check. It does not explicitly distinguish itself from siblings like check_ingredients or search_products, so the boundary is inferable but not stated.

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: the agent must have a barcode (EAN-13/EAN-8/UPC) to use this tool. There is no explicit when-to-use versus check_ingredients or search_products, and no exclusion or fallback guidance if the barcode is not found in either database.

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.