Skip to main content
Glama

get_retailer_categories

Read-onlyIdempotent

List product categories available for a specific retailer. Use this to discover valid category paths before filtering products by category.

Input Schema

NameRequiredDescriptionDefault
afterNoSigned pagination cursor from the previous response (next_cursor). Omit for the first page.
limitNoMax categories per page (1-500, default 100). Paginate via next_cursor for full lists.
retailer_idYesThe retailer identifier (e.g. "walmart", "target", "homedepot"). Use list_retailers to get valid IDs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / after
      Added value: +{
      +  "description": "Signed pagination cursor from the previous response (next_cursor). Omit for the first page.",
      +  "type": "string"
      +}
    • addedInput schema / properties / limit
      Added value: +{
      +  "default": 100,
      +  "description": "Max categories per page (1-500, default 100). Paginate via next_cursor for full lists.",
      +  "maximum": 500,
      +  "minimum": 1,
      +  "type": "integer"
      +}
  2. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds no further behavioral context such as whether categories are hierarchical, whether the list is exhaustive, or how pagination should be driven (the schema handles cursors). Adds little beyond annotations.

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?

Two short sentences, zero padding, and the purpose is front-loaded before the usage hint. Every clause earns its place.

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 simple read-only listing tool with full schema coverage and no output schema, the description gives the agent enough to call it correctly and understand its role in a retailer → category → product workflow. It could note pagination or category path shape, but nothing essential 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%, so retailer_id, limit and after are all documented in the schema, including the cross-reference to list_retailers. The description adds no parameter detail beyond what the schema provides, so the baseline 3 applies.

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 specific verb and resource with scope: 'List product categories available for a specific retailer.' It clearly distinguishes itself from the product-level siblings (search_retailer_products, get_retailer_product) by operating on categories, though it doesn't name those siblings explicitly.

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?

'Use this to discover valid category paths before filtering products by category' gives a concrete context for invocation and a downstream dependency. There's no explicit when-not guidance, but the usage trigger is unambiguous.

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