Search cars for sale near a ZIP
inventory_searchUse this when the shopper wants to find or browse new or used cars for sale near them, at every dealership in CarEdge's marketplace listings: by make, model, year, price, body style, color, miles or stock number, e.g. make: "Toyota", model: "RAV4", price_max: "35000.00". Do not use it for one car the shopper already picked (that is vehicle_get), for a price with tax and fees (that is quote_out_the_door), for what the shopper's own car is worth, or for general car advice. hero_photo_url is a link to the car's main photo that opens in any browser, so it works as a plain link where no car card or image is shown. It is null when the car has no photo.
Without near it searches the stores this connector covers. With near (the shopper's ZIP) and no rooftop_slug, it searches every dealer in CarEdge's marketplace within radius_miles (50 unless set, at most 250), nearest first unless sort is set. Without condition the search covers new and used together (used includes certified pre-owned). price_max is a budget, body_type a body style and stock_no a dealer's stock number; query is a few words of free text such as "red" or "electric", and a word no car matches is dropped, from the end first. A list filter such as drivetrain or exterior_color matches a car holding every word of any one value. Filters combine.
make, model, condition and each list filter take several values, any one matching. body_type, fuel, powertrain, the colors, features, bed_length, dti_grade and sort take only the values their schema lists; any other value answers invalid_params, naming the field and the values it takes. The search leaves out what caredge.com's search treats as listing mistakes: a new car with a sticker under $5,000 or more than 10,000 known miles, and a used car priced under $500 or older than 1990.
near takes the shopper's ZIP and keeps only stores within radius_miles. state keeps only stores in one state; with near too, a store must be in the state and within the radius. When these stores span the whole country, a search with none of query, make, near or state answers too_broad.
A page holds the dealer's chosen number of cars, 10 unless they changed it, and limit overrides that for one call (at most 20). next_cursor, sent back as cursor with the same filters, returns the next page. total is how many cars matched, not how many are on this page; makes splits it by make into new and used.
price_with_fees is the price with the store's own fees in, before any discount and tax: the figure the dealer's own car page shows. participating: true means CarEdge quotes the dealer's own fees and can send it a request the shopper asks for. source says where the price came from.
A car with a rooftop_slug of the form dealer-<id> has participating: false and no price_with_fees: CarEdge has no pricing setup for its dealer and cannot send it a request, and quote_out_the_door prices it from its listed price and the fees that dealer or its state usually charges. dealer says who sells the car: its name, dealer_id, mc_dealer_id, city, state and ZIP, distance_miles from the shopper's ZIP, listed_price (its price), listing_url (the dealer's page for the car, if known), caredge_url (the car's page on caredge.com) and caredge_certified: true for a CarEdge Certified dealer.
freshness says how old each store's data is; stale means older than CarEdge expects. in_transit: true means the car is on its way to the store and not on the lot yet, so it cannot be seen or driven today. inventory_unavailable means CarEdge cannot see the lot at all right now; it is worth one retry, and it never means the car is gone.
Fields: money is a decimal string in US dollars. listed_as_of is when the store's listing was last read. coverage, when present, is every_dealer (every dealer in CarEdge's marketplace within the radius) or partner_stores (only participating: true dealers).
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": "inventory_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fuel | No | Fuel types. Gasoline covers every gas grade and flex fuel. | |
| make | No | Makes, exactly, e.g. ['Chevrolet', 'Ford']. Any one matches. | |
| near | No | ||
| sort | No | relevance; price_asc or price_desc; msrp_asc or msrp_desc (sticker price on new cars, asking price on used); year_desc or year_asc (model year); mileage_asc or mileage_desc; newest (newest model year first, as year_desc); days_on_market_asc or days_on_market_desc (days listed for sale). A car with no mileage or no days figure sorts last. | relevance |
| trim | No | Trim words, e.g. ['Big Horn'] or ['LT', 'RS']. | |
| limit | No | Cars per page, 1 to 20; a larger number is read as 20. Use `next_cursor` for more. | |
| model | No | Model names, e.g. ['Wrangler'] or ['F-150', 'Silverado 1500']. A name also finds the index's longer names for it ('Wrangler' finds 'Wrangler 4-Door'). | |
| query | No | A few words, e.g. 'red' or 'electric'. | |
| state | No | A US state, as its two-letter code or its name, e.g. 'TX' or 'Texas'. Keeps only stores in that state. With `near`, a store must be in the state and within the radius. | |
| cursor | No | `next_cursor` from the last page. | |
| engine | No | Engine words, e.g. ['V8'] or ['2.0L']. | |
| stores | No | Store slugs from `stores_list` or a car's `rooftop_slug`. Any one matches. | |
| features | No | Features the car must have, all of them: heated-seats (Heated Seats), cooled-seats (Cooled / Ventilated Seats), carplay-android-auto (Apple CarPlay / Android Auto), leather-seats (Leather Seats), sunroof (Sunroof / Moonroof), adaptive-cruise (Adaptive Cruise Control), blind-spot (Blind Spot Monitor), remote-start (Remote Start), third-row (Third Row Seats), navigation (Navigation), camera (Backup / 360 Camera), lane-keep (Lane Keep Assist), wireless-charging (Wireless Charging), towing (Towing Package), head-up-display (Head-Up Display), premium-audio (Premium Audio). | |
| stock_no | No | The dealer's stock number, exactly, e.g. 'DT14462'. Any case. | |
| year_max | No | Newest model year to show. | |
| year_min | No | Oldest model year to show. | |
| body_type | No | Body styles. Truck means a pickup. | |
| condition | No | new, used or certified (certified pre-owned); several are allowed. Leave it out for new and used together. `used` includes certified. | |
| dti_grade | No | The selling store's Dealer Transparency Index grade, A (best) to F, from how openly it prices. Any one listed grade matches. | |
| miles_max | No | Most miles, e.g. 30000. | |
| miles_min | No | Fewest miles. A car with no mileage on file never matches a bound. | |
| one_owner | No | true keeps only cars the history report shows as one owner. | |
| price_max | No | Dollars, e.g. '45000.00'. | |
| price_min | No | Dollars, e.g. '25000.00'. | |
| bed_length | No | Pickup bed lengths. | |
| drivetrain | No | e.g. ['AWD', '4WD'], 'FWD', 'RWD'. | |
| in_transit | No | true keeps only cars on their way to the store; false only cars on the lot. Leave it out for both. | |
| powertrain | No | Gas (combustion only), EV (battery, extended-range or fuel-cell electric), Hybrid (full or mild) or PHEV (plug-in hybrid). | |
| clean_title | No | true keeps only cars the history report shows with a clean title. | |
| body_subtype | No | A pickup's cab: Crew (crew cab, CrewMax, SuperCrew), Extended (extended, double, quad, King or SuperCab), Regular (regular or standard cab) or Extended Crew. A cargo van is `body_type` Van, not a cab. | |
| rooftop_slug | No | One store, from `stores_list`. | |
| transmission | No | e.g. ['automatic'], ['manual'], ['CVT']. | |
| exclude_colors | No | Base paint colours to leave out. | |
| exterior_color | No | Base paint colours. | |
| interior_color | No | Base interior colours. | |
| days_on_market_max | No | Most days the car has been listed for sale. | |
| days_on_market_min | No | Fewest days the car has been listed for sale. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | ||
| freshness | No |