Decode a VIN into year, make, model and trim
decode_vinUse this when the shopper pastes or gives a VIN and you need to know what car it is (year, make, model, trim, engine), e.g. vin: "1GNSKRKD2PR339514". Do not use it for a car for sale that the shopper picked from a search (that is vehicle_get).
It decodes the VIN with NHTSA's free vPIC database into year, make, model, trim, body type, fuel type, drivetrain and engine. It suits a VIN pasted with nothing else, or a VIN with no year, make or model known.
When the VIN is a car on this dealer's own lot, the answer also carries in_dealer_stock, store_name and dealer_stock_note: it is a car for sale here, not the shopper's own, and vehicle_get has its listing.
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": {
"vin": "<vin>"
},
"name": "decode_vin"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vin | Yes | 17-character VIN (letters and digits, excluding I, O, Q) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | ||
| freshness | No |