Skip to main content
Glama
bama-ir-mcp

bama-ir-mcp

by sepehr071

Filter values

ba_filters
Read-onlyIdempotent

List valid Bama vehicle-search filter values—regions, body types, fuels, colors, years, and usage—by vehicle type or query to build accurate listing searches.

Instructions

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.

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_filters"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYes
queryNoRegion/usage only: part of a name (Persian or English).
vehicle_typeNoSection (usage is for trucks).car

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.2.0
    • removedInput schema / properties / query / anyOf
      Removed value: -[
      -  {
      -    "maxLength": 40,
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / query / description
      Previous value: -"For region and usage: part of a name (Persian or English) to find its value."New value: +"Region/usage only: part of a name (Persian or English)."
    • addedInput schema / properties / query / maxLength
      Added value: +40
    • addedInput schema / properties / query / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • changedInput schema / properties / vehicle_type / description
      Previous value: -"Section the values are for (default car). usage is for trucks."New value: +"Section (usage is for trucks)."
  2. First observedv0.1.1

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds genuine behavioral nuance beyond them: region returns states only unless query is supplied, and some kind/section combinations simply don't exist. It does not state whether results are paginated, localized, or returned as bare strings, leaving the enumeration behavior partly opaque.

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 with the core definition front-loaded, followed by the region/query caveat and then the per-section routing. The example is compact and functional. Density is high but nothing is filler; only the trailing 'not every kind exists' clause could be folded tighter.

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 3-parameter enumeration tool with no output schema, the description covers what an agent needs: which kind to pick, how query narrows results, and that results are section-dependent. The worked example implicitly reveals the return format (canonical ids like 'isfahan'). It falls short only in not explaining the majority of enum values or the exact response shape when multiple values match.

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 67% — query and vehicle_type are documented in the schema, but the 14-value kind enum has no per-value documentation there. The description partly compensates by mapping kinds to sections (usage→truck, body/fuel/color→motorcycle) and giving a worked example (kind=region, query=اصفهان → 'isfahan'). However, most of the enum values (body_status, cylinder, drive, engine_volume, economy, origin, lifestyle) are never explained, so coverage remains partial.

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?

The description opens with a specific verb+resource: 'List the allowed values of one ba_search filter', and immediately ties itself to the sibling ba_search by naming the filters it enumerates (states/cities, body types, fuels, colors, years). An agent can tell this is a lookup/enumeration tool rather than a search tool. It stops short of a full sentence-level contrast with the other siblings, but the ba_search linkage does most of the differentiation work.

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 concrete when-to-use routing: region for states (plus query for cities), vehicle_type=truck with kind=usage, and motorcycles with kind=body/fuel/color. It also warns that not every kind exists for every section, which tells the agent to expect empty results instead of retrying. There is no explicit 'call this before ba_search to discover valid filter values' instruction, so the caller must infer the workflow.

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