Skip to main content
Glama
digikala-mcp

digikala-mcp

by sepehr071

Similar products

dk_similar
Read-onlyIdempotent

Find products similar to a given item, including other models and brands, and sort results by cheapest to compare lower-priced alternatives.

Instructions

List products similar to one (same kind, other models and brands); sort='cheapest' for cheaper ones.

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": {
      "product_id": "<product_id>"
    },
    "name": "dk_similar"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo
sortNorelevance
product_idYes
in_stock_onlyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.6.0
    • removedInput schema / properties / in_stock_only / description
      Removed value: -"Only products that can be bought now."
    • removedInput schema / properties / page / description
      Removed value: -"Page number, from 1 (20 products per page)."
    • removedInput schema / properties / product_id / description
      Removed value: -"Digikala product id, the number in 'dkp-<id>' (from dk_search etc.), e.g. 20109389."
    • removedInput schema / properties / sort / description
      Removed value: -"Order of the results."
  2. Changed6 schema fields changedv0.4.0
    • removedInput schema / properties / in_stock_only / title
      Removed value: -"In Stock Only"
    • removedInput schema / properties / page / title
      Removed value: -"Page"
    • removedInput schema / properties / product_id / title
      Removed value: -"Product Id"
    • removedInput schema / properties / sort / title
      Removed value: -"Sort"
    • removedInput schema / title
      Removed value: -"dk_similarArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "title": "dk_similarDictOutput",
      -  "type": "object"
      -}New value: +null
  3. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already establish that this is a read-only, idempotent, non-destructive, open-world operation. The description adds some context by defining what 'similar' means and highlighting a sorting behavior, but it does not describe return format, pagination, or the default in-stock filtering behavior.

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?

The description is a single compact sentence with the core purpose front-loaded and no wasted wording. Both the similar-product scope and the sort hint are stated efficiently.

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

Completeness2/5

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

This is a four-parameter tool with no schema descriptions and no output schema, so the description should do more to explain pagination, stock filtering, sort options, and product_id usage. It provides only a high-level purpose and one sort hint, which is not enough for fully informed invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must carry parameter meaning, but it only partially covers product_id ('similar to one') and one value of sort ('cheapest'). It says nothing about page, in_stock_only, or the other sort enum values, leaving most parameter semantics undocumented.

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 uses a specific verb and resource: 'List products similar to one,' and clarifies that similar means same kind but other models and brands. It is clear what the tool does, but it does not explicitly differentiate itself from siblings such as dk_search, dk_product, or dk_compare.

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 description gives an implied use case by saying it lists similar products and adds a specific hint that sort='cheapest' returns cheaper ones. However, it does not explain when to choose this tool over sibling tools or when not to use it, leaving alternatives to inference.

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