Skip to main content
Glama

getProducts

Read-only

List products. Omit locationRef and categoryRef to list across all locations, or provide one to scope to a location or category. Call getLocations to list locations, or getLocation to fetch one by locationId. Get categoryRef from getShopCategories. Or pass up to 25 product UUIDs in id to get those products.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "getProducts"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoProduct UUIDs to get, up to 25 per request. Comma-separated, one or more UUIDs.
limitNoMaximum number of products per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100.
categoryRefNoUUID of the shop category.
locationRefNoUUID of the location whose products to list. Omit locationRef, categoryRef and id to list products across every location of the network, newest first.
nextPageTokenNoPagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page.

Output Schema

NameRequiredDescriptionDefault
productsYes
nextPageTokenNoPass it back as nextPageToken, with the same filters, to get the next page. Absent on the last page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds real behavioral detail about filter scoping and the 25-UUID batch cap, but says nothing about result ordering, default page size, or pagination flow, which the schema carries instead.

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?

The primary action is front-loaded and each following sentence adds routing or scoping information rather than restating the name. Slightly dense run-on flow across four sentences, but no filler.

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 an output schema present and full parameter documentation, the description only needs to explain selection logic, which it does well. Pagination behavior is the remaining gap, though nextPageToken's schema text partly covers it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3; the description still adds genuine semantics by defining the interaction between locationRef, categoryRef and id and by routing the agent to the tools that produce those reference values. It leaves limit and nextPageToken entirely to the schema, which is acceptable given full coverage.

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?

Opens with a specific verb and resource ('List products') and immediately distinguishes the two operating modes: filtered listing by location/category versus direct fetch by UUID batch. An agent can tell what this tool returns without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Explicitly states the selection rule: omit locationRef and categoryRef for a network-wide list, or supply one to scope. It also names the prerequisite tools for obtaining each reference (getLocations/getLocation for locationRef, getShopCategories for categoryRef) and explains the id path for fetching known products.

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