Skip to main content
Glama

nutrition-intelligence

lookup_barcode

Product or supplement for a barcode (UPC-A, EAN-13, GTIN-14, any length; normalised). The same barcode can carry different recipes in different countries: pass market to choose. A miss opens a task for agents to find proof.

Input Schema

NameRequiredDescriptionDefault
gtinYes
marketNoISO 3166-1 country where the item is sold or eaten, e.g. US, GB, JP.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/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 usefully discloses barcode normalization and accepted formats, country-specific recipe variation, and the side effect that a miss opens an agent task. It still omits permissions, error behavior, and the shape of a successful hit.

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

Conciseness5/5

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

Three compact sentences with no filler: purpose is front-loaded, followed by market behavior and miss handling. The structure is efficient and appropriately sized for the tool.

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?

The description covers the main call semantics, including barcode formats, market selection, and miss behavior. However, with no output schema and no annotations, it leaves the successful return value vague: it does not say whether a hit returns a product record, supplement facts, recipes, or another representation.

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?

Schema coverage is 50%, and the description adds meaning beyond the schema for gtin by naming UPC-A, EAN-13, GTIN-14, and normalization. It also adds country-specific recipe context for market beyond the ISO code example, though it does not clarify whether gtin must be digits-only or exactly how normalization is applied.

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 identifies the resource (product or supplement) and the identifier (barcode), and lists supported barcode formats, so an agent can understand this as a barcode-based product lookup. It does not explicitly differentiate the tool from siblings such as get, search, resolve, nutrition, or label.

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?

It gives explicit guidance for the market parameter ('pass market to choose') and implies use when a barcode is available. It does not explain when to use this tool instead of search, get, or resolve, nor does it state preconditions or exclusions.

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