Skip to main content
Glama
basalam-mcp

basalam-mcp

by sepehr071

Shop products

bs_vendor_products
Read-onlyIdempotent

List products from a single Basalam shop with prices in Toman, then search, filter by price, category, discount or shipping, and sort results.

Instructions

List one shop's products with prices in Toman, searchable and sortable.

Unknown shop is an error. Link: https://basalam.com/p/.

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": {
      "vendor": "<vendor>"
    },
    "name": "bs_vendor_products"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number, 1-based.
sortNoOrder.newest
limitNoProducts per page.
queryNoWords to search in the shop, e.g. 'عسل'.
vendorYesshop_id from results, e.g. 'asalhowraman98'.
max_priceNoToman, e.g. 500000.
min_priceNoToman, e.g. 100000.
category_idNoId from bs_categories, any level.
has_discountNoOnly discounted.
free_shippingNoOnly free shipping.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 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 / 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: -"Words to search inside the shop, e.g. 'عسل'. Omit to list everything."New value: +"Words to search in the shop, e.g. 'عسل'."
    • changedInput schema / properties / sort / description
      Previous value: -"Result order."New value: +"Order."
    • changedInput schema / properties / vendor / description
      Previous value: -"Shop identifier (shop_id from search results), e.g. 'asalhowraman98'."New value: +"shop_id from results, e.g. 'asalhowraman98'."
  2. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds two genuinely new facts: an invalid vendor raises an error rather than returning empty, and prices are denominated in Toman with product links of the form basalam.com/p/<id>. It says nothing about pagination behavior, result volume, or ordering defaults.

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 sentences: purpose, error caveat, link template. Front-loaded and essentially waste-free. The link sentence is terse to the point of being slightly cryptic, but it does not bloat the definition.

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

Completeness3/5

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

For a 10-parameter tool the schema carries most of the burden and annotations cover safety, so the short description is workable. However, it is thin on what the call actually returns (product fields, whether pagination metadata is included) and on the practical limits implied by limit max 30 and page max 100.

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

Parameters3/5

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

Schema description coverage is 100%, so every one of the 10 parameters (including the sort enum and price filters) is already documented inline with examples. The description only restates that the listing is searchable and sortable and that prices are in Toman, which adds no syntax or constraint detail beyond the schema. Baseline 3 applies.

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: "List one shop's products with prices in Toman", and adds that the listing is searchable and sortable. An agent can distinguish this from a global search or single-product lookup by the 'one shop' scoping, though no sibling is named explicitly.

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?

Usage is implied by the required `vendor` (shop_id) parameter and the warning 'Unknown shop is an error', which tells the agent it must resolve a valid shop first. There is no explicit when-to-use/when-not statement and no routing to alternatives such as the global search or cheapest-finder siblings.

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