Skip to main content
Glama
MarketCheck MCP Server

MarketCheck MCP Server

Official

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 status

Returns: 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

NameRequiredDescriptionDefault
vrmNo
zipNo
cityNo
makeNo
plotNo
rowsNo
trimNo
yearNo
ymmtNo
dedupNo
doorsNo
matchNo
modelNo
ownedNo
startNo
stateNo
statsNo
countyNo
engineNo
facetsNo
radiusNo
sourceNo
uvc_idNo
countryNo
nodedupNo
sort_byNo
variantNo
vdp_urlNo
car_typeNo
latitudeNo
stock_noNo
body_typeNo
cylindersNo
dealer_idNo
dom_rangeNo
fuel_typeNo
longitudeNo
drivetrainNo
facet_sortNo
fca_statusNo
msrp_rangeNo
num_ownersNo
sort_orderNo
year_rangeNo
dealer_typeNo
engine_sizeNo
mc_categoryNo
miles_rangeNo
photo_linksNo
postal_codeNo
price_rangeNo
exclude_makeNo
mc_dealer_idNo
price_changeNo
range_facetsNo
transmissionNo
vehicle_typeNo
co2_emissionsNo
dom_180_rangeNo
mc_rooftop_idNo
mc_website_idNo
model_variantNo
base_ext_colorNo
base_int_colorNo
city_mpg_rangeNo
exterior_colorNo
interior_colorNo
last_seen_daysNo
mc_location_idNo
ulez_compliantNo
ev_battery_typeNo
exclude_sourcesNo
first_seen_daysNo
insurance_groupNo
is_vat_includedNo
last_seen_rangeNo
min_photo_linksNo
car_location_zipNo
dom_active_rangeNo
dos_active_rangeNo
ev_vehicle_rangeNo
fetch_all_photosNo
first_seen_rangeNo
seating_capacityNo
car_location_cityNo
engine_size_rangeNo
highway_mpg_rangeNo
preferred_dealersNo
combined_mpg_rangeNo
exclude_dealer_idsNo
photo_links_cachedNo
price_change_rangeNo
wheelbase_categoryNo
write_off_categoryNo
base_exterior_colorNo
base_interior_colorNo
car_location_countyNo
car_location_streetNo
include_build_objectNo
car_location_latitudeNo
first_seen_at_mc_daysNo
include_dealer_objectNo
inventory_count_rangeNo
performance_co2_rangeNo
car_location_longitudeNo
exclude_mc_website_idsNo
first_seen_at_mc_rangeNo
mc_dealership_group_idNo
min_photo_links_cachedNo
preferred_dealers_onlyNo
car_location_seller_nameNo
include_non_vin_listingsNo
mc_dealership_group_nameNo
ev_battery_capacity_rangeNo
first_seen_at_source_daysNo
vehicle_registration_markNo
exclude_write_off_categoryNo
first_seen_at_source_rangeNo
mc_sub_dealership_group_idNo
active_inventory_date_rangeNo
include_mc_dealership_objectNo
mc_sub_dealership_group_nameNo
include_preferred_dealer_flagNo
vehicle_registration_date_rangeNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description still discloses important behavior: default rows=10/max=50, start pagination max 10000, default sorting, facet syntax, and that fetch_all_photos reduces token usage. It does not state auth/rate-limit expectations or explicitly say the operation is read-only, though 'search' strongly implies it.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded with purpose and the critical facets warning, then organized under clear section headings, which is necessary for 124 parameters. However, it is very long and repeats full object field lists for include_dealer_object/include_mc_dealership_object/include_build_object even though an output schema exists, and the kwargs line adds noise.

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 a 124-parameter search tool with no annotations and 0% schema descriptions, the definition supplies enough filtering semantics, defaults, pagination behavior, and MCP-specific parameter behavior to invoke it correctly. The output schema covers return values, so the description's additional return summary is sufficient.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% across 124 parameters, and the description compensates extensively with grouped sections, formats, defaults, ranges, aliases, and examples for facets. A few entries remain terse (e.g., price_change, match, preferred_dealers), and the described kwargs parameter is not in the schema, but overall it adds substantial meaning.

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 first sentence states a specific verb and resource ('Search for active cars') and a clear scope ('UK market'). It does not explicitly contrast with sibling search_active_cars or search_uk_recent_cars, so the distinction is inferred from the UK/active wording rather than stated.

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 a strong pre-filter workflow ('use the facets parameter to discover available values') and clearly implies use for UK active inventory. It does not name alternatives or say when to prefer search_active_cars or search_uk_recent_cars, so a key routing decision is left to inference.

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