Skip to main content
Glama
bama-ir-mcp

bama-ir-mcp

by sepehr071

Search motorcycle and truck ads

ba_search_bikes_trucks
Read-onlyIdempotent

Search Bama motorcycle, truck, bus, and machinery ads with filters for price, year, mileage, region, seller, and photos to find matching listings.

Instructions

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.

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": {
      "kind": "<kind>"
    },
    "name": "ba_search_bikes_trucks"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoMotorcycles: ba_filters kind=body values, e.g. ['scooter'].
fuelNoMotorcycles: ['gasoline'] or ['electric'].
kindYesWhich section of Bama to search.
pageNo0-based page (page 0 ~10 ads, later 30).
sortNorelevance
colorNoba_filters kind=color values (vehicle_type=kind).
usageNoTrucks: ba_filters kind=usage values, e.g. ['tractor'].
regionNoba_filters kind=region values, e.g. ['tehran'].
sellerNo
vehicleNoba_vehicles values (same vehicle_type), e.g. ['honda'].
year_toNoLatest year, Jalali.
price_toNoMaximum price in Toman.
year_fromNoEarliest year, Jalali.
mileage_toNoMaximum km (0 = zero-km only).
price_fromNoMinimum price in Toman.
with_photoNoOnly ads with photos.
with_priceNoOnly ads with a stated price.
body_statusNoTrucks: ba_filters kind=body_status values.
installmentNoOnly installment ads.
mileage_fromNoMinimum km.
transmissionNo
description_charsNoCharacters of each ad's text to include (0 = none).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed66 schema fields changedv0.2.0
    • removedInput schema / properties / body / anyOf
      Removed value: -[
      -  {
      -    "items": {
      -      "type": "string"
      -    },
      -    "maxItems": 10,
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / body / description
      Previous value: -"Motorcycles: type from ba_filters kind=body, e.g. ['race'], ['scooter']."New value: +"Motorcycles: ba_filters kind=body values, e.g. ['scooter']."
    • addedInput schema / properties / body / items
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / body / maxItems
      Added value: +10
    • addedInput schema / properties / body / type
      Added value: +[
      +  "array",
      +  "null"
      +]
    • removedInput schema / properties / body_status / anyOf
      Removed value: -[
      -  {
      -    "items": {
      -      "type": "string"
      -    },
      -    "maxItems": 10,
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / body_status / description
      Previous value: -"Trucks: paint condition from ba_filters kind=body_status, e.g. ['nopaint']."New value: +"Trucks: ba_filters kind=body_status values."
    • addedInput schema / properties / body_status / items
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / body_status / maxItems
      Added value: +10
    • addedInput schema / properties / body_status / type
      Added value: +[
      +  "array",
      +  "null"
      +]
    • removedInput schema / properties / color / anyOf
      Removed value: -[
      -  {
      -    "items": {
      -      "type": "string"
      -    },
      -    "maxItems": 10,
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / color / description
      Previous value: -"Color values from ba_filters (vehicle_type=kind), e.g. ['red']."New value: +"ba_filters kind=color values (vehicle_type=kind)."
    • addedInput schema / properties / color / items
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / color / maxItems
      Added value: +10
    • addedInput schema / properties / color / type
      Added value: +[
      +  "array",
      +  "null"
      +]
    • changedInput schema / properties / description_chars / description
      Previous value: -"Include this many characters of each ad's text (0 = none)."New value: +"Characters of each ad's text to include (0 = none)."
    • removedInput schema / properties / fuel / anyOf
      Removed value: -[
      -  {
      -    "items": {
      -      "type": "string"
      -    },
      -    "maxItems": 10,
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / fuel / items
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / fuel / maxItems
      Added value: +10
    • addedInput schema / properties / fuel / type
      Added value: +[
      +  "array",
      +  "null"
      +]
    • removedInput schema / properties / mileage_from / anyOf
      Removed value: -[
      -  {
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / mileage_from / description
      Previous value: -"Minimum mileage in km."New value: +"Minimum km."
    • addedInput schema / properties / mileage_from / minimum
      Added value: +0
    • addedInput schema / properties / mileage_from / type
      Added value: +[
      +  "integer",
      +  "null"
      +]
    • removedInput schema / properties / mileage_to / anyOf
      Removed value: -[
      -  {
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / mileage_to / description
      Previous value: -"Maximum mileage in km (0 = zero-km only)."New value: +"Maximum km (0 = zero-km only)."
    • addedInput schema / properties / mileage_to / minimum
      Added value: +0
    • addedInput schema / properties / mileage_to / type
      Added value: +[
      +  "integer",
      +  "null"
      +]
    • changedInput schema / properties / page / description
      Previous value: -"0-based page. Page 0 is short (about 10 ads), later pages 30."New value: +"0-based page (page 0 ~10 ads, later 30)."
    • removedInput schema / properties / price_from / anyOf
      Removed value: -[
      -  {
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / price_from / minimum
      Added value: +0
    • addedInput schema / properties / price_from / type
      Added value: +[
      +  "integer",
      +  "null"
      +]
    • removedInput schema / properties / price_to / anyOf
      Removed value: -[
      -  {
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / price_to / minimum
      Added value: +0
    • addedInput schema / properties / price_to / type
      Added value: +[
      +  "integer",
      +  "null"
      +]
    • removedInput schema / properties / region / anyOf
      Removed value: -[
      -  {
      -    "items": {
      -      "type": "string"
      -    },
      -    "maxItems": 10,
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / region / description
      Previous value: -"State or city values from ba_filters kind=region, e.g. ['tehran']."New value: +"ba_filters kind=region values, e.g. ['tehran']."
    • addedInput schema / properties / region / items
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / region / maxItems
      Added value: +10
    • addedInput schema / properties / region / type
      Added value: +[
      +  "array",
      +  "null"
      +]
    • removedInput schema / properties / seller / anyOf
      Removed value: -[
      -  {
      -    "enum": [
      -      "dealer",
      -      "private"
      -    ],
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / seller / description
      Removed value: -"Dealers only or private only."
    • addedInput schema / properties / seller / enum
      Added value: +[
      +  "dealer",
      +  "private",
      +  null
      +]
    • addedInput schema / properties / seller / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / transmission / anyOf
      Removed value: -[
      -  {
      -    "enum": [
      -      "manual",
      -      "automatic"
      -    ],
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / transmission / enum
      Added value: +[
      +  "manual",
      +  "automatic",
      +  null
      +]
    • addedInput schema / properties / transmission / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / usage / anyOf
      Removed value: -[
      -  {
      -    "items": {
      -      "type": "string"
      -    },
      -    "maxItems": 10,
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / usage / description
      Previous value: -"Trucks: usage from ba_filters kind=usage, e.g. ['tractor'], ['truck,axle1,tanker']."New value: +"Trucks: ba_filters kind=usage values, e.g. ['tractor']."
    • addedInput schema / properties / usage / items
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / usage / maxItems
      Added value: +10
    • addedInput schema / properties / usage / type
      Added value: +[
      +  "array",
      +  "null"
      +]
    • removedInput schema / properties / vehicle / anyOf
      Removed value: -[
      -  {
      -    "items": {
      -      "type": "string"
      -    },
      -    "maxItems": 10,
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / vehicle / description
      Previous value: -"Brand or brand,model values from ba_vehicles with the same vehicle_type, e.g. ['honda']."New value: +"ba_vehicles values (same vehicle_type), e.g. ['honda']."
    • addedInput schema / properties / vehicle / items
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / vehicle / maxItems
      Added value: +10
    • addedInput schema / properties / vehicle / type
      Added value: +[
      +  "array",
      +  "null"
      +]
    • changedInput schema / properties / with_price / description
      Previous value: -"Only ads that state a price."New value: +"Only ads with a stated price."
    • removedInput schema / properties / year_from / anyOf
      Removed value: -[
      -  {
      -    "maximum": 1500,
      -    "minimum": 1300,
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / year_from / maximum
      Added value: +1500
    • addedInput schema / properties / year_from / minimum
      Added value: +1300
    • addedInput schema / properties / year_from / type
      Added value: +[
      +  "integer",
      +  "null"
      +]
    • removedInput schema / properties / year_to / anyOf
      Removed value: -[
      -  {
      -    "maximum": 1500,
      -    "minimum": 1300,
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / year_to / maximum
      Added value: +1500
    • addedInput schema / properties / year_to / minimum
      Added value: +1300
    • addedInput schema / properties / year_to / type
      Added value: +[
      +  "integer",
      +  "null"
      +]
  2. First observedv0.1.1

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds genuinely useful behavior beyond that: there is no total count, so the agent must page while has_more is true, and prices are in Toman. It says nothing about rate limits, result-field contents, or how many ads come back beyond the schema's page-size note.

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?

Four short lines with the core purpose front-loaded and no filler; the filtering, prerequisite and pagination notes are all load-bearing. Some compression hurts readability, notably "Then ba_ad with a code", which is terse to the point of ambiguity.

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 22-parameter tool with no output schema, the description covers the search scope, value sourcing and pagination loop, which is the critical path. It leaves the response shape only obliquely implied (results apparently carry ad codes and a has_more flag) and does not say whether filters are silently ignored for the wrong kind.

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 86%, so the baseline is 3, but the description earns a bump by telling the agent where the free-text filter values come from (ba_vehicles / ba_filters with the matching vehicle_type) and by restating the currency unit. It does not clarify the kind-dependent applicability of body/usage/body_status beyond what the schema already marks.

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?

States a specific verb and resource ("Search motorcycle or truck (heavy vehicle, bus, machinery) ads on Bama with filters") and explicitly names the sibling that handles the other case ("Cars: ba_search"). An agent can distinguish this from ba_search and ba_search_bikes_trucks' neighbours without opening any schema.

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 a real routing rule (cars go to ba_search) plus prerequisites (resolve filter values via ba_vehicles / ba_filters with the same vehicle_type) and the follow-up step (ba_ad with a code). The guidance is compressed to near-telegraphic phrasing, so the downstream step is clear in intent but not in mechanics.

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