Skip to main content
Glama
digikala-mcp

digikala-mcp

by sepehr071

Browse a brand

dk_brand_products
Read-onlyIdempotent

List a brand’s products with sorting and Toman price filters, and return the brand ID for use with brand_ids. Use dk_category_products to narrow one brand within a single category.

Instructions

List a brand's products with sort and price filters (Toman), plus the brand id for brand_ids.

One brand in one category: dk_category_products(brand_code=...).

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": {
      "brand_code": "<brand_code>"
    },
    "name": "dk_brand_products"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo
sortNorelevance
max_priceNo
min_priceNo
brand_codeYesLowercase English name, e.g. 'samsung'.
in_stock_onlyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changedv0.6.0
    • changedInput schema / properties / brand_code / description
      Previous value: -"Brand code: usually the lowercase English brand name (as in digikala.com/brand/<code>/, or dk_product's brand_code), e.g. 'samsung' or 'xiaomi'."New value: +"Lowercase English name, e.g. 'samsung'."
    • removedInput schema / properties / in_stock_only / description
      Removed value: -"Only products that can be bought now."
    • removedInput schema / properties / max_price / anyOf
      Removed value: -[
      -  {
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / max_price / description
      Removed value: -"Highest price in Toman, e.g. 50000000."
    • addedInput schema / properties / max_price / minimum
      Added value: +0
    • addedInput schema / properties / max_price / type
      Added value: +[
      +  "integer",
      +  "null"
      +]
    • removedInput schema / properties / min_price / anyOf
      Removed value: -[
      -  {
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / min_price / description
      Removed value: -"Lowest price in Toman, e.g. 10000000 for 10 million Toman."
    • addedInput schema / properties / min_price / minimum
      Added value: +0
    • addedInput schema / properties / min_price / type
      Added value: +[
      +  "integer",
      +  "null"
      +]
    • removedInput schema / properties / page / description
      Removed value: -"Page number, from 1 (20 products per page)."
    • removedInput schema / properties / sort / description
      Removed value: -"Order of the results."
  2. Changed8 schema fields changedv0.4.0
    • removedInput schema / properties / brand_code / title
      Removed value: -"Brand Code"
    • removedInput schema / properties / in_stock_only / title
      Removed value: -"In Stock Only"
    • removedInput schema / properties / max_price / title
      Removed value: -"Max Price"
    • removedInput schema / properties / min_price / title
      Removed value: -"Min Price"
    • removedInput schema / properties / page / title
      Removed value: -"Page"
    • removedInput schema / properties / sort / title
      Removed value: -"Sort"
    • removedInput schema / title
      Removed value: -"dk_brand_productsArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "title": "dk_brand_productsDictOutput",
      -  "type": "object"
      -}New value: +null
  3. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/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 the safety profile is covered. The description adds one genuinely new behavioral fact: prices are in Toman, which matters for interpreting min_price/max_price. It says nothing about pagination limits (page max 100) or the default in_stock_only=true that silently filters results, which is a meaningful omission.

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?

Two short sentences, front-loaded with the core action and filters before the sibling pointer. The 'plus the brand id for brand_ids' fragment is slightly opaque and borders on noise, but nothing is padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 6 parameters, 17% schema coverage and no output schema, the description should carry more weight than it does. Currency and the category-vs-brand distinction are covered, but the default stock filter, pagination behavior, and what a result entry contains are left to inference.

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 only 17% – just brand_code is documented in the schema – so the description bears most of the load. It adds the Toman currency unit for the price filters and names sort, but leaves page, in_stock_only, and the eight sort enum values unexplained. Partial compensation, not full.

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 gives a specific verb and resource ('List a brand's products') plus the filter dimensions it supports (sort, price), which distinguishes it from generic search siblings. The trailing clause 'plus the brand id for brand_ids' is cryptic but does hint at a return value usable with a brand_ids parameter. It is clear what the tool returns, though not perfectly crisp.

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?

The second sentence explicitly routes the agent to a sibling: 'One brand in one category: dk_category_products(brand_code=...)', implying this tool spans a whole brand rather than one category. No explicit exclusions or prerequisites are stated, but the alternative-selection condition is real and actionable.

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