Bama Cars

v0.2.1
io.github.sepehr071/bama-ir-mcp Checked 4 days ago Published 18 days ago

Read-only Bama (bama.ir) Iran car marketplace: ad search, ad details, market prices, new-car prices.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

ba_ad Ad details

Get one Bama ad (car, motorcycle or truck) in full: price, specs, condition, seller, description and photos. Use after ba_search or ba_search_bikes_trucks. ads_of_same_model / ads_of_same_trim are the real live ad counts; similar_total counts Bama's wider pool. Phone numbers are not available.

ParameterTypeDescription
code *stringAd code from ba_search, e.g. 4avpuyq7.
kindstringSection; auto tries car, motorcycle, truck.
similarintegerAlso list this many similar car ads (cars only).

ba_market_stats Used-car market price stats

Price statistics (min, quartiles, median, max, per year) for a car model from live Bama ads. Samples the newest matching ads with a fixed price (no negotiable, installment or presale), Toman. Asking prices, not sale prices. Narrow with year, mileage, region; ba_search sort=cheapest shows the ads.

ParameterTypeDescription
mileage_frominteger | nullMinimum km.
mileage_tointeger | nullMaximum km (0 = zero-km only).
pagesintegerPages to sample (30 ads each); more is slower.
regionarray | nullba_filters kind=region values.
sellerstring | null
transmissionstring | null
vehiclearray | nullValues from ba_vehicles: brand, brand,model or brand,model,trim, e.g. ['samand,lx']. Several = any.
year_frominteger | nullEarliest year, Jalali.
year_tointeger | nullLatest year, Jalali.

ba_dealers Dealers selling a model

List car dealers (showrooms) with ads for a model or city on Bama, with address, rating and how many ads match. Scans the first pages of dealer-only ads. Then ba_dealer_ads for one showroom or ba_search seller=dealer.

ParameterTypeDescription
pagesintegerPages to scan (30 ads each).
regionarray | nullba_filters kind=region values.
vehiclearray | nullValues from ba_vehicles: brand, brand,model or brand,model,trim, e.g. ['samand,lx']. Several = any.

ba_vehicles Brands, models and trims

Look up the brand, model and trim values that ba_search, ba_market_stats and ba_new_prices take. query finds matches (up to 25); brand lists its models and trims; neither lists all brands. Values look like 'samand', 'samand,lx', 'peugeot,206ir,type2'. vehicle_type motorcycle/truck feeds ba_search_bikes_trucks.

ParameterTypeDescription
brandstring | nullBrand value, e.g. 'peugeot': lists its models and trims.
querystring | nullBrand/model/trim name, Persian or English, e.g. 'پژو 206'.
vehicle_typestringSection.

ba_filters Filter values

List the allowed values of one ba_search filter (states and cities, body types, fuels, colors, years...). E.g. kind=region query=اصفهان gives 'isfahan'; region lists states only unless query is given. Trucks: vehicle_type=truck kind=usage; motorcycles: kind=body, fuel or color. Not every kind exists for every section.

ParameterTypeDescription
kind *string
querystring | nullRegion/usage only: part of a name (Persian or English).
vehicle_typestringSection (usage is for trucks).

ba_new_prices New-car prices

Current price of every new-car trim of a brand or model on Bama's price list (market price or factory price). Each row is one trim and year: Toman price, provider (قیمت بازار market, قیمت کارخانه factory, قیمت نمایندگی dealer), daily change percent and a 30-quote trend. Brand-wide queries can be long; pass model and trim for one. See also ba_price_list (all brands), ba_market_stats (used), ba_car_specs.

ParameterTypeDescription
brand *stringBrand value from ba_vehicles, e.g. 'samand'.
history_daysintegerRecent price points per trim (0 = none).
modelstring | nullModel value, e.g. 'soren'. Omit for the whole brand.
trimstring | nulltrim_key from a result, e.g. 'pluscng'; needs model.

ba_search_bikes_trucks Search motorcycle and truck ads

Search motorcycle or truck (heavy vehicle, bus, machinery) ads on Bama with filters. Get values from ba_vehicles / ba_filters with the same vehicle_type. Prices Toman. Then ba_ad with a code. No total count: page while has_more is true. Cars: ba_search.

ParameterTypeDescription
kind *stringWhich section of Bama to search.
bodyarray | nullMotorcycles: ba_filters kind=body values, e.g. ['scooter'].
body_statusarray | nullTrucks: ba_filters kind=body_status values.
colorarray | nullba_filters kind=color values (vehicle_type=kind).
description_charsintegerCharacters of each ad's text to include (0 = none).
fuelarray | nullMotorcycles: ['gasoline'] or ['electric'].
installmentbooleanOnly installment ads.
mileage_frominteger | nullMinimum km.
mileage_tointeger | nullMaximum km (0 = zero-km only).
pageinteger0-based page (page 0 ~10 ads, later 30).
price_frominteger | nullMinimum price in Toman.
price_tointeger | nullMaximum price in Toman.
regionarray | nullba_filters kind=region values, e.g. ['tehran'].
sellerstring | null
sortstring
transmissionstring | null
usagearray | nullTrucks: ba_filters kind=usage values, e.g. ['tractor'].
vehiclearray | nullba_vehicles values (same vehicle_type), e.g. ['honda'].
with_photobooleanOnly ads with photos.
with_pricebooleanOnly ads with a stated price.
year_frominteger | nullEarliest year, Jalali.
year_tointeger | nullLatest year, Jalali.

ba_dealer_ads Dealer inventory

List the ads of one dealer (showroom) on Bama: the dealer's whole inventory, up to the first 100 ads. Use after ba_dealers. Filters and sorting run on the fetched list. Returns address, location and compact ads.

ParameterTypeDescription
dealer_id *integerId from ba_dealers or an ad's seller.id.
limitintegerMost ads to return.
price_tointeger | nullMaximum price in Toman.
querystring | nullOnly ads whose title/trim contains this text.
sortstring
year_frominteger | nullEarliest year, Jalali.
year_tointeger | nullLatest year, Jalali.

ba_price_list New-car price list

Search Bama's daily price list of new cars (or motorcycles) across all brands and rank it. Each row is one trim, year and price type: Toman price and change since the last quote. Use sort for "cheapest" or "biggest_rise". One model's history: ba_new_prices; specs: ba_car_specs.

ParameterTypeDescription
importedboolean | nullTrue = imported/assembled; False = domestic.
limitintegerMost rows to return.
price_typestring | nullOnly this price provider.
searchstring | nullBrand/model/trim words, English or Persian, e.g. 'tiggo'.
sortstring
vehicle_typestring

ba_market_pulse Car market pulse

Today's car market mood from Bama (score, trend and a short analysis per market) plus the biggest price movers. The analysis is Bama's Persian text. Movers are new cars with the largest price change; follow up with ba_new_prices or ba_price_list.

ParameterTypeDescription
moversintegerNumber of biggest price movers to list.

ba_car_specs Car and motorcycle specs and review

Technical specifications and the editorial review score of a car or motorcycle model from Bama's research pages. Without model it lists the brand's models. Returns power, torque, dimensions, rating, pros/cons, trims and generations. ba_ad shows what is for sale, ba_new_prices the new price.

ParameterTypeDescription
brand *stringBrand value from ba_vehicles, e.g. 'samand'.
description_charsintegerCharacters of the review text to include (0 = none).
full_equipmentbooleanAlso return equipment sections.
modelstring | nullModel value, e.g. 'soren'. Omit to list models.
trimstring | nullTrim key from a result's trims, e.g. 'pluscng'.
vehicle_typestring