Skip to main content
Glama
MarketCheck MCP Server

MarketCheck MCP Server

Official

search_active_cars

Search dealer listings of cars currently for sale in the US and Canada using filters for make, model, price, mileage, location, powertrain, and vehicle history.

Instructions

Search for cars in the United States and Canada market with comprehensive filters.

This endpoint allows searching market vehicles that are up for sale in US and Canadian market right now. This endpoint serves only dealer listings.

IMPORTANT: Before filtering by specific field values (make, model, trim, body_type, powertrain_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

DEALER FILTERING: When any of dealer_id, source, mc_website_id, mc_dealer_id, mc_location_id, mc_rooftop_id, mc_dealership_group_id, mc_dealership_group_name, mc_sub_dealership_group_id, mc_sub_dealership_group_name, or mc_category are provided, this tool automatically routes to the Dealer Inventory Syndication API (GET /dealerships/inventory) instead of the standard inventory search API for optimized dealer-specific inventory retrieval. Use search_past_90_days for expired/sold dealer inventory analysis.

Parameters: # Date and Inventory Filters active_inventory_date_range: Date range to filter listings active within range (YYYYMMDD-YYYYMMDD)

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

# Vehicle Specifications
body_subtype: Body subtype to filter listings on (comma-separated values)
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)
drivetrain: Filter listing on their drivetrain
engine: Filter listing on their engine
engine_aspiration: Engine Aspiration to match (comma-separated values)
engine_block: Engine Block to match (comma-separated values)
engine_size: Engine Size to match (comma-separated values)
engine_size_range: Engine size range in format "min-max" (e.g., "1.0-2")
fuel_type: Filter listing on their fuel type.
    WARNING: This field has many non-normalized values. RECOMMENDED: Use powertrain_type instead for reliable filtering, OR first call this tool with facets="fuel_type|0|1000" to discover exact available values.
make: Filter listings on their make
model: Filter listings on their model
powertrain_type: Filter on powertrain_type. Available values: "Combustion" (gas/diesel), "HEV" (Hybrid Electric), "MHEV" (Mild Hybrid), "BEV" (Battery Electric), "PHEV" (Plug-in Hybrid), "FCEV" (Fuel Cell Electric), "EREV" (Extended Range Electric).
    RECOMMENDED: Use this field instead of fuel_type for consistent and reliable filtering of vehicle power sources.
seating_capacity: Number of seats (e.g., 5, 7, 8)
transmission: Filter listing on their transmission
trim: Filter listing on their trim
vehicle_type: Filter listing on their vehicle type
version: Filter listings on their version
year: Vehicle manufacturing year (e.g., 2020, 2021)
year_range: Year range in format "min-max" (e.g., "2019-2021")

# Carfax Filters
carfax_1_owner: Indicates whether car has had only one owner or not
carfax_clean_title: Indicates whether car has clean ownership records

# Location Filters
city: Filter listing on City in which they are listed
country: Filter listing on Country in which they are listed
latitude: Latitude component of location
longitude: Longitude component of location
msa_code: Filter listing on msa code in which they are listed
radius: Radius around the search location (Unit - Miles)
state: Filter listing on State in which they are listed
zip: Filter listing on ZIP around which they are listed

# MPG Filters
city_mpg_range: City mileage range in format "min-max" (e.g., "1000-5000")
highway_mpg_range: Highway mileage range in format "min-max" (e.g., "1000-5000")

# Market Timing Filters
dom_180_range: Last 180 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")
dom_range: 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_at_mc_days: First seen at MC 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(prev_date-later_date)
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_source_range: First seen at source date range in format YYYYMMDD-YYYYMMDD(prev_date-later_date)
first_seen_days: First seen days range in format "max-min" (e.g., "30-10" for 10 to 30 days ago).
first_seen_range: First seen date range in format YYYYMMDD-YYYYMMDD(prev_date-later_date)
last_seen_days: Last seen days range in format "max-min" (e.g., "3-1" for 1 to 3 days ago).
last_seen_range: Last seen date range in format YYYYMMDD-YYYYMMDD(prev_date-later_date)

# Deduplication and Filtering
dedup: If true, gives results with is_searchable irrespective of dealer_id/mc_website_id/source
exclude_certified: Boolean param to exclude certified cars from search results
exclude_dealer_ids: List of dealer ids to exclude from result
exclude_high_value_features: Filter to remove listings with specified excluded HVFs. Use facets="high_value_features|0|1000" first to discover available feature names.
exclude_make: List of makes to exclude from result
exclude_mc_website_ids: List of dealer ids to exclude from result
exclude_options_packages: Filter to remove listings with specified excluded OPs. Use facets="options_packages|0|1000" first to discover available package names.
exclude_sources: List of sources to exclude from result

