search_uk_recent_cars
Search UK car listings from the last 90 days for expired or sold vehicles, and filter by make, model, price, mileage, location, or date to analyze past market activity.
Instructions
Search for recent/expired cars in the UK market (last 90 days).
This tool searches recent inventory data for EXPIRED/SOLD listings only. It does NOT include active listings - use search_uk_active_cars for current inventory.
IMPORTANT: Before filtering by specific field values (make, model, trim, body_type, fuel_type, etc.), use the 'facets' parameter to discover available values in the API. Field values may be represented differently than expected. For example:
Use facets="make,model,trim,body_type" to see all available options
This prevents filtering errors due to incorrect field value assumptions
Facets show actual data distribution and available filter options
Args: kwargs: Additional parameters as a string (e.g., "country=Wales,make=BMW").
# Location filters
latitude: Latitude component of location (range: -90 to 90).
longitude: Longitude component of location (range: -180 to 180).
radius: Radius around the search location in miles (max: 100 for recent search).
zip: To filter listing on ZIP around which they are listed.
postal_code: To filter listing on postal code around which they are listed.
city: To filter listing on City in which they are listed.
county: To filter listing on county in which they are listed.
state: To filter listing on State in which they are listed.
# Financial options
car_include_lease: Boolean param to search for listings that include leasing options.
car_include_finance: Boolean param to search for listings that include finance options.
lease_term: Search listings with exact lease term, or range (min-max e.g. 30-60).
lease_down_payment: Search listings with exact down payment in lease offers or range.
lease_emp: Search listings with lease Estimated Monthly Payment (EMI) or range.
finance_loan_term: Search listings with exact finance loan term or range.
finance_loan_apr: Search listings with finance Annual Percentage Rate or range.
finance_emp: Search listings with finance Estimated Monthly Payment (EMI) or range.
finance_down_payment: Search listings with exact down payment in finance offers or range.
finance_down_payment_per: Search listings with exact down payment percentage or range.
# Vehicle specifications
car_type: Car type. Allowed values are - new / used / certified.
year_range: Year range to filter listings (format: min-max e.g. 2019-2021).
year: To filter listing on their year (comma-separated values).
make: To filter listings on their make (comma-separated values).
model: To filter listings on their model (comma-separated values).
trim: To filter listing on their trim (comma-separated values).
variant: To filter listing on their variant (comma-separated values).
body_type: To filter listing on their body type (comma-separated values).
body_subtype: Body subtype to filter listings (comma-separated values from facets API).
vehicle_type: To filter listing on their vehicle type (comma-separated values).
wheelbase_category: To filter listing on their wheelbase category.
ymmt: Comma separated list of Year, Make, Model, Trim combinations.
match: Comma separated list of fields for exact match (e.g., year,make,model,trim).
# Mechanical specifications
cylinders: To filter listing on their cylinders (comma-separated values).
transmission: To filter listing on their transmission (comma-separated values).
doors: Doors to filter the cars on (comma-separated integer values).
drivetrain: To filter listing on their drivetrain (comma-separated values).
engine: To filter listing on their engine (comma-separated values).
engine_size: Engine Size to match (comma-separated values from facets API).
engine_size_range: Engine size range filter (min-max format).
engine_aspiration: Engine Aspiration to match (comma-separated values from facets).
engine_block: Engine Block to match (comma-separated values from facets).
fuel_type: To filter listing on their fuel type (comma-separated values).
# Color filters
exterior_color: Exterior color to match (comma-separated values from facets API).
interior_color: Interior color to match (comma-separated values from facets API).
base_exterior_color: Base exterior color to match (comma-separated values).
base_interior_color: Base interior color to match (comma-separated values).
base_ext_color: Base exterior color to match (alias for base_exterior_color).
base_int_color: Base interior color to match (alias for base_interior_color).
# Price and mileage
miles_range: Miles range to filter listings (format: min-max e.g. 1000-5000).
price_range: Price range to filter listings (format: min-max e.g. 1000-5000).
msrp_range: MSRP range to filter listings (format: min-max e.g. 1000-5000).
price_change_range: Price change range to filter listings.
# MPG and efficiency
highway_mpg_range: Highway mileage range for UK (min-max format e.g. 1000-5000).
city_mpg_range: City mileage range for UK (min-max format e.g. 1000-5000).
combined_mpg_range: Combined mileage range for UK (min-max format).
ulez_compliant: Filter for ULEZ compliant vehicles.
# Timing and date filters
dom_range: Days on Market range to filter cars (format: min-max e.g. 10-50).
dom_active_range: Active Days on Market range to filter cars.
dom_180_range: Last 180 Days on Market range to filter cars.
dos_active_range: Days on Site active range filter.
last_seen_range: Last seen date range (YYYYMMDD-YYYYMMDD format).
first_seen_range: First seen date range (YYYYMMDD-YYYYMMDD format).
first_seen_at_source_range: First seen at source date range.
first_seen_at_mc_range: First seen at MC date range.
last_seen_days: Last seen days range in format "max-min" (e.g., "3-1" for 1 to 3 days ago).
first_seen_days: First seen days range in format "max-min" (e.g., "30-10" for 10 to 30 days ago).
first_seen_at_source_days: First seen at source days range in format "max-min" (e.g., "15-5").
first_seen_at_mc_days: First seen at MC days range in format "max-min" (e.g., "15-5").
active_inventory_date_range: Active inventory date range filter.
# Dealer and source filters
dealer_id: Dealer id to filter the listings.
dealer_name: Filter listings on dealer_name.
dealer_type: Filter based on dealer type (franchise or independent).
dealership_group_name: Name of the dealership group to search for.
source: To filter listing on their source (comma-separated URLs).
exclude_dealer_ids: A list of dealer ids to exclude from result.
exclude_mc_website_ids: A list of MC website ids to exclude from result.
exclude_sources: A list of sources to exclude from result.
mc_website_id: Website id to filter the listings.
mc_dealer_id: To filter listings on their mc_dealer_id.
mc_location_id: To filter listings on their mc_location_id.
mc_rooftop_id: To filter listings on their mc_rooftop_id.
mc_dealership_group_id: To filter listings on their mc_dealership_group_id.
mc_dealership_group_name: To filter listings on their mc_dealership_group_name.
mc_sub_dealership_group_id: To filter listings on their mc_sub_dealership_group_id.
mc_sub_dealership_group_name: To filter listings on their mc_sub_dealership_group_name.
mc_category: Filter based on mc_category (Dealer, Dealership Group, etc.).
# UK specific filters
insurance_group: Insurance group filter for UK vehicles.
vrm: Vehicle Registration Mark (VRM) filter.
num_owners: Number of owners filter.
write_off_category: Write off category filter.
exclude_write_off_category: To exclude write off category.
fca_status: To filter on fca status.
seating_capacity: To filter on vehicle seating capacity.
# Search configuration
sort_by: Sort by field. Default sort field is distance from the given point.
sort_order: Sort order - asc or desc. Default sort order is asc.
rows: Number of results to return. Default is 10. Max is 50.
start: Page number to fetch results. Default is 0. Max pagination: 10000.
include_non_vin_listings: To include non vin listings. Default is false.
# Analytics and facets
facets: Field facets return unique terms and their counts for categorical data, useful for building search filters and understanding inventory distribution.
Syntax: facets=field_name|offset|limit|min_count
- offset (default: 0): Start position for terms
- limit (default: 20, max: 1000): Number of terms to return
- min_count (optional): Minimum count for a term to be included
Example: facets=make|0|60|2 returns top 60 makes with at least 2 listings each
range_facets: Comma separated list of numeric fields for range facets.
facet_sort: Controls sort order of facet terms:
- count (default): Sort by frequency (highest first)
- index: Sort alphabetically
stats: List of fields for which stats need to be generated.
# Advanced filters
country: To filter listing on Country (uk, england, scotland, northern ireland, wales).
plot: If true, results in around 25k coordinates with limited fields to plot.
nodedup: If true, API will give results without is_searchable.
dedup: If true, will give results with is_searchable irrespective of dealer.
owned: When used with dealer_id, returns listings owned by dealer.
exclude_certified: Boolean param to exclude certified cars from search results.
photo_links: Boolean to include only listings that have photo_links.
photo_links_cached: Boolean to include only listings with cached photo_links.
stock_no: To filter listing on their stock number on lot.
sold: Boolean parameter to fetch only sold listings.
include_relevant_links: To include_relevant_links. Default is true.
expired: Boolean flag to either fetch only the expired listings or active ones.
exclude_make: Make values to exclude from results.
model_variant: Model variant filter.
is_vat_included: Boolean filter for VAT inclusion.
vdp_url: Vehicle details page URL filter.
# Photo optimization parameter (MCP server only)
fetch_all_photos: When False (default), limits photo links to single photo per listing to reduce token usage. When True, returns all photo links.
# Object filtering parameters (MCP server only, not passed to API)
include_dealer_object: When True, includes dealer object in response. Dealer object structure:
- id (number): Unique dealer identifier
- website (string): Dealer website URL
- name (string): Dealer business name
- dealer_type (string, optional): Dealer classification (franchise, independent)
- street, city, county, country (string, optional): Address components
- latitude, longitude (string, optional): Geographic coordinates
- postal_code (string, optional): UK postal code
- phone (string, optional): Contact phone number
- seller_email (string, optional): Contact email address
- fca_status (string, optional): FCA authorization status
- preferred_dealer (boolean, optional): Flag indicating if this is a preferred dealer
include_mc_dealership_object: When True, includes mc_dealership object in response. McDealership object structure:
- mc_website_id (number, optional): MarketCheck website identifier
- mc_dealer_id (number, optional): MarketCheck dealer identifier
- mc_location_id (number, optional): MarketCheck location identifier
- mc_rooftop_id (number, optional): MarketCheck rooftop identifier
- mc_dealership_group_id (number, optional): MarketCheck dealership group identifier
- mc_dealership_group_name (string, optional): MarketCheck dealership group name
- mc_sub_dealership_group_id (number, optional): MarketCheck sub-dealership group identifier
- mc_sub_dealership_group_name (string, optional): MarketCheck sub-dealership group name
- mc_category (string, optional): MarketCheck seller category. UK market only supports: dealer
- website (string, optional): Dealer website URL
- name (string, optional): Dealer business name
- dealer_type (string, optional): Dealer classification (franchise, independent)
- street, city, county, country (string, optional): Address components
- latitude, longitude (string, optional): Geographic coordinates
- postal_code (string, optional): UK postal code
- phone (string, optional): Contact phone number
- fca_status (string, optional): FCA authorization status
include_build_object: When True, includes build object in response. Build object structure:
- year (number): Model year
- make (string): Vehicle manufacturer
- model (string, optional): Vehicle model
- model_variant (string, optional): Vehicle model variant
- trim (string, optional): Trim level
- variant (string, optional): Specific variant identifier
- body_type (string, optional): Body style (saloon, hatchback, estate, etc.)
- vehicle_type (string, optional): Vehicle category
- transmission (string, optional): Transmission type
- drivetrain (string, optional): Drivetrain configuration
- fuel_type (string, optional): Fuel type (petrol, diesel, electric, hybrid, etc.)
- engine (string, optional): Engine description
- engine_size (number, optional): Engine displacement
- doors (number, optional): Number of doors
- cylinders (number, optional): Number of cylinders
- made_in (string, optional): Manufacturing country
- overall_height, overall_length, overall_width (string, optional): Vehicle dimensions
- wheelbase_category (string, optional): Wheelbase classification
- std_seating (string, optional): Standard seating capacity
- highway_mpg (number, optional): Highway fuel economy
- city_mpg (number, optional): City fuel economy
- combined_mpg (number, optional): Combined fuel economy
- seating_capacity (number, optional): Passenger seating capacity
- performance_torque_ftlb (number, optional): Torque in foot-pounds
- performance_maxspeed_mph (number, optional): Maximum speed in miles per hour
- performance_torque_rpm (number, optional): Torque at RPM
- performance_power_bhp (number, optional): Power in brake horsepower
- performance_power_rpm (number, optional): Power at RPM
- performance_torque_nm (number, optional): Torque in Newton-meters
- performance_power_kw (number, optional): Power in kilowatts
- performance_co2 (number, optional): CO2 emissions rating
- euro_status (number, optional): Euro emissions standard statusReturns: JSON string containing recent search results with expired/sold listings
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_uk_recent_cars"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vrm | No | ||
| zip | No | ||
| city | No | ||
| make | No | ||
| plot | No | ||
| rows | No | ||
| sold | No | ||
| trim | No | ||
| year | No | ||
| ymmt | No | ||
| dedup | No | ||
| doors | No | ||
| match | No | ||
| model | No | ||
| owned | No | ||
| start | No | ||
| state | No | ||
| stats | No | ||
| county | No | ||
| engine | No | ||
| facets | No | ||
| radius | No | ||
| source | No | ||
| country | No | ||
| expired | No | ||
| nodedup | No | ||
| sort_by | No | ||
| variant | No | ||
| vdp_url | No | ||
| car_type | No | ||
| latitude | No | ||
| stock_no | No | ||
| body_type | No | ||
| cylinders | No | ||
| dealer_id | No | ||
| dom_range | No | ||
| fuel_type | No | ||
| lease_emp | No | ||
| longitude | No | ||
| drivetrain | No | ||
| facet_sort | No | ||
| fca_status | No | ||
| lease_term | No | ||
| msrp_range | No | ||
| num_owners | No | ||
| sort_order | No | ||
| year_range | No | ||
| dealer_name | No | ||
| dealer_type | No | ||
| engine_size | No | ||
| finance_emp | No | ||
| mc_category | No | ||
| miles_range | No | ||
| photo_links | No | ||
| postal_code | No | ||
| price_range | No | ||
| body_subtype | No | ||
| engine_block | No | ||
| exclude_make | No | ||
| mc_dealer_id | No | ||
| range_facets | No | ||
| transmission | No | ||
| vehicle_type | No | ||
| dom_180_range | No | ||
| mc_rooftop_id | No | ||
| mc_website_id | No | ||
| model_variant | No | ||
| base_ext_color | No | ||
| base_int_color | No | ||
| city_mpg_range | No | ||
| exterior_color | No | ||
| interior_color | No | ||
| last_seen_days | No | ||
| mc_location_id | No | ||
| ulez_compliant | No | ||
| exclude_sources | No | ||
| first_seen_days | No | ||
| insurance_group | No | ||
| is_vat_included | No | ||
| last_seen_range | No | ||
| dom_active_range | No | ||
| dos_active_range | No | ||
| fetch_all_photos | No | ||
| finance_loan_apr | No | ||
| first_seen_range | No | ||
| seating_capacity | No | ||
| car_include_lease | No | ||
| engine_aspiration | No | ||
| engine_size_range | No | ||
| exclude_certified | No | ||
| finance_loan_term | No | ||
| highway_mpg_range | No | ||
| combined_mpg_range | No | ||
| exclude_dealer_ids | No | ||
| lease_down_payment | No | ||
| photo_links_cached | No | ||
| price_change_range | No | ||
| wheelbase_category | No | ||
| write_off_category | No | ||
| base_exterior_color | No | ||
| base_interior_color | No | ||
| car_include_finance | No | ||
| finance_down_payment | No | ||
| include_build_object | No | ||
| dealership_group_name | No | ||
| first_seen_at_mc_days | No | ||
| include_dealer_object | No | ||
| exclude_mc_website_ids | No | ||
| first_seen_at_mc_range | No | ||
| include_relevant_links | No | ||
| mc_dealership_group_id | No | ||
| finance_down_payment_per | No | ||
| include_non_vin_listings | No | ||
| mc_dealership_group_name | No | ||
| first_seen_at_source_days | No | ||
| exclude_write_off_category | No | ||
| first_seen_at_source_range | No | ||
| mc_sub_dealership_group_id | No | ||
| active_inventory_date_range | No | ||
| include_mc_dealership_object | No | ||
| mc_sub_dealership_group_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |