Skip to main content
Glama

Masin.az

Search cars for sale

search_cars
Read-onlyIdempotent

Use this when the user wants to find cars for sale in Azerbaijan on masin.az. Filters by make, model, year, price, the city where the car is offered, fuel, gearbox, drive, condition, colour, mileage or a keyword, and sorts the results. Returns up to 20 active listings per page with price, year, mileage, fuel, gearbox, city, a photo and the listing link. Makes and models are matched by name and common spellings work; call list_makes_and_models when unsure what masin.az has. Results never include seller contact details: the listing page has them. Use get_listing for the full details of one car.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_cars"
  }
}

Input Schema

NameRequiredDescriptionDefault
fuelNoFuel type.
makeNoCar make, for example Toyota, Mercedes, Hyundai, Kia or LADA (VAZ). Common spellings such as Mersedes or Hundai are understood.
pageNoPage of results, starting at 1.
sortNoOrder of the results: newest first (default), price low to high, price high to low, newest model year first, or lowest mileage first.
colorNoBody colour.
driveNoDriven wheels.
limitNoListings per page, 1 to 20. Default 10.
modelNoModel of that make, for example Camry, Land Cruiser Prado or E 220. Needs make. A partial name such as Prado matches every model containing it, and a class or series such as E-Class matches all its models.
gearboxNoGearbox type.
keywordNoWords that must appear in the title or description, for example "panorama" or "kredit". Listings are written in Azerbaijani, so use Azerbaijani words.
year_maxNoLatest model year, for example 2020.
year_minNoEarliest model year, for example 2015.
conditionNonew or used.
price_maxNoHighest price, in price_currency.
price_minNoLowest price, in price_currency.
mileage_maxNoHighest mileage in kilometres.
listing_cityNoCity or district where the car is offered, for example Bakı, Sumqayıt or Gəncə (Latin spellings such as Baku also work). It filters the listings and is not the user's location.
price_currencyNoCurrency of price_min and price_max. Default AZN. Listings priced in another currency are compared at fixed approximate rates (1 USD = 1.7 AZN, 1 EUR = 1.95 AZN).

Output Schema

NameRequiredDescriptionDefault
pageYes
limitYes
totalYesMatching active listings in all pages.
matchedYesHow the make, model and city names were understood.
has_moreYesTrue when a next page has more results.
listingsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

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, closed-world), so the description's added value is the output-shape note (up to 20 active listings, per-page) and the important caveat that seller contact details are never included and must be obtained from the listing page. It also discloses forgiving name matching for makes/models. It stops short of stating rate limits or what happens on empty results.

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?

Front-loaded with the usage trigger, then filters, then return shape, then caveats — logical ordering with no filler. The enumeration of returned fields ('price, year, mileage, fuel, gearbox, city, a photo and the listing link') is largely redundant given an output schema exists.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 18-parameter, all-optional search tool, the description supplies the trigger, the filter scope, sorting behavior, name-matching behavior, pagination size, result limits, and a critical output exclusion (no seller contacts). Combined with a full schema, rich annotations and an output schema, nothing an agent needs to call it correctly is missing.

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 description coverage is 100% and every parameter, including currency conversion rates and Azerbaijani keyword guidance, is already documented in the schema. The description's only semantic addition is directing the agent to list_makes_and_models when make/model names are unknown, 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?

States a specific verb and resource plus the domain ('find cars for sale in Azerbaijan on masin.az') and enumerates the filter axes and sorting. It is clearly distinguishable from get_listing (single car) and search_plates (a different resource) named in the same text.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Opens with an explicit trigger ('Use this when the user wants to find cars for sale'), routes to list_makes_and_models when the make/model is uncertain, and routes to get_listing for full details of one car. Both the when-to-use and the alternative selection conditions are stated.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources