Skip to main content
Glama

Cheapest products

dr_cheapest
Read-onlyIdempotent

Find lowest-priced products by category, brand, form, or Persian search, sorted by lowest price first and excluding unpriced items. Compare Toman prices to identify affordable options.

Instructions

List the lowest-priced products of a category, brand or search, cheapest first, skipping unpriced items.

Use it for "cheapest sunscreen" or "cheapest vitamin D" (a text query works directly). Needs query, category, brand or form. Exact order with category/brand; a text query sorts its first 288 matches. Prices are Toman after discount.

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

Input Schema

NameRequiredDescriptionDefault
formNoForm ids from dr_forms, e.g. [28].
brandNoBrand ids from dr_brands, e.g. [315].
limitNoProducts to return, 1-24.
queryNoPersian words from the product name, brand or use, e.g. ضد آفتاب.
categoryNoCategory ids from dr_categories (parent includes children), e.g. [1379].
in_stockNoOnly in stock.
max_priceNoToman.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.2.0
    • changedInput schema / properties / brand / description
      Previous value: -"Brand ids from dr_brands (e.g. [315] for Ellaro)."New value: +"Brand ids from dr_brands, e.g. [315]."
    • changedInput schema / properties / category / description
      Previous value: -"Category ids from dr_categories (a parent id includes its children), e.g. [1379]."New value: +"Category ids from dr_categories (parent includes children), e.g. [1379]."
    • changedInput schema / properties / form / description
      Previous value: -"Product form ids from dr_forms (capsule, syrup, cream, spray ...), e.g. [28]."New value: +"Form ids from dr_forms, e.g. [28]."
    • changedInput schema / properties / in_stock / description
      Previous value: -"Only products in stock (default true)."New value: +"Only in stock."
    • changedInput schema / properties / max_price / description
      Previous value: -"Highest price in Toman."New value: +"Toman."
    • changedInput schema / properties / query / description
      Previous value: -"Persian product words, e.g. ضد آفتاب."New value: +"Persian words from the product name, brand or use, e.g. ضد آفتاب."
  2. First observedv0.1.1

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world, so the safety profile is covered. The description adds genuine behavior beyond that: unpriced items are silently skipped, ordering fidelity depends on the filter type, text queries only sort the first 288 matches (an important completeness caveat), and prices are post-discount Toman. It does not describe the shape of a returned product, but that is a minor omission for a list tool.

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?

Three short, front-loaded sentences: purpose and sort, then invocation requirement and caveat, then price units. No filler. Minor slack in the parenthetical '(a text query works directly)' and the trailing 'Prices are Toman after discount', which repeats the schema's Toman note for max_price.

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 7-parameter, no-output-schema read tool, the description covers the essentials an agent needs: what it returns conceptually, required input combination, sort guarantees, exclusion rules, and currency. The remaining gap — what fields a returned product carries and whether results are truncated beyond the limit — is modest and partly implied by the 288-match note.

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%, so field-level meaning is already documented and the baseline is 3. The description earns above baseline by stating that at least one of query/category/brand/form is effectively required — a constraint the schema does not encode, since it lists zero required parameters — and by clarifying that a plain text query works without resolving ids.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a precise verb+resource+ordering: 'List the lowest-priced products of a category, brand or search, cheapest first, skipping unpriced items.' The cheapest-first sort plus the unpriced-item exclusion distinguishes it cleanly from siblings like dr_search and dr_product, which do not guarantee price ordering.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives concrete use cases ('cheapest sunscreen', 'cheapest vitamin D') and states the input requirement: 'Needs query, category, brand or form.' It also warns that exact ordering holds for category/brand while a text query only sorts its first 288 matches. It stops short of explicitly naming when to prefer dr_search over this tool for broad discovery.

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