Skip to main content
Glama

Category products

ss_category
Read-onlyIdempotent

Lists products in a Snapp! Shop category or category-brand page with sort, price, spec, colour, stock, and discount filters. Use after categories; choose a subcategory for top-level paths.

Instructions

List the products of one Snapp! Shop category or category-brand page, with sort, price, spec and colour filters.

Use after ss_categories. A top-level path such as 'mobile' has no list: pick a subcategory.

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": {
      "path": "<path>"
    },
    "name": "ss_category"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo12 items per page.
pathYesPath from ss_categories, one or two parts, e.g. 'mobile/samsung'.
sortNoList order; default is the site's relevance order.
specsNo'filter=option' (name or id, from ss_filters), e.g. ['حافظه داخلی=256 گیگابایت']. One option per filter.
colorsNoColour names or ids from ss_filters.
expressNoOnly products with fast delivery.
in_stockNoOnly products that can be bought now.
max_priceNoHighest price in Toman (not Rial).
min_priceNoLowest price in Toman (not Rial).
discountedNoOnly products with a discount.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.2.0
    • changedInput schema / properties / colors / description
      Previous value: -"Colour names or ids from ss_filters, e.g. ['مشکی']."New value: +"Colour names or ids from ss_filters."
    • changedInput schema / properties / page / description
      Previous value: -"Page number, 12 items per page, starting at 1."New value: +"12 items per page."
    • changedInput schema / properties / path / description
      Previous value: -"Category path from ss_categories, one or two parts, e.g. 'mobile/samsung' or 'health-beauty/vitamins'."New value: +"Path from ss_categories, one or two parts, e.g. 'mobile/samsung'."
    • changedInput schema / properties / sort / description
      Previous value: -"Order of the list; the site default (no value) is its own relevance order."New value: +"List order; default is the site's relevance order."
    • changedInput schema / properties / specs / description
      Previous value: -"Spec filters as 'filter=option', by name or id, e.g. ['حافظه داخلی=256 گیگابایت']. One option per filter; names come from ss_filters."New value: +"'filter=option' (name or id, from ss_filters), e.g. ['حافظه داخلی=256 گیگابایت']. One option per filter."
  2. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so safety is covered. The description contributes a genuine behavioral fact not in the schema: top-level paths return no list and must be narrowed to a subcategory, which prevents a class of silent empty results.

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: the capability first, then the sequencing and the path caveat. Nothing redundant, nothing buried.

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 10-parameter filtered listing tool with full schema documentation and no output schema, the description plus schema tells an agent everything needed to call it. Minor gap: no hint that results are paginated listings with a 500-page cap, though the schema covers pagination mechanics.

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%, including units (Toman not Rial), defaults, page size and the 'filter=option' syntax for specs. The description only gestures at 'sort, price, spec and colour filters' without adding syntax or cross-references beyond what the schema already states, so 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 ('List the products of one Snapp! Shop category or category-brand page') and enumerates the filter families available. It is clear what the tool does, though it never names ss_search, ss_brand or ss_collection as the alternatives for other listing shapes.

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?

Gives an explicit prerequisite ('Use after ss_categories') and an explicit exclusion with remedy ('A top-level path such as mobile has no list: pick a subcategory'). No guidance on when to prefer this over sibling listing tools, but the workflow context is concrete.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.