Skip to main content
Glama
sepehr071

digikala-mcp

by sepehr071

Compare products

dk_compare
Read-onlyIdempotent

Compare 2-4 products side by side by price, rating, and differing specs to decide which one fits your needs. Ideal for products in the same category.

Instructions

Compare 2-4 products side by side: price and rating, then the spec rows where they differ.

values in each specs row follow the order of products; null means the product has no such spec. Rows where every product has the same value are folded into same_specs ("group / name" -> value). Works best for products of the same category. Unknown ids are left out and listed in missing_ids.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
product_idsYes2-4 product ids of the same kind, e.g. [20109389, 20110013].

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the safety profile is covered. The description adds real behavioral context beyond that: null means a missing spec, identical rows are folded into `same_specs`, and unknown ids are dropped and reported in `missing_ids`.

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?

Front-loaded with the core action in the first clause, then dense but useful detail about the return semantics. Two short paragraphs, no filler, though the second paragraph is tightly packed.

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?

An output schema exists so return values need not be explained, yet the description still clarifies the key semantic conventions (ordering, nulls, folding, missing ids). The only gap is absence of explicit alternative-tool routing.

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

Parameters4/5

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

Schema coverage is 100% for the single parameter, so baseline is 3. The description adds meaning by stating that `values` follow the order of `products`, which tells the agent that input ordering is preserved and significant.

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 and resource with scope: 'Compare 2-4 products side by side: price and rating, then the spec rows where they differ.' An agent can tell this is a multi-product comparison rather than a single-product lookup, though no sibling (e.g. dk_similar, dk_product) is named to sharpen the boundary.

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?

'Works best for products of the same category' implies when the tool is appropriate, and the 2-4 bound is stated. However, there is no explicit when-to-use/when-not guidance and no routing to alternatives such as dk_product for a single item.

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