Skip to main content
Glama
bama-ir-mcp

bama-ir-mcp

by sepehr071

Dealer inventory

ba_dealer_ads
Read-onlyIdempotent

List a dealer's inventory on Bama with address, location, and up to 100 compact ads; filter and sort the fetched list by price, year, mileage, or query.

Instructions

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.

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": {
      "dealer_id": "<dealer_id>"
    },
    "name": "ba_dealer_ads"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNolisted
limitNoMost ads to return.
queryNoOnly ads whose title/trim contains this text.
year_toNoLatest year, Jalali.
price_toNoMaximum price in Toman.
dealer_idYesId from ba_dealers or an ad's seller.id.
year_fromNoEarliest year, Jalali.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed17 schema fields changedv0.2.0
    • changedInput schema / properties / dealer_id / description
      Previous value: -"Dealer id from ba_dealers or an ad's seller.id."New value: +"Id from ba_dealers or an ad's seller.id."
    • removedInput schema / properties / price_to / anyOf
      Removed value: -[
      -  {
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / price_to / description
      Previous value: -"Maximum price in Toman (ads with a price only)."New value: +"Maximum price in Toman."
    • addedInput schema / properties / price_to / minimum
      Added value: +0
    • addedInput schema / properties / price_to / type
      Added value: +[
      +  "integer",
      +  "null"
      +]
    • removedInput schema / properties / query / anyOf
      Removed value: -[
      -  {
      -    "maxLength": 40,
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / query / description
      Previous value: -"Only ads whose title or trim contains this text (any language)."New value: +"Only ads whose title/trim contains this text."
    • addedInput schema / properties / query / maxLength
      Added value: +40
    • addedInput schema / properties / query / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • 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.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 description's added value is the 100-ad cap and the note that 'filters and sorting run on the fetched list' — a meaningful disclosure that filtering is post-fetch and can yield incomplete results. It does not explain what 'compact ads' contains or what happens when a dealer exceeds 100 ads.

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 short paragraphs, zero filler, and the inventory scope plus the 100 cap are front-loaded ahead of the workflow hint. Every sentence (scope, prerequisite, filter semantics, return shape) 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 7-parameter, no-output-schema tool, the description covers purpose, prerequisite, cap, filter semantics, and a rough return shape (address, location, compact ads). The only real gap is that the truncation behavior past 100 ads and the structure of 'compact ads' remain undefined.

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; the description earns an extra point by clarifying that query/year/price filters and sort operate on the already-fetched list rather than server-side, which changes how an agent should interpret sparse filtered results. Individual parameter meanings are still left to the schema.

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?

The description names a specific verb and resource ('List the ads of one dealer (showroom)') and immediately bounds the scope ('the dealer's whole inventory, up to the first 100 ads'). That scope distinguishes it from general siblings such as ba_search or ba_vehicles without the agent needing to open another 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?

'Use after ba_dealers' gives explicit ordering and points to the prerequisite sibling for obtaining dealer_id. It stops short of stating when NOT to use this tool (e.g., for cross-dealer search, use ba_search), so it is clear context rather than full routing guidance.

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