Compare cars for sale side by side
vehicle_compareUse this when the shopper is choosing between two to four cars they have already seen and asks how they differ or which is the better buy, e.g. vins: ["3GNKBKRS6PS118420", "1GNSKRKD2PR339514"]. Do not use it to find cars (that is inventory_search) or for an out-the-door price (that is quote_out_the_door).
Each car comes back exactly as vehicle_get gives it, and comparison adds: differs, the fields whose values are not the same on every car (year, trim, engine, drivetrain, color and the like, and store when the cars are at different stores); shared_features and only_features, the features every car lists and, per VIN, the ones no other car lists (a car whose listing has no features is left out of both: its features are unknown, not missing, and no feature implies another); and lowest_price, lowest_miles and newest, the VIN that wins, or null on a tie or when no car has the figure. price_gap is the spread in dollars.
Prices are compared on one basis: price_with_fees (what the dealer's page shows) when every car has it, else the listed price for every car, so a car is never cheaper only because its store's fees are unknown. This is not an out-the-door price; quote_out_the_door gives that for one car.
Pass 2 to 4 different VINs. A VIN at any other dealer in CarEdge's marketplace is compared as well, with participating: false and dealer saying who sells it. A VIN not in the marketplace is listed in missing and left out, as long as two cars remain; otherwise the answer is not_found.
Fields: money is a decimal string in US dollars. dti_grade is the store's Dealer Transparency grade, A to F, or null when it has none. distance_miles is miles from the shopper's ZIP.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"vins": "<vins>"
},
"name": "vehicle_compare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vins | Yes | 2 to 4 different 17-character VINs. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | ||
| freshness | No |