# Finance and Lease Filters
finance_down_payment: Search listings with exact/range down payment in finance offers
finance_down_payment_per: Search listings with exact/range down payment percentage
finance_emp: Search listings with exact/range Estimated Monthly Payment(EMI)
finance_loan_apr: Search listings with exact/range loans Annual Percentage Rate
finance_loan_term: Search listings with exact/range finance loan term
include_finance: Boolean param to search for listings that include finance options
include_lease: Boolean param to search for listings that include leasing options
lease_down_payment: Search listings with exact/range down payment in lease offers
lease_emp: Search listings with exact/range lease Estimated Monthly Payment(EMI)
lease_term: Search listings with exact/range lease term

# Features and Options
high_value_features: Filter listings on their high_value_features (intersection of provided HVFs).
    IMPORTANT: Before using this filter, first call this tool with facets="high_value_features|0|1000" to get the complete list of available high_value_features and their counts. This ensures you use exact feature names as they appear in the data.
options_packages: Filter listings on their options_packages (intersection of provided OPs).
    IMPORTANT: Before using this filter, first call this tool with facets="options_packages|0|1000" to get the complete list of available options packages and their counts. This ensures you use exact package names as they appear in the data.

# Vehicle Identification
vin: Filter listing on their VIN
vins: Comma separated list of 17 digit vins (max 10 VINs per request)
taxonomy_vins: Comma separated list of 10 letters excerpt from 17 letter VIN

# Combination Filters
mm: Make-Model concatenated string from auto-complete API
ymm: Year-Make-Model concatenated string from auto-complete API
ymmt: Comma separated list of Year|Make|Model|Trim combinations
match: Comma separated list of Year,Make,Model,Trim fields for exact match with vins

# Listing Details
in_transit: Boolean to filter in transit vehicles
include_non_vin_listings: Include non vin listings (default false)
include_preferred_dealer_flag: Flag to add preferred dealers flag based on client filter score
include_relevant_links: Include relevant links (default true)
inventory_count_range: Inventory count range for total listings in dealers inventory
min_photo_links: Filter listings by number of photo links within given range
min_photo_links_cached: Filter listings by number of cached photo links within range
nodedup: If true, API gives results without is_searchable (multiple listings for single vin)
owned: When true, returns listings actually owned by dealer (used with dealer_id/mc_website_id/source)
photo_links: Boolean to include only listings that have photo_links
photo_links_cached: Boolean to include only listings that have photo_links_cached
plot: If true, results in around 25k coordinates with limited fields for plotting
preferred_dealers: Flag to add preferred dealers flag based on client filter score
preferred_dealers_only: Flag to show only preferred dealers listings

# Price Filters
price_change: Query to filter listings based on positive and negative price change
price_change_range: Price change range in format "min-max" (e.g., "10-500")
price_range: Price range in format "min-max" (e.g., "1000-5000")
msrp_range: MSRP range in format "min-max" (e.g., "1000-5000")
miles_range: Miles range in format "min-max" (e.g., "1000-5000")

# Dealer Information
dealer_id: Dealer ID filter to search inventory from specific dealer
dealer_type: Type of dealer (e.g., franchise, independent)
source: Source filter to search inventory from specific source
stock_no: Filter listing on their stock number on lot
vdp_url: Filter based on vehicle detail page URL

# MarketCheck Dealer Identifiers
mc_website_id: MarketCheck website ID filter
mc_dealer_id: MarketCheck dealer ID filter
mc_location_id: MarketCheck location ID filter
mc_rooftop_id: MarketCheck rooftop ID filter
mc_dealership_group_id: MarketCheck dealership group ID filter
mc_dealership_group_name: MarketCheck dealership group name filter
mc_sub_dealership_group_id: MarketCheck sub-dealership group ID filter
mc_sub_dealership_group_name: MarketCheck sub-dealership group name filter
mc_category: MarketCheck seller category. Only 3 values allowed: "dealer", "fsbo" (private seller), "auction"

# 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
    - 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
facet_sort: Controls sort order of facet terms:
    - count (default): Sort by frequency (highest first)
    - index: Sort alphabetically
range_facets: Comma separated list of numeric fields for range facets
stats: List of fields for which stats need to be generated

# Sorting and Pagination
sort_by: Sort by field (dist|price|miles|msrp|dom|dom_180|dom_active|dos_active|highway_mpg|city_mpg|last_seen|first_seen|lease_term|lease_emp|lease_down_payment|finance_loan_term|finance_loan_apr|finance_emp|finance_down_payment|price_change_percent)
sort_order: Sort order (asc|desc)
rows: Number of results to return. For standard searches: default 5, max 50. For dealer/syndication searches (when dealer_id, mc_dealer_id, mc_location_id, or similar dealer identifiers are provided): defaults to 1500 (full inventory), max 1500.
start: Page number/offset to fetch results (default 0, max depends on package)

