search_uk_active_cars
Search active UK car listings by location, make, model, price, mileage, and vehicle specifications using MarketCheck data. Use facets to discover valid filter values before narrowing results.
Instructions
Search for active cars in the UK market.
This tool searches for currently active car listings in the UK using the Marketcheck API. It supports comprehensive filtering by location, vehicle specifications, price, and more. Includes all parameters supported by the /search/car/uk/active endpoint.
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: 7000).
postal_code: To filter listing on postal code around which they are listed.
zip: To filter listing on ZIP 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.
# Vehicle specifications
car_type: Car type. Allowed values are - new / used.
year: To filter listing on their year (comma-separated values).
year_range: Year range to filter listings (format: min-max e.g. 2019-2021).
make: To filter listings on their make (comma-separated values).
model: To filter listings on their model (comma-separated values).
variant: To filter listing on their variant (comma-separated values).
trim: To filter listing on their trim (comma-separated values).
body_type: To filter listing on their body type (comma-separated values).
ymmt: Comma separated list of Year, Make, Model, Trim combinations.
# Mechanical specifications
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).
fuel_type: To filter listing on their fuel type (comma-separated values).
cylinders: To filter listing on their cylinders (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: Price change filter for listings.
price_change_range: Price change range to filter listings.
# 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.
# Advanced filters
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.
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.
# UK specific filters
co2_emissions: CO2 emissions filter (comma-separated values).
insurance_group: Insurance group filter for UK vehicles.
vehicle_registration_mark: Vehicle Registration Mark filter.
vehicle_registration_date_range: Vehicle registration date range (YYYYMMDD-YYYYMMDD).
num_owners: Number of owners filter.
fca_status: To filter on fca status.
seating_capacity: To filter on vehicle seating capacity.
vrm: Vehicle Registration Mark (VRM) filter.
write_off_category: Write off category filter.
exclude_write_off_category: To exclude write off category.
ulez_compliant: Filter for ULEZ compliant vehicles.
# Dealer and source filters
source: To filter listing on their source (comma-separated URLs).
dealer_id: Dealer id to filter the listings.
exclude_sources: A list of sources to exclude from result.
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.
dealer_type: Filter based on dealer type (franchise or independent).
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.).
# Inventory and timing filters
stock_no: To filter listing on their stock number on lot.
inventory_count_range: Inventory count range to filter listings (min-max format).
include_non_vin_listings: To include non vin listings. Default is false.
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.
# Photo and media filters
photo_links: Boolean to include only listings that have photo_links.
photo_links_cached: Boolean to include only listings with cached photo_links.
min_photo_links: Minimum number of photo links required.
min_photo_links_cached: Minimum number of cached photo links required.
vdp_url: Vehicle details page URL filter.
# Engine specifications
engine_size: Engine Size to match (comma-separated values from facets API).
engine_size_range: Engine size range filter.
highway_mpg_range: Highway mileage range (min-max format e.g. 1000-5000).
city_mpg_range: City mileage range (min-max format e.g. 1000-5000).
combined_mpg_range: Combined mileage range for UK (min-max format).
performance_co2_range: Performance CO2 range filter.
# Electric vehicle filters
ev_battery_type: Electric vehicle battery type filter.
ev_battery_capacity_range: EV battery capacity range filter.
ev_vehicle_range: Electric vehicle range filter.
# Car location filters
car_location_seller_name: Car location seller name filter.
car_location_street: Car location street filter.
car_location_city: Car location city filter.
car_location_county: Car location county filter.
car_location_zip: Car location ZIP filter.
car_location_latitude: Car location latitude coordinate.
car_location_longitude: Car location longitude coordinate.
# Additional filters
exclude_make: Make values to exclude from results.
preferred_dealers: Preferred dealers filter.
include_preferred_dealer_flag: Include preferred dealer flag.
preferred_dealers_only: Filter to show only preferred dealers.
model_variant: Model variant filter.
is_vat_included: Boolean filter for VAT inclusion.
uvc_id: UVC (Universal Vehicle Code) ID filter.
owned: When used with dealer_id, returns listings owned by dealer.
match: Comma separated list of fields for exact match.
vehicle_type: To filter listing on their vehicle type.
wheelbase_category: To filter listing on their wheelbase category.
# 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 search results with listings, facets, and statistics
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_active_cars"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vrm | No | ||
| zip | No | ||
| city | No | ||
| make | No | ||
| plot | No | ||
| rows | 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 | ||
| uvc_id | No | ||
| country | 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 | ||
| longitude | No | ||
| drivetrain | No | ||
| facet_sort | No | ||
| fca_status | No | ||
| msrp_range | No | ||
| num_owners | No | ||
| sort_order | No | ||
| year_range | No | ||
| dealer_type | No | ||
| engine_size | No | ||
| mc_category | No | ||
| miles_range | No | ||
| photo_links | No | ||
| postal_code | No | ||
| price_range | No | ||
| exclude_make | No | ||
| mc_dealer_id | No | ||
| price_change | No | ||
| range_facets | No | ||
| transmission | No | ||
| vehicle_type | No | ||
| co2_emissions | 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 | ||
| ev_battery_type | No | ||
| exclude_sources | No | ||
| first_seen_days | No | ||
| insurance_group | No | ||
| is_vat_included | No | ||
| last_seen_range | No | ||
| min_photo_links | No | ||
| car_location_zip | No | ||
| dom_active_range | No | ||
| dos_active_range | No | ||
| ev_vehicle_range | No | ||
| fetch_all_photos | No | ||
| first_seen_range | No | ||
| seating_capacity | No | ||
| car_location_city | No | ||
| engine_size_range | No | ||
| highway_mpg_range | No | ||
| preferred_dealers | No | ||
| combined_mpg_range | No | ||
| exclude_dealer_ids | 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_location_county | No | ||
| car_location_street | No | ||
| include_build_object | No | ||
| car_location_latitude | No | ||
| first_seen_at_mc_days | No | ||
| include_dealer_object | No | ||
| inventory_count_range | No | ||
| performance_co2_range | No | ||
| car_location_longitude | No | ||
| exclude_mc_website_ids | No | ||
| first_seen_at_mc_range | No | ||
| mc_dealership_group_id | No | ||
| min_photo_links_cached | No | ||
| preferred_dealers_only | No | ||
| car_location_seller_name | No | ||
| include_non_vin_listings | No | ||
| mc_dealership_group_name | No | ||
| ev_battery_capacity_range | No | ||
| first_seen_at_source_days | No | ||
| vehicle_registration_mark | 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 | ||
| include_preferred_dealer_flag | No | ||
| vehicle_registration_date_range | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |