Skip to main content
Glama

hm_listing

Read-only

Browse an H&M category's product listing: normalized products with pricing, images, colors, and per-size stock. category_id is an H&M category slug (e.g. ladies_newarrivals_all, men_newarrivals_all, ladies_jeans). Pagination is page-based and real: requesting a page beyond the category's real last page returns a normal result with an empty products list rather than an error.

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": {
      "category_id": "<category_id>"
    },
    "name": "hm_listing"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number, one-based, defaults to 1
sortNoSort order, defaults to RELEVANCE. Documented values: RELEVANCE, NEWEST_FIRST, PRICE_ASCENDING, PRICE_DESCENDING.
is_newNoOptional filter for newly added items only
page_sizeNoResults per page, 1 to 72, defaults to 36
category_idYesH&M category slug

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. Changed5 schema fields changed
    • addedInput schema / properties / category_id / description
      Added value: +"H&M category slug"
    • addedInput schema / properties / is_new / description
      Added value: +"Optional filter for newly added items only"
    • addedInput schema / properties / page / description
      Added value: +"Page number, one-based, defaults to 1"
    • addedInput schema / properties / page_size / description
      Added value: +"Results per page, 1 to 72, defaults to 36"
    • addedInput schema / properties / sort / description
      Added value: +"Sort order, defaults to RELEVANCE. Documented values: RELEVANCE, NEWEST_FIRST, PRICE_ASCENDING, PRICE_DESCENDING."
  2. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true and idempotentHint=false, so the safety profile is covered. The description earns credit for the pagination disclosure — page-based, and an out-of-range page returns an empty products list instead of an error — which is real behavioral context an agent cannot get from annotations or schema. It stops short of anything about rate limits or freshness.

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 dense sentences with no filler; the resource description comes first and the page-boundary edge case is front-loaded where an agent will see it before paginating.

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 described, and the schema fully documents all five parameters. The description covers the one non-obvious behavior (terminal pagination) and the required parameter's format, leaving no meaningful gap for a simple listing tool.

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%, so baseline is a 3. The description adds genuine value by giving concrete category_id slug examples and clarifying that page numbering is one-based and beyond-last-page requests resolve to an empty list, but it says nothing extra about sort or is_new beyond what the schema documents.

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 ('Browse an H&M category's product listing') and enumerates what each product carries (pricing, images, colors, per-size stock). The required category_id makes it clearly a category-browse tool rather than a keyword search, though it never names hm_search as the contrasting sibling.

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 rather than stated: an agent can infer it should call this when it already has an H&M category slug, and the slug examples suggest coming from hm_categories. There is no explicit when-to-use-vs-hm_search guidance or statement of preconditions.

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.