Skip to main content
Glama
basalam-mcp

basalam-mcp

by sepehr071

Search products

bs_search
Read-onlyIdempotent

Search Basalam product listings by query and filter results by price, category, shipping, discount, and installment options; returns product cards with prices in Toman.

Instructions

Search Basalam products and return a page of cards with prices in Toman.

To rank by real price use bs_find_cheapest. Link: https://basalam.com/p/; pages can repeat a few products.

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": {
      "query": "<query>"
    },
    "name": "bs_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number, 1-based.
sortNoOrder.relevance
limitNoProducts per page.
queryYesPersian words, e.g. 'عسل طبیعی'.
max_priceNoToman, e.g. 500000.
min_priceNoToman, e.g. 100000.
category_idNoId from bs_categories, any level.
top_vendorsNoOnly top-rated shops.
has_discountNoOnly discounted.
installmentsNoOnly installment-payable.
free_shippingNoOnly free shipping.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changedv0.2.2
    • changedInput schema / properties / category_id / description
      Previous value: -"Category id from bs_categories (any level), e.g. 172 for honey."New value: +"Id from bs_categories, any level."
    • changedInput schema / properties / free_shipping / description
      Previous value: -"Only products with free shipping to the whole country."New value: +"Only free shipping."
    • changedInput schema / properties / has_discount / description
      Previous value: -"Only products with a discount or coupon."New value: +"Only discounted."
    • changedInput schema / properties / installments / description
      Previous value: -"Only products that can be bought in installments (قسطی)."New value: +"Only installment-payable."
    • changedInput schema / properties / limit / description
      Previous value: -"Products per page (max 30, keeps the reply under 15 KB)."New value: +"Products per page."
    • changedInput schema / properties / max_price / description
      Previous value: -"Highest price in Toman, e.g. 500000."New value: +"Toman, e.g. 500000."
    • changedInput schema / properties / min_price / description
      Previous value: -"Lowest price in Toman, e.g. 100000."New value: +"Toman, e.g. 100000."
    • changedInput schema / properties / query / description
      Previous value: -"Search words, Persian matches best, e.g. 'عسل طبیعی'."New value: +"Persian words, e.g. 'عسل طبیعی'."
    • changedInput schema / properties / sort / description
      Previous value: -"Result order."New value: +"Order."
    • changedInput schema / properties / top_vendors / description
      Previous value: -"Only products from top-rated shops (غرفه برتر)."New value: +"Only top-rated shops."
  2. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, open-world, and non-destructive, so the safety profile is covered. The description adds genuine behavior beyond that: results are card-shaped with Toman prices, product links follow a URL pattern, and pages may repeat items (a dedup caveat). It says nothing about result caps, total counts, or page-200 boundary behavior, so credit is moderate.

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 sentences, zero filler, with the core purpose front-loaded. The second sentence packs the alternative-tool pointer, the link template, and the pagination caveat together, which is slightly cramped but each clause earns its place.

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?

With 11 parameters, no output schema, and a read-only profile, the description does the needed extra work by describing the return shape and link format. Missing details on card fields and result-set totals are minor for a search tool whose inputs are fully documented.

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 description coverage is 100%, so the baseline is 3. The description adds modest meaning: it confirms prices are denominated in Toman for the price filters and ties the result link format to product ids. The remaining parameters are fully self-documenting in the schema, so no compensation is needed.

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 (search Basalam products) plus the return shape (a page of cards with prices in Toman). It also names a sibling, bs_find_cheapest, as the tool for price ranking, which helps an agent distinguish the two without opening schemas. It stops short of contrasting with other siblings like bs_vendor_products.

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?

Gives one explicit routing rule: 'To rank by real price use bs_find_cheapest.' That is a concrete when-to-use-alternative signal. There is no guidance on scoping searches to a vendor or category versus using the dedicated sibling tools, so the guidance is clear but not complete.

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