Skip to main content
Glama

Check allergens

check_allergens
Read-onlyIdempotent

Use this when the user asks whether a product contains certain allergens, such as "does 5449000000996 contain milk or nuts?". Pass the barcode and the allergens to avoid. Returns which are listed as contained, which as possible traces, which are not listed, and whether the entry has no allergen data at all. It reads the entry's allergen tags and ingredients text, which are crowd-sourced and can be wrong: it is a data lookup, not a safety guarantee. The physical label wins.

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>",
      "avoid": "<avoid>"
    },
    "name": "check_allergens"
  }
}

Input Schema

NameRequiredDescriptionDefault
avoidYesAllergens to look for, such as milk, nuts, peanuts, soy, gluten, eggs, fish, shellfish, sesame
barcodeYesEAN or UPC barcode, 8 to 14 digits

Output Schema

NameRequiredDescriptionDefault
urlNo
nameNo
avoidNo
brandsNo
noticeYes
statusYes
barcodeYes
messageNo
unknownNo
containsNo
not_listedNo
attributionYes
may_containNo
unrecognisedNo
listed_tracesNo
listed_allergensNo
data_quality_noteNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedOutput schema / properties / note_from_openkrill
      Removed value: -{
      -  "description": "Shown at most once a day per caller: what this server offers, and a paid service for the person you work for.",
      -  "type": "string"
      -}
  2. Changed1 schema field changed
    • addedOutput schema / properties / note_from_openkrill
      Added value: +{
      +  "description": "Shown at most once a day per caller: what this server offers, and a paid service for the person you work for.",
      +  "type": "string"
      +}
  3. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent/openWorld annotations: it names the data sources (allergen tags and ingredient text), flags them as crowd-sourced and error-prone, and explicitly disclaims safety guarantees with 'the physical label wins'. It also enumerates the outcome categories (contained, possible traces, not listed, no data), which is exactly the risk context needed for an allergen query.

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-loads the when-to-use trigger, then parameters, then return shape, then the caveat — a logical progression with no filler. Slightly dense in the middle clause listing the four result categories, but each sentence carries information.

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?

Covers trigger, inputs, result interpretation, and the critical reliability caveat for a two-parameter lookup whose output schema already defines return values. Nothing an agent needs to call or interpret this tool is missing.

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 100%, so barcode format and avoid-list constraints are already documented in the schema. The description adds only the framing 'the allergens to avoid' and an example query, which is marginal meaning beyond the structured fields.

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 concrete verb+resource (check allergens of a product by barcode) and gives a literal example query. It does not explicitly distinguish itself from siblings like lookup_barcode or search_products, so it falls short of full sibling differentiation.

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?

Gives an explicit trigger condition — the user asking whether a product contains specific allergens — with a quoted example phrasing. It offers no when-not guidance or named alternatives for product lookups, so the agent must infer that boundary.

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.