Skip to main content
Glama
MarketCheck MCP Server

MarketCheck MCP Server

Official

search_past_90_days

Find expired and sold car listings from the last 90 days to analyze pricing trends, days on market, and dealer inventory turnover.

Instructions

Search for recent car inventory (EXPIRED/SOLD listings from last 90 days) with comprehensive filters following Marketcheck API structure.

IMPORTANT: This endpoint serves ONLY expired/sold listings from the last 90 days for US and CA (Canada) markets, NOT active listings. For currently active listings, use the search_active_cars tool instead.

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

VIN vs Listing ID Disclaimer:

  • A single VIN can have multiple listings, each with a unique listing ID

  • Listing ID changes when there are changes in price or miles of the listing

  • When expired=false is set, it shows listings for VINs that are currently active in the market (not sold yet), but the specific listing is expired. The latest/current listing for that VIN is present in the active search API

  • This endpoint shows historical listing data (expired listing IDs) for market analysis, not current inventory

This endpoint is designed for analytical use cases including:

  • Historical market analysis of sold vehicles

  • Sold vehicle pricing trends and patterns

  • Days on market analysis for expired listings

  • Dealer inventory turnover and sales analysis

  • Market intelligence from recently sold inventory

Key use cases:

  • Analyze recent sales trends and pricing

  • Get sold/expired listings for market intelligence

  • Calculate average market prices from recent inventory

  • Track dealer inventory turnover patterns

Due to performance reasons, this endpoint is more restrictive than active search:

  • Does not accept facets, stats and range_facets in a single call

  • Requires one of: city, state, zip, (latitude+longitude+radius), source, or dealer_id

  • For geo queries, radius cannot be greater than 100 miles

  • Charged at higher rates than active search endpoint

Args: # Location filters (at least one required) city: Filter listing on City in which they are listed state: Filter listing on State in which they are listed
zip: Filter listing on ZIP around which they are listed latitude: Latitude component of location longitude: Longitude component of location radius: Radius around the search location (Unit - Miles, max 100) source: Filter listing on their source dealer_id: Dealer id to filter the listings

# Vehicle specifications
make: Filter listings on their make
model: Filter listings on their model
year: Vehicle manufacturing year (e.g., 2020, 2021)
year_range: Year range in format "min-max" (e.g., "2019-2021")
trim: Filter listing on their trim
body_type: Filter listing on their body type
car_type: Car type (new/used/certified)
cylinders: Number of engine cylinders (e.g., 4, 6, 8)
doors: Number of doors (e.g., 2, 4)
seating_capacity: Number of seats (e.g., 5, 7, 8)
fuel_type: Filter listing on their fuel type.
    WARNING: This field has many non-normalized values. First call this tool with facets="fuel_type|0|1000" to discover exact available values before filtering.

# Color filters
exterior_color: Exterior color to match (comma-separated values)
interior_color: Interior color to match (comma-separated values)
base_exterior_color: Base exterior color to match (comma-separated values)
base_interior_color: Base interior color to match (comma-separated values)

# Price and mileage filters
price_range: Price range in format "min-max" (e.g., "1000-5000")
miles_range: Miles range in format "min-max" (e.g., "1000-5000")
msrp_range: MSRP range in format "min-max" (e.g., "1000-5000")

# Market timing filters
dom_range: Days on Market range in format "min-max" (e.g., "10-50")
dom_active_range: Active Days on Market range in format "min-max" (e.g., "10-50")
dos_active_range: Active Days on Site range in format "min-max" (e.g., "10-50")
first_seen_range: First seen date range in format YYYYMMDD-YYYYMMDD
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_range: First seen at source date range in format YYYYMMDD-YYYYMMDD
first_seen_at_source_days: First seen at source days range in format "max-min" (e.g., "25-12" for 12 to 25 days ago).
first_seen_at_mc_range: First seen at MC date range in format YYYYMMDD-YYYYMMDD
first_seen_at_mc_days: First seen at MC days range in format "max-min" (e.g., "25-12" for 12 to 25 days ago).
last_seen_range: Last seen date range in format YYYYMMDD-YYYYMMDD
last_seen_days: Last seen days range in format "max-min" (e.g., "3-1" for 1 to 3 days ago).
active_inventory_date_range: Date range to filter listings active within range (YYYYMMDD-YYYYMMDD)

# Special filters
sold: Boolean to fetch only sold/expired listings (True/False)
expired: Boolean to fetch only expired listings or active ones (True/False)
owned: Boolean, when True returns listings actually owned by dealer (used with dealer_id/source)
include_non_vin_listings: Boolean to include non vin listings (True/False, default False)
in_transit: Boolean to filter in transit vehicles (True/False)

# Response configuration
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 (single field only)
    - 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
stats: Field for which stats need to be generated (single field only)
range_facets: Numeric field for range facets (single field only)

# Sorting and pagination
sort_by: Sort by field (dist|price|miles|msrp|dom|last_seen|first_seen, etc.)
sort_order: Sort order (asc|desc)
rows: Number of results to return (default 5, max 50)
start: Page number/offset to fetch results (default 0)

# Seller type filter - recent search only supports dealer listings
mc_category: Filter by seller type. Only "dealer" is supported for recent/expired inventory search