# Seller type filter - only 3 values allowed: dealer, fsbo (private seller), or auction. Default is dealer
seller_type: Filter by seller type. Only 3 strict values allowed: "dealer" (default), "fsbo" (private seller), "auction"

# 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
    - powertrain_type (string, optional): Powertrain classification

Returns: JSON string with search results including listings and facets. Supports filtering by dealer_id and source for dealer-specific inventory.

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

Input Schema

NameRequiredDescriptionDefault
mmNo
vinNo
ymmNo
zipNo
cityNo
makeNo
plotNo
rowsNo
trimNo
vinsNo
yearNo
ymmtNo
dedupNo
doorsNo
matchNo
modelNo
ownedNo
startNo
stateNo
statsNo
engineNo
facetsNo
radiusNo
sourceNo
countryNo
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_typeNo
engine_sizeNo
finance_empNo
mc_categoryNo
miles_rangeNo
photo_linksNo
price_rangeNo
seller_typeNodealer
body_subtypeNo
engine_blockNo
exclude_makeNo
mc_dealer_idNo
price_changeNo
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
min_photo_linksNo
powertrain_typeNo
dom_active_rangeNo
dos_active_rangeNo
fetch_all_photosNo
finance_loan_aprNo
first_seen_rangeNo
options_packagesNo
seating_capacityNo
engine_aspirationNo
engine_size_rangeNo
exclude_certifiedNo
finance_loan_termNo
highway_mpg_rangeNo
preferred_dealersNo
carfax_clean_titleNo
exclude_dealer_idsNo
lease_down_paymentNo
photo_links_cachedNo
price_change_rangeNo
base_exterior_colorNo
base_interior_colorNo
high_value_featuresNo
finance_down_paymentNo
include_build_objectNo
first_seen_at_mc_daysNo
include_dealer_objectNo
inventory_count_rangeNo
exclude_mc_website_idsNo
first_seen_at_mc_rangeNo
include_relevant_linksNo
mc_dealership_group_idNo
min_photo_links_cachedNo
preferred_dealers_onlyNo
exclude_options_packagesNo
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
exclude_high_value_featuresNo
include_mc_dealership_objectNo
mc_sub_dealership_group_nameNo
include_preferred_dealer_flagNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and discloses a lot: automatic routing to the Dealer Inventory Syndication API, rows defaulting to 1500 for dealer searches versus 5 otherwise, single-photo default via fetch_all_photos for token economy, plot mode returning ~25k coordinates with limited fields, and max 10 VINs per request. Gaps remain: no statement on permissions, rate limits, error behavior, or the practical ceiling implied by 'max depends on package'.

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

Conciseness4/5

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

Given 126 parameters, the length is largely necessary, and the section headers (Date, Color, Vehicle Specifications, Dealer Information, Pagination, etc.) plus front-loading of the facets warning and dealer routing make it navigable. It leaks some points for duplication: the facets discovery instruction is repeated in the intro and again under fuel_type, high_value_features, and options_packages, and the trailing 'Returns:' section restates what the output schema already provides.

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 tool of this complexity the definition covers scope, routing, param syntax, and opt-in response objects, which is most of what an agent needs. Remaining gaps are pagination semantics (interaction of start with row limits and package-dependent caps) and the relationship between the overlapping seller_type and mc_category filters, which are not reconciled.

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 coverage is 0% across 126 parameters, so the description must compensate, and it largely does with a categorized glossary covering range syntax ('min-max'), the inverted 'max-min' convention for first_seen/last_seen day params, enumerable values for powertrain_type, mc_category, and seller_type, and full structures for the three include_*_object response flags. It loses a point for tautological entries such as 'make: Filter listings on their make' and unexplained entries like match/mm/ymm/ymmt and price_change, which are only described as coming from an auto-complete API.

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, and scope: searching active market vehicle listings for sale in the US and Canada, dealer listings only. It explicitly contrasts with search_past_90_days for expired/sold inventory and implicitly against the UK siblings (search_uk_active_cars), so an agent can route without opening schemas.

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?

Explicit when-to-use guidance is given: call with facets before filtering on categorical fields, prefer powertrain_type over the non-normalized fuel_type, and switch to search_past_90_days for expired/sold dealer inventory. It also names the exact condition (any dealer/mc_* identifier present) that changes the underlying API path, which is precisely the kind of routing rule an agent needs.

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