Skip to main content
Glama
digikala-mcp

digikala-mcp

by sepehr071

Best sellers

dk_best_sellers
Read-onlyIdempotent

List current best sellers overall or by main category and return main category IDs for category_id filtering. Use it to identify popular products and select valid main categories.

Instructions

List current best sellers, overall or in one main category; also returns the main categories' ids for category_id.

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": "dk_best_sellers"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
category_idNoMain category id (this tool's `categories`), e.g. 1 mobile. Leaf ids fail.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.6.0
    • removedInput schema / properties / category_id / anyOf
      Removed value: -[
      -  {
      -    "minimum": 1,
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / category_id / description
      Previous value: -"Main category id from dk_categories (no arguments) or this tool's `categories`, e.g. 1 for mobile. Leaf ids are rejected."New value: +"Main category id (this tool's `categories`), e.g. 1 mobile. Leaf ids fail."
    • addedInput schema / properties / category_id / minimum
      Added value: +1
    • addedInput schema / properties / category_id / type
      Added value: +[
      +  "integer",
      +  "null"
      +]
    • removedInput schema / properties / limit / description
      Removed value: -"Max products to return."
  2. Changed5 schema fields changedv0.4.0
    • removedInput schema / properties / category_id / title
      Removed value: -"Category Id"
    • changedInput schema / properties / limit / default
      Previous value: -20New value: +10
    • removedInput schema / properties / limit / title
      Removed value: -"Limit"
    • removedInput schema / title
      Removed value: -"dk_best_sellersArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "title": "dk_best_sellersDictOutput",
      -  "type": "object"
      -}New value: +null
  3. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is fully covered. The description adds the non-obvious side effect that category ids come back in the response, but says nothing about ranking criteria, pagination, or freshness of 'current'.

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?

A single compact sentence that front-loads the purpose before the parameter hint, with no wasted wording. The trailing clause 'also returns the main categories' ids for category_id' is slightly compressed and takes a second read to parse.

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?

For a simple two-parameter read tool with no output schema, the definition covers selection and the category-id discovery loop. It leaves the shape of a best-seller record and the meaning of the limit relative to 'overall' versus per-category unstated, which an agent would have to discover by calling.

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 50%: category_id is documented in the schema (including 'leaf ids fail'), while limit has no description beyond its numeric bounds. The description reinforces that category_id accepts only a main category and that valid ids come from this tool's own output, which is genuinely helpful context but does not explain limit behavior.

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 names a specific verb and resource ('List current best sellers') plus its scope ('overall or in one main category'), so the agent knows exactly what it returns. It does not name any sibling to distinguish itself from, so it stops short of a 5.

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?

The 'overall or in one main category' phrasing implies when to pass category_id versus omit it, which is useful shorthand. There is no explicit when-to-use, when-not-to-use, or pointer to an alternative such as dk_category_products or dk_deals, so the guidance stays implicit.

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