Count cars for sale by make, model and price
inventory_facetsUse this when the shopper asks what the dealer has rather than for one car: which makes, models or trims are in stock, which colors, how many trucks, or the cheapest and dearest price, e.g. body_type: "pickup". It counts every matching car, so answer from it instead of counting search results. Do not use it to show cars (that is inventory_search).
It counts every car that matches, not one page: how many in all, and how many of each make, model, trim, body type, drivetrain, fuel and color, plus the lowest and highest year, listed price before fees, and miles. Use it for whole-lot questions ("what trucks do you have?", "which colors does the Tahoe come in?", "do you have anything electric?"), or before searching when you do not know what to filter on. It lists no cars: inventory_search does that, with the make, model or trim the shopper picks.
It takes the same filters as inventory_search: when these stores span the whole country, pass query, make or near, or the answer is too_broad. With near and no rooftop_slug, it counts every dealer in CarEdge's marketplace within the radius, the same cars inventory_search finds there. Each list is most common first and holds at most 20 values. The filters only inventory_search has, such as features or dti_grade, are not taken here.
filter_values holds, under each inventory_search argument's name, the values that argument can take among these cars, with counts, in the spelling it accepts. days_on_market is the fewest and most days these cars have been listed.
price_before_fees is the range of listed prices before the store's fees, in dollars. The cars themselves show price_with_fees, which is higher by the store's fees, so it is not any one car's price. The cheapest car's price_with_fees comes from inventory_search with sort: "price_asc" and limit: 1.
freshness says how old each store's data is, and inventory_unavailable means CarEdge cannot see the lot right now, not that it is empty.
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_facets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| make | No | Exact make, e.g. 'Chevrolet'. | |
| near | No | ||
| model | No | Model words, e.g. 'Wrangler'. | |
| query | No | A few words, e.g. 'red' or 'electric'. | |
| body_type | No | e.g. 'suv', 'pickup'. | |
| condition | No | new, used or certified; leave out for new and used. | |
| rooftop_slug | No | One store, from `stores_list`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | ||
| freshness | No |