Skip to main content
Glama

chewy_gtin_lookup

Read-only

Resolves a batch of up to 20 GTIN/UPC barcodes to their Chewy part numbers in one call. gtins is a comma-separated list of barcodes, e.g. "192268541316". An unrecognized barcode is omitted from part_numbers and listed in not_found rather than failing the whole call. The resolved part_numbers values feed directly into chewy_product/chewy_products.

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": {
      "gtins": "<gtins>"
    },
    "name": "chewy_gtin_lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
gtinsYesRequired. Comma-separated GTIN/UPC barcodes, up to 20 per request, e.g. 192268541316. Resolves to the same part_number value chewy_products/chewy_product accept.

Output Schema

NameRequiredDescriptionDefault
dataYesThe tool result payload (shape varies per tool; see each tool's docs resource).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already establish readOnlyHint=true and openWorldHint=true, so the description is not responsible for the safety profile. It adds genuinely new behavior: the 20-item batch cap and the partial-failure contract that unrecognized barcodes are omitted from part_numbers and surfaced in not_found rather than aborting the call, which is the key thing an agent needs to handle results correctly.

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 front-loaded sentences: purpose and batch limit first, then failure semantics, then the downstream hand-off. There is minor duplication of the comma-separated format and example that already appear in the schema, but no filler or hedging.

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?

An output schema exists, so return values need not be re-explained, and the description focuses on the one thing the schema cannot convey: how partial misses are reported. For a single-parameter, annotation-covered lookup tool, nothing an agent needs to call it or interpret results 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 description coverage is 100% and the single parameter already documents the comma-separated format, the 20-item limit and an example, so the schema carries the semantics. The description largely restates that (comma-separated list, example barcode) rather than adding conventions the schema lacks, which is the baseline case.

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

Purpose5/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: resolving a batch of GTIN/UPC barcodes to Chewy part numbers, and states a hard scope (up to 20 per call). It also names the downstream siblings chewy_product/chewy_products, so an agent can distinguish this identifier-resolution step from the product-fetch tools without opening another schema.

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?

It gives a clear condition for use: batch barcode-to-part-number resolution before calling the product tools, with the explicit note that resolved values feed directly into chewy_product/chewy_products. It does not state what to do when only a name or keyword is available (presumably chewy_search), so it stops short of full when/when-not coverage.

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.