Skip to main content
Glama
digikala-mcp

digikala-mcp

by sepehr071

Search groceries

dk_fresh_search
Read-onlyIdempotent

Search or browse Digikala Fresh supermarket products by query or category code, filter by price and stock, and retrieve subcategories for category-based browsing.

Instructions

Search or browse Digikala Fresh (supermarket). category_code beats query and also returns sub-categories.

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

Input Schema

NameRequiredDescriptionDefault
pageNo
sortNorelevance
queryNoPersian works best, e.g. 'شیر کم چرب'.
max_priceNo
min_priceNo
category_codeNoInstead of query: groceries, dairy, snacks, protein-foods, breakfast, beverages, warm-drinks, fruits-and-vegetables, personal-hygiene, baby-and-mother, home-hygiene, dried-fruit-nuts, ready-made-canned-food, condiments, frozen-food, salts-and-pickles, or a returned sub-category.
in_stock_onlyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed20 schema fields changedv0.6.0
    • removedInput schema / properties / category_code / anyOf
      Removed value: -[
      -  {
      -    "pattern": "^[a-z0-9][a-z0-9_.'’-]{1,80}$",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / category_code / description
      Previous value: -"Fresh category code instead of a query: groceries, dairy, snacks, protein-foods, breakfast, beverages, warm-drinks, fruits-and-vegetables, personal-hygiene, baby-and-mother, home-hygiene, dried-fruit-nuts, ready-made-canned-food, condiments, frozen-food, salts-and-pickles, or a sub-category code this tool returned."New value: +"Instead of query: groceries, dairy, snacks, protein-foods, breakfast, beverages, warm-drinks, fruits-and-vegetables, personal-hygiene, baby-and-mother, home-hygiene, dried-fruit-nuts, ready-made-canned-food, condiments, frozen-food, salts-and-pickles, or a returned sub-category."
    • addedInput schema / properties / category_code / pattern
      Added value: +"^[a-z0-9][a-z0-9_.'’-]{1,80}$"
    • addedInput schema / properties / category_code / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • 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 / query / anyOf
      Removed value: -[
      -  {
      -    "maxLength": 100,
      -    "minLength": 2,
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / query / description
      Previous value: -"Grocery product, Persian works best, e.g. 'شیر کم چرب' or 'برنج'."New value: +"Persian works best, e.g. 'شیر کم چرب'."
    • 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 results."
  2. Changed9 schema fields changedv0.4.0
    • removedInput schema / properties / category_code / title
      Removed value: -"Category 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 / query / title
      Removed value: -"Query"
    • removedInput schema / properties / sort / title
      Removed value: -"Sort"
    • removedInput schema / title
      Removed value: -"dk_fresh_searchArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "title": "dk_fresh_searchDictOutput",
      -  "type": "object"
      -}New value: +null
  3. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so safety is covered. The description adds genuine behavior beyond that: category_code takes precedence over query and sub-categories are returned, which affects how results should be interpreted. It says nothing about pagination limits or result shape, so the addition is modest rather than rich.

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, with the resource scope front-loaded and the precedence rule immediately after. Nothing is wasted, though the phrase 'also returns sub-categories' is compressed to the point of slight ambiguity about what exactly is returned.

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 search tool with no output schema, the definition covers the essentials: what it searches, the primary disambiguation between query and category, and that sub-categories come back. Missing details on sorting, price filtering, and pagination are secondary and largely self-evident from the schema enums and defaults.

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 29% across 7 parameters, so the description carries real burden, and it does clarify the interaction between the two most important parameters (query vs category_code). That said, sort, page, price bounds and in_stock_only receive no guidance in the description, leaving the majority of parameters unexplained beyond bare schema types.

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 pair (search/browse) and a clearly scoped resource (Digikala Fresh supermarket), which distinguishes it from the general dk_search sibling. It stops short of explicitly naming the siblings it supersedes or defers to.

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 clause 'category_code beats query' gives a real precedence rule for choosing between the two main entry points, and hints at browsing via category. However, it never states when to prefer dk_search, dk_suggest, or dk_category_products, so an agent must infer routing from sibling names alone.

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