Skip to main content
Glama

Look up several barcodes

lookup_barcodes
Read-onlyIdempotent

Find the products for up to 100 barcodes in one call. Duplicates are ignored. Uses one lookup per code that is found; codes that are not found are free. The batch must fit in the remaining allowance: if it has more distinct codes than that, nothing is looked up or charged.

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": {
      "barcodes": "<barcodes>"
    },
    "name": "lookup_barcodes"
  }
}

Input Schema

NameRequiredDescriptionDefault
barcodesYesBarcodes to look up.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations (readOnly, idempotent, openWorld, non-destructive), the description discloses the billing model (charged per found code, not-found codes free), dedupe behavior, and all-or-nothing atomicity when the allowance is exceeded. Those are exactly the operational facts an agent cannot get from the annotations and that affect whether it should call the tool at all.

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 tight sentences, zero filler, with the batch scope front-loaded and the cost/atomicity constraints following. Every clause carries a distinct, decision-relevant fact.

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?

For a one-parameter read tool with full annotation coverage and no output schema, the definition covers scope, limits, and cost. The remaining gap is what the response looks like for codes that are not found (omitted vs. reported), which would help an agent interpret results, but it is not fatal.

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 array parameter is fully documented (items, maxLength, maxItems, minItems), so the schema carries the structural burden. The description only adds the dedupe rule ('duplicates are ignored'), which is genuinely new but narrow, so baseline 3 is right.

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 gives a concrete verb and resource ('Find the products') plus the defining scope of the batch form ('up to 100 barcodes in one call'), which distinguishes it in practice from the single-code lookup_barcode sibling. It stops short of naming that sibling explicitly, so differentiation is implied 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage conditions are clear: batch use for multiple codes, duplicates ignored, and a hard allowance constraint that makes the tool refuse the whole batch rather than partially execute. No explicit when-not or named alternative (e.g. use lookup_barcode for a single code) is provided, which keeps it below a 5.

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