# 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, state, country (string, optional): Address components
    - latitude, longitude (string, optional): Geographic coordinates
    - zip (string, optional): Postal/ZIP code
    - phone (string, optional): Contact phone number
    - seller_email (string, optional): Contact email address
    - dealership_group_name (string, optional): Parent dealership group
    - msa_code (string, optional): Metropolitan Statistical Area code

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. Possible values: Dealer, Retailer, Dealership Group, Aggregator, Marketing, Financing
    - website (string, optional): Dealer website URL
    - name (string, optional): Dealer business name
    - dealer_type (string, optional): Dealer classification (franchise, independent)
    - street, city, state, country (string, optional): Address components
    - latitude, longitude (string, optional): Geographic coordinates
    - zip (string, optional): Postal/ZIP code
    - msa_code (string, optional): Metropolitan Statistical Area code
    - phone (string, optional): Contact phone number

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
    - trim (string, optional): Trim level
    - version (string, optional): Specific version/variant
    - body_type (string, optional): Body style (sedan, SUV, truck, etc.)
    - vehicle_type (string, optional): Vehicle category
    - transmission (string, optional): Transmission type
    - drivetrain (string, optional): Drivetrain configuration
    - fuel_type (string, optional): Fuel type (gasoline, electric, hybrid, etc.)
    - engine (string, optional): Engine description
    - engine_size (number, optional): Engine displacement
    - engine_block (string, optional): Engine block configuration
    - 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
    - std_seating (string, optional): Standard seating capacity
    - highway_mpg (number, optional): Highway fuel economy
    - city_mpg (number, optional): City fuel economy

Returns: JSON string with recent inventory search results including listings and facets

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_past_90_days"
  }
}

Input Schema

NameRequiredDescriptionDefault
vinNo
zipNo
cityNo
makeNo
plotNo
rowsNo
soldNo
trimNo
vinsNo
yearNo
ymmtNo
dedupNo
doorsNo
matchNo
modelNo
ownedNo
startNo
stateNo
statsNo
engineNo
facetsNo
radiusNo
sourceNo
countryNo
expiredNo
nodedupNo
sort_byNo
vdp_urlNo
versionNo
car_typeNo
latitudeNo
msa_codeNo
stock_noNo
body_typeNo
cylindersNo
dealer_idNo
dom_rangeNo
fuel_typeNo
lease_empNo
longitudeNo
drivetrainNo
facet_sortNo
in_transitNo
lease_termNo
msrp_rangeNo
sort_orderNoasc
year_rangeNo
dealer_nameNo
dealer_typeNo
engine_sizeNo
finance_empNo
mc_categoryNo
miles_rangeNo
photo_linksNo
price_rangeNo
body_subtypeNo
engine_blockNo
exclude_makeNo
mc_dealer_idNo
range_facetsNo
transmissionNo
vehicle_typeNo
dom_180_rangeNo
include_leaseNo
mc_rooftop_idNo
mc_website_idNo
taxonomy_vinsNo
base_ext_colorNo
base_int_colorNo
carfax_1_ownerNo
city_mpg_rangeNo
exterior_colorNo
interior_colorNo
last_seen_daysNo
mc_location_idNo
exclude_sourcesNo
first_seen_daysNo
include_financeNo
last_seen_rangeNo
dom_active_rangeNo
dos_active_rangeNo
fetch_all_photosNo
finance_loan_aprNo
first_seen_rangeNo
seating_capacityNo
engine_aspirationNo
engine_size_rangeNo
exclude_certifiedNo
finance_loan_termNo
highway_mpg_rangeNo
carfax_clean_titleNo
exclude_dealer_idsNo
lease_down_paymentNo
photo_links_cachedNo
price_change_rangeNo
base_exterior_colorNo
base_interior_colorNo
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
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.6/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so well: it discloses higher billing rates than active search, the 100-mile radius cap, geo/identifier requirements, the semantics of expired=false versus active inventory, and the VIN-versus-listing-ID relationship (listing IDs change on price/mileage changes). It also notes token-saving behavior for photos (fetch_all_photos defaults to false).

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?

Section headers and front-loaded warnings make it navigable, but there is real redundancy: the 'designed for analytical use cases' list is immediately restated by 'Key use cases' with near-identical bullets. The full field-by-field dumps for include_dealer_object, include_mc_dealership_object and include_build_object consume a large share of the text and belong in the (already present) output schema rather than the description.

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 115-parameter tool with no annotations, the description covers purpose, routing, prerequisites, rate/performance constraints, and most filter formats, which is close to what an agent needs. It overshoots by enumerating response object internals despite an existing output schema, and it under-covers a subset of exotic parameters, but nothing needed for a correct first call is missing.

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% across 115 parameters, so the description must compensate, and it does for the majority of the important filters: range formats ('min-max', YYYYMMDD-YYYYMMDD), the inverted 'max-min' convention for *_days parameters, facet syntax (field|offset|limit|min_count), default/max values for rows and facet limits, sort_by values, and a warning that fuel_type values are non-normalized. It nevertheless leaves a meaningful tail of schema parameters undocumented (vin, vins, ymmt, dedup/nodedup, match, msa_code, stock_no, lease/finance fields, carfax fields), which prevents a 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?

The first sentence gives a specific verb (search), resource (car inventory), and scope (EXPIRED/SOLD listings from the last 90 days, US and CA). It immediately names the sibling it is not — search_active_cars — so an agent can choose between them without inspecting either 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?

It states when to use this tool, when not to (active listings → search_active_cars), the alternative by name, and the prerequisite that at least one of city/state/zip/lat+long+radius/source/dealer_id is required. It also prescribes the facets-first discovery workflow before filtering on make/model/fuel_type, and warns about the performance restriction of not combining facets, stats and range_facets in a single call.

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