Skip to main content
Glama
MarketCheck MCP Server

MarketCheck MCP Server

Official

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 status

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

NameRequiredDescriptionDefault
vrmNo
zipNo
cityNo
makeNo
plotNo
rowsNo
soldNo
trimNo
yearNo
ymmtNo
dedupNo
doorsNo
matchNo
modelNo
ownedNo
startNo
stateNo
statsNo
countyNo
engineNo
facetsNo
radiusNo
sourceNo
countryNo
expiredNo
nodedupNo
sort_byNo
variantNo
vdp_urlNo
car_typeNo
latitudeNo
stock_noNo
body_typeNo
cylindersNo
dealer_idNo
dom_rangeNo
fuel_typeNo
lease_empNo
longitudeNo
drivetrainNo
facet_sortNo
fca_statusNo
lease_termNo
msrp_rangeNo
num_ownersNo
sort_orderNo
year_rangeNo
dealer_nameNo
dealer_typeNo
engine_sizeNo
finance_empNo
mc_categoryNo
miles_rangeNo
photo_linksNo
postal_codeNo
price_rangeNo
body_subtypeNo
engine_blockNo
exclude_makeNo
mc_dealer_idNo
range_facetsNo
transmissionNo
vehicle_typeNo
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
exclude_sourcesNo
first_seen_daysNo
insurance_groupNo
is_vat_includedNo
last_seen_rangeNo
dom_active_rangeNo
dos_active_rangeNo
fetch_all_photosNo
finance_loan_aprNo
first_seen_rangeNo
seating_capacityNo
car_include_leaseNo
engine_aspirationNo
engine_size_rangeNo
exclude_certifiedNo
finance_loan_termNo
highway_mpg_rangeNo
combined_mpg_rangeNo
exclude_dealer_idsNo
lease_down_paymentNo
photo_links_cachedNo
price_change_rangeNo
wheelbase_categoryNo
write_off_categoryNo
base_exterior_colorNo
base_interior_colorNo
car_include_financeNo
finance_down_paymentNo
include_build_objectNo
dealership_group_nameNo
first_seen_at_mc_daysNo
include_dealer_objectNo
exclude_mc_website_idsNo
first_seen_at_mc_rangeNo
include_relevant_linksNo
mc_dealership_group_idNo
finance_down_payment_perNo
include_non_vin_listingsNo
mc_dealership_group_nameNo
first_seen_at_source_daysNo
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

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does well: it discloses that results exclude active listings, defaults and caps for rows/start (10 default, max 50, pagination max 10000), default sort behavior (distance, asc), the token-saving rationale of fetch_all_photos=False, and which parameters are MCP-only vs passed to the API. It omits auth/permission expectations and rate limits, which is why it stops short of 5.

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?

The critical information is front-loaded in the first paragraphs, and the parameter documentation is organized under clear headings, which helps a 121-parameter tool. However, the full structural listings of the dealer, mc_dealership and build response objects are long and largely redundant given that an output schema exists, and the alias/duplicate color parameters are repeated at length.

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

Completeness4/5

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

For a 121-parameter, zero-required-parameter search tool with no annotations, the definition is thorough: it covers scope, sibling routing, facets discovery, pagination limits, and per-parameter formats. Return-value detail is partly duplicated from the existing output schema, but the remaining gap is mainly around error handling and result shape beyond the included objects.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must do all the work, and it largely does: it groups parameters by category and documents formats and bounds (radius max 100 miles, year_range min-max, last_seen_days "max-min" ordering, facet syntax field|offset|limit|min_count, allowed car_type values). The many tautological entries ("To filter listing on their make") and the duplicated color aliases add bulk without meaning, keeping it below 5.

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, resource, market and time window ("Search for recent/expired cars in the UK market (last 90 days)") and immediately narrows scope to EXPIRED/SOLD listings only. It explicitly names the sibling to use instead for active inventory (search_uk_active_cars), so an agent can separate the two without opening any schema.

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?

Gives explicit when-to-use (expired/sold data), when-not-to-use (active listings), the named alternative (search_uk_active_cars), and a concrete pre-flight workflow: query facets before filtering on make/model/trim/body_type to avoid invalid field values. Nothing essential 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.