Skip to main content
Glama
sepehr071

basalam-mcp

by sepehr071

Find cheapest products

bs_find_cheapest
Read-onlyIdempotent

Find in-stock product offers for a search query, sorted by price in ascending order (Toman). Use price, rating, category, vendor, or shipping filters to narrow results.

Instructions

List the cheapest in-stock offers for a query, cheapest first, prices in Toman.

Reads the server's price-ascending sort (two pages of 48), drops out-of-stock items and, with rating_min, low-rated ones. Raise min_price when results are still accessories; narrow with category_id from bs_categories.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoOffers to return.
queryYesSearch words, Persian matches best, e.g. 'عسل طبیعی'.
max_priceNoHighest price in Toman, e.g. 500000.
min_priceNoLowest price in Toman. Default 5000 hides sample or filler listings that cost a few hundred.
rating_minNoDrop products rated below this; above 0 also drops unrated ones.
category_idNoCategory id from bs_categories (any level), e.g. 172 for honey.
top_vendorsNoOnly products from top-rated shops (غرفه برتر).
free_shippingNoOnly products with free shipping to the whole country.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, openWorld), so the bar is lower. The description adds real behavioral context beyond them: it discloses that only two pages of 48 are read and that out-of-stock and low-rated items are dropped, which tells the agent about result coverage and filtering.

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?

Two tight sentences, purpose front-loaded, followed by behavior and parameter strategy. No filler sentences; every clause carries information.

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, idempotent search tool with no output schema and annotations covering safety, the description supplies filtering behavior, coverage limits, and param strategy. It does not sketch the shape of returned offer fields, a minor gap given no output schema exists.

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?

With 100% schema description coverage, a 3 is the baseline. The description goes further by explaining the tuning strategy (raise min_price when results are accessories, narrow via category_id), adding inter-parameter intent beyond the per-field schema text.

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?

Specifies a concrete verb and resource (list the cheapest in-stock offers for a query), plus ordering (cheapest first) and currency (Toman). The 'cheapest/in-stock' framing clearly separates it from the general bs_search sibling.

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?

Offers actionable conditional guidance: raise min_price when results are still accessories and narrow with category_id from bs_categories, which routes the agent to a sibling tool. It lacks an explicit statement of when to prefer this over bs_search, so it falls short of a full 5.

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