Skip to main content
Glama

Nutrients: proof-backed nutrition data

lookup_barcode

Read-only

Product or supplement for a barcode; market picks a country's recipe. Misses carry contribute.

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": {
      "gtin": "<gtin>"
    },
    "name": "lookup_barcode"
  }
}

Input Schema

NameRequiredDescriptionDefault
gtinYes
marketNoISO country

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / properties / gtin / maxLength
      Removed value: -20
    • removedInput schema / properties / gtin / minLength
      Removed value: -6
    • changedInput schema / properties / market / description
      Previous value: -"ISO 3166-1 country where the item is sold or eaten, e.g. US, GB, JP."New value: +"ISO country"
    • removedInput schema / properties / market / maxLength
      Removed value: -2
    • removedInput schema / properties / market / minLength
      Removed value: -2
  2. First observed

TDQS

C2.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds real context that the market parameter selects a country-specific formulation, but "Misses carry contribute" is too cryptic to tell whether a failed lookup is merely reported or has a side effect that would sit awkwardly with readOnlyHint=true.

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

Conciseness3/5

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

It is short and front-loads the core resource, which is good. However, the two fragments are so compressed that the second one ("Misses carry contribute") is not parsable without guesswork, so brevity costs clarity rather than earning it.

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

Completeness2/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 should say what a hit and especially a miss look like, and it doesn't. For a two-parameter lookup whose miss behavior is explicitly called out as unusual, the definition leaves the agent unsure how to interpret an empty result.

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 coverage is 50%: the market parameter is documented only as "ISO country" while gtin has no schema description at all. The description partially compensates by mapping gtin to "a barcode" and explaining that market chooses the country's recipe, but it gives no format guidance (GTIN length, ISO code style) for either parameter.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Product or supplement for a barcode" identifies the returned resource and the key input, so the gist (look up a GTIN, get product/supplement data) is recoverable. But it is a noun-phrase fragment with no explicit verb, and it draws no boundary against lookups offered by siblings such as label, nutrition, or compare.

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 statement of when to prefer this lookup over the other resolution/lookup tools in the catalog. "Market picks a country's recipe" hints at the market selector's effect but gives no conditions, prerequisites, or alternatives.

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