Skip to main content
Glama
digikala-mcp

digikala-mcp

by sepehr071

Current deals

dk_deals
Read-onlyIdempotent

Find today's Incredible Offers flash deals, sorted by biggest discount and limited to in-stock items; filter by store, price range, or query.

Instructions

List today's Incredible Offers (flash deals), biggest discount first, in-stock only.

deal_ends is Tehran time.

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_deals"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo
sortNobiggest_discount
queryNoNarrow the deals.
storeNo'supermarket' = Fresh grocery deals.digikala
max_priceNo
min_priceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed16 schema fields changedv0.6.0
    • 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 / query / anyOf
      Removed value: -[
      -  {
      -    "maxLength": 100,
      -    "minLength": 2,
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / query / description
      Previous value: -"Optional words to narrow the deals, e.g. 'هدفون' or 'شیر'."New value: +"Narrow the deals."
    • addedInput schema / properties / query / maxLength
      Added value: +100
    • addedInput schema / properties / query / minLength
      Added value: +2
    • addedInput schema / properties / query / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / sort / description
      Removed value: -"Order of the deals."
    • changedInput schema / properties / store / description
      Previous value: -"'digikala' for Incredible Offers, 'supermarket' for Digikala Fresh grocery deals."New value: +"'supermarket' = Fresh grocery deals."
  2. Changed9 schema fields changedv0.4.0
    • 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"
    • changedInput schema / properties / query / anyOf
      Previous value: -[
      -  {
      -    "minLength": 2,
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 100,
      +    "minLength": 2,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / query / title
      Removed value: -"Query"
    • removedInput schema / properties / sort / title
      Removed value: -"Sort"
    • removedInput schema / properties / store / title
      Removed value: -"Store"
    • removedInput schema / title
      Removed value: -"dk_dealsArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "title": "dk_dealsDictOutput",
      -  "type": "object"
      -}New value: +null
  3. First observedv0.1.0

TDQS

A3.7/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 openWorld, so the safety bar is low. The description nonetheless adds real behavioral facts beyond them: results are restricted to in-stock items, default ordering is by discount magnitude, and deal_ends is expressed in Tehran time — a non-obvious semantic an agent would otherwise get wrong.

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, front-loaded sentences with no filler; the core scope comes first and the ancillary timezone note second. The second line is telegraphic ("deal_ends is Tehran time") but still earns its place by clarifying an otherwise ambiguous field.

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 read-only six-parameter listing tool with no output schema, the description covers scope, filtering behavior, default ordering, and time semantics. Remaining gaps are pagination behavior and sibling differentiation, which are moderate rather than critical for a browse-style endpoint.

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 only 33% (query and store carry descriptions), so the description carries extra burden. It reinforces the default sort ("biggest discount first") and the timezone framing, but says nothing about page limits, max_price/min_price semantics, or the alternative sort enum values — so it only partially compensates.

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 today's Incredible Offers (flash deals)") and adds two qualifying traits: biggest discount first and in-stock only. It does not name any sibling, so an agent must still infer that dk_search or dk_best_for_budget are the non-deal alternatives.

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 only implied by "today's" and "in-stock only" — an agent can guess this is for browsing current promotions. There is no explicit when-to-use vs. when-not guidance and no reference to the many related siblings such as dk_search, dk_fresh_search, or dk_best_for_budget.

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