Skip to main content
Glama
bama-ir-mcp

bama-ir-mcp

by sepehr071

New-car prices

ba_new_prices
Read-onlyIdempotent

Retrieve current new-car trim prices by brand or model, including market, factory, and dealer rates, daily change percentages, and recent price trends for comparison.

Instructions

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.

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": {
      "brand": "<brand>"
    },
    "name": "ba_new_prices"
  }
}

Input Schema

NameRequiredDescriptionDefault
trimNotrim_key from a result, e.g. 'pluscng'; needs model.
brandYesBrand value from ba_vehicles, e.g. 'samand'.
modelNoModel value, e.g. 'soren'. Omit for the whole brand.
history_daysNoRecent price points per trim (0 = none).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changedv0.2.0
    • changedInput schema / properties / brand / description
      Previous value: -"Brand value from ba_vehicles, e.g. 'samand', 'peugeot', 'mvm'."New value: +"Brand value from ba_vehicles, e.g. 'samand'."
    • changedInput schema / properties / history_days / description
      Previous value: -"Include this many recent price points per trim (0 = none)."New value: +"Recent price points per trim (0 = none)."
    • removedInput schema / properties / model / anyOf
      Removed value: -[
      -  {
      -    "maxLength": 40,
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / model / description
      Previous value: -"Model value, e.g. 'soren' or '206ir'. Omit for all of the brand's models."New value: +"Model value, e.g. 'soren'. Omit for the whole brand."
    • addedInput schema / properties / model / maxLength
      Added value: +40
    • addedInput schema / properties / model / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / trim / anyOf
      Removed value: -[
      -  {
      -    "maxLength": 40,
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / trim / description
      Previous value: -"Trim key (trim_key in a result, e.g. 'pluscng') to list one trim only; needs model."New value: +"trim_key from a result, e.g. 'pluscng'; needs model."
    • addedInput schema / properties / trim / maxLength
      Added value: +40
    • addedInput schema / properties / trim / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  2. First observedv0.1.1

TDQS

A4.2/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), so the description's real contribution is the row shape (Toman price, provider, daily change percent, 30-quote trend) and the performance warning that brand-wide queries are slow. That latency disclosure is behavior an agent cannot get from annotations or schema, though pagination/row-count limits remain unstated.

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?

Three tight sentences: purpose and scope first, then row semantics, then the performance caveat and sibling pointers. Every clause carries information an agent would otherwise have to guess at.

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 no output schema, the description correctly spends words on return-row structure and provider values, plus latency and alternatives. It stops short of stating result limits or whether prices are updated intraday, which for a pricing tool would be the remaining gap.

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 coverage is 100%, so all four parameters are already documented, and the description adds only the cost tradeoff of omitting model/trim. It does not clarify history_days behavior beyond the schema's '0 = none', so the baseline 3 applies.

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 opens with a specific verb+resource+scope: 'Current price of every new-car trim of a brand or model on Bama's price list.' It also explicitly positions itself against siblings (ba_price_list for all brands, ba_market_stats for used, ba_car_specs for specs), so an agent can distinguish it 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?

It gives a concrete usage rule ('Brand-wide queries can be long; pass model and trim for one') and routes to three named alternatives by domain. What's missing is an explicit statement of when this tool is the wrong choice entirely, but the alternative routing is clear enough to select correctly.

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