Search Car and Van Inventory
search_car_and_van_inventoryFull Description
Search the Azure AI Search cars and vans index for matching vehicles. Filterable fields: vehicle/vehicleSpecification/make (e.g. 'BMW','Ford','Audi'), vehicle/vehicleSpecification/model, vehicle/vehicleSpecification/transmissionType ('Automatic','Manual'), vehicle/vehicleSpecification/fuelType ('Petrol','Diesel','Electric','Hybrid'), vehicle/vehicleSpecification/colour, vehicle/vehicleSpecification/bodyStyle ('Hatchback','SUV','Saloon','Estate','Coupe','Convertible','People Carrier','MPV','Pick-up'), vehicle/pricing/price (number), vehicle/mileage (number), vehicle/registrationDate (date). Use OData filter syntax for precise results. QUERY EXPANSION: For vague or colour-only queries (e.g. 'red car', 'family car'), run a broad first search. If results are sparse (<3), call the tool again with common UK makes added to the query: Ford, Volkswagen, Vauxhall, BMW, Audi, Toyota, Nissan, Kia, Hyundai, Mercedes-Benz, Honda, Renault. Body style mappings: 'family car' → SUV/Estate, 'city car' → Hatchback, 'sports car' → Coupe/Convertible. Colour filtering: use vehicle/vehicleSpecification/colour eq 'Grey' (title-cased British English: Grey not Gray, Silver not Aluminium). Also include colour in free-text query for ranking. DEFAULT PRICE FLOOR: unless the user specifies a price, always add vehicle/pricing/price ge 1500 to exclude low-value salvage or non-runner stock. For richer search strategy, load the 'vehicle_search_guidance' prompt.
Parameters (1 required, 4 optional)
querystringSearch query for car and van inventory, specs, or models
filterstringOData filter expression. Examples: vehicle/vehicleSpecification/make eq 'BMW', vehicle/pricing/price le 15000, vehicle/vehicleSpecification/transmissionType eq 'Automatic' and vehicle/vehicleSpecification/bodyStyle eq 'SUV', vehicle/mileage le 50000
orderbystringSort order. Comma-separated list of: price asc, price desc, mileage asc, mileage desc, registrationDate asc, registrationDate desc, engineSize asc, engineSize desc, createdTime desc, distance asc (requires postcode/place in query). Example: 'price asc' or 'mileage asc, price desc'
selectarrayOptional fields to include in result documents, e.g. ['id','vehicle/vehicleSpecification/make','vehicle/pricing/price']
topintegerMaximum number of results to return (1-20)