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
| Name | Required | Description | Default |
|---|---|---|---|
| mm | No | ||
| vin | No | ||
| ymm | No | ||
| zip | No | ||
| city | No | ||
| make | No | ||
| plot | No | ||
| rows | No | ||
| trim | No | ||
| vins | No | ||
| year | No | ||
| ymmt | No | ||
| dedup | No | ||
| doors | No | ||
| match | No | ||
| model | No | ||
| owned | No | ||
| start | No | ||
| state | No | ||
| stats | No | ||
| engine | No | ||
| facets | No | ||
| radius | No | ||
| source | No | ||
| country | No | ||
| nodedup | No | ||
| sort_by | No | ||
| vdp_url | No | ||
| version | No | ||
| car_type | No | ||
| latitude | No | ||
| msa_code | No | ||
| stock_no | No | ||
| body_type | No | ||
| cylinders | No | ||
| dealer_id | No | ||
| dom_range | No | ||
| fuel_type | No | ||
| lease_emp | No | ||
| longitude | No | ||
| drivetrain | No | ||
| facet_sort | No | ||
| in_transit | No | ||
| lease_term | No | ||
| msrp_range | No | ||
| sort_order | No | asc | |
| year_range | No | ||
| dealer_type | No | ||
| engine_size | No | ||
| finance_emp | No | ||
| mc_category | No | ||
| miles_range | No | ||
| photo_links | No | ||
| price_range | No | ||
| seller_type | No | dealer | |
| body_subtype | No | ||
| engine_block | No | ||
| exclude_make | No | ||
| mc_dealer_id | No | ||
| price_change | No | ||
| range_facets | No | ||
| transmission | No | ||
| vehicle_type | No | ||
| dom_180_range | No | ||
| include_lease | No | ||
| mc_rooftop_id | No | ||
| mc_website_id | No | ||
| taxonomy_vins | No | ||
| base_ext_color | No | ||
| base_int_color | No | ||
| carfax_1_owner | No | ||
| city_mpg_range | No | ||
| exterior_color | No | ||
| interior_color | No | ||
| last_seen_days | No | ||
| mc_location_id | No | ||
| exclude_sources | No | ||
| first_seen_days | No | ||
| include_finance | No | ||
| last_seen_range | No | ||
| min_photo_links | No | ||
| powertrain_type | No | ||
| dom_active_range | No | ||
| dos_active_range | No | ||
| fetch_all_photos | No | ||
| finance_loan_apr | No | ||
| first_seen_range | No | ||
| options_packages | No | ||
| seating_capacity | No | ||
| engine_aspiration | No | ||
| engine_size_range | No | ||
| exclude_certified | No | ||
| finance_loan_term | No | ||
| highway_mpg_range | No | ||
| preferred_dealers | No | ||
| carfax_clean_title | No | ||
| exclude_dealer_ids | No | ||
| lease_down_payment | No | ||
| photo_links_cached | No | ||
| price_change_range | No | ||
| base_exterior_color | No | ||
| base_interior_color | No | ||
| high_value_features | No | ||
| finance_down_payment | No | ||
| include_build_object | No | ||
| first_seen_at_mc_days | No | ||
| include_dealer_object | No | ||
| inventory_count_range | No | ||
| exclude_mc_website_ids | No | ||
| first_seen_at_mc_range | No | ||
| include_relevant_links | No | ||
| mc_dealership_group_id | No | ||
| min_photo_links_cached | No | ||
| preferred_dealers_only | No | ||
| exclude_options_packages | No | ||
| finance_down_payment_per | No | ||
| include_non_vin_listings | No | ||
| mc_dealership_group_name | No | ||
| first_seen_at_source_days | No | ||
| first_seen_at_source_range | No | ||
| mc_sub_dealership_group_id | No | ||
| active_inventory_date_range | No | ||
| exclude_high_value_features | No | ||
| include_mc_dealership_object | No | ||
| mc_sub_dealership_group_name | No | ||
| include_preferred_dealer_flag | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |