Skip to main content
Glama

Look up a barcode

barcode_lookup
Read-onlyIdempotent

Recalls whose official notice lists a barcode (UPC-A, EAN-13, GTIN-14, UPC-E or EAN-8; the check digit must be right). Each match includes the notice's own text and the lot codes, best-by dates and serial numbers written near the barcode. A match means the code appears in a notice; the user must verify lot codes and dates against the official notice. No match does not mean there is no recall: not every recall lists barcodes.

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": "barcode_lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesThe barcode number, digits only or with spaces and dashes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds real value on top: accepted symbologies, the check-digit validation requirement, the exact payload of a match (notice text, lot codes, best-by dates, serial numbers), and the false-negative caveat. Only the response shape or ordering is left undisclosed, which is minor for a read-only lookup.

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?

Three sentences, front-loaded with the core action and followed by result semantics and the critical no-match caveat. Dense but every sentence carries distinct information; only the long parenthetical of symbologies is slightly cluttered.

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

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema and a single parameter, the description carries the burden of explaining returns, and it does so by describing what a match contains. The negative-result semantics are explicitly covered. What is missing is minimal — error behavior for invalid codes and any result ordering or paging.

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% and the single parameter is already documented as 'digits only or with spaces and dashes'. The description adds format context by enumerating UPC-A, EAN-13, GTIN-14, UPC-E and EAN-8 and noting the check digit must be valid, but it does not say what happens on a malformed or bad-checksum input.

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 opens with a specific verb-and-resource pairing: it recalls official notices that list a given barcode. The resource is clearly narrower than the sibling tools (get_recall, search_recalls, vehicle_recalls) because the lookup key is a barcode, but no sibling is named, so differentiation is inferred rather than 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 by the barcode-centric framing, and the definition gives strong interpretive guidance for results ('a match means the code appears in a notice', 'no match does not mean there is no recall'). However, it never says when to prefer this tool over search_recalls or get_recall, nor does it state prerequisites such as having a physical package in hand.